|
| 1 | +import { themes as prismThemes } from 'prism-react-renderer'; |
| 2 | +import type { Config } from '@docusaurus/types'; |
| 3 | +import type * as Preset from '@docusaurus/preset-classic'; |
| 4 | + |
| 5 | +const config: Config = { |
| 6 | + title: 'Lido Ethereum SDK', |
| 7 | + tagline: |
| 8 | + 'Lido Ethereum SDK is a package that provides convenient tools for interacting with Lido contracts on the Ethereum network through a software development kit (SDK). This SDK simplifies working with Lido contracts and accessing their functionality', |
| 9 | + favicon: 'img/favicon.png', |
| 10 | + |
| 11 | + // Set the production url of your site here |
| 12 | + url: 'https://lidofinance.github.io/', |
| 13 | + |
| 14 | + baseUrl: '/lido-ethereum-sdk/', |
| 15 | + organizationName: 'lidofinance', |
| 16 | + projectName: 'lido-ethereum-sdk', |
| 17 | + |
| 18 | + onBrokenLinks: 'throw', |
| 19 | + onBrokenMarkdownLinks: 'throw', |
| 20 | + |
| 21 | + i18n: { |
| 22 | + defaultLocale: 'en', |
| 23 | + locales: ['en'], |
| 24 | + }, |
| 25 | + plugins: [ |
| 26 | + [ |
| 27 | + '@docusaurus/plugin-content-docs', |
| 28 | + { |
| 29 | + id: 'examples', |
| 30 | + path: 'examples', |
| 31 | + routeBasePath: 'examples', |
| 32 | + sidebarPath: './sidebarsExamples.ts', |
| 33 | + }, |
| 34 | + ], |
| 35 | + ], |
| 36 | + presets: [ |
| 37 | + [ |
| 38 | + 'classic', |
| 39 | + { |
| 40 | + docs: { |
| 41 | + sidebarPath: './sidebarsSdk.ts', |
| 42 | + path: 'sdk', |
| 43 | + // Remove this to remove the "edit this page" links. |
| 44 | + editUrl: 'https://github.com/lidofinance/lido-ethereum-sdk', |
| 45 | + routeBasePath: '/', |
| 46 | + }, |
| 47 | + blog: { |
| 48 | + showReadingTime: true, |
| 49 | + // Please change this to your repo. |
| 50 | + // Remove this to remove the "edit this page" links. |
| 51 | + editUrl: 'https://github.com/lidofinance/lido-ethereum-sdk', |
| 52 | + }, |
| 53 | + } satisfies Preset.Options, |
| 54 | + ], |
| 55 | + ], |
| 56 | + |
| 57 | + markdown: { |
| 58 | + mermaid: true, |
| 59 | + }, |
| 60 | + themes: ['@docusaurus/theme-mermaid'], |
| 61 | + themeConfig: { |
| 62 | + image: 'img/package_logo.png', |
| 63 | + navbar: { |
| 64 | + title: 'Lido Ethereum SDK Docs', |
| 65 | + logo: { |
| 66 | + alt: 'Lido Ethereum SDK Logo', |
| 67 | + src: 'img/favicon.png', |
| 68 | + }, |
| 69 | + items: [ |
| 70 | + { |
| 71 | + type: 'docSidebar', |
| 72 | + sidebarId: 'sdkSidebar', |
| 73 | + position: 'left', |
| 74 | + label: 'Docs', |
| 75 | + }, |
| 76 | + { to: '/examples/intro', label: 'Examples', position: 'left' }, |
| 77 | + { |
| 78 | + href: '/playground', |
| 79 | + label: 'Playground', |
| 80 | + position: 'left', |
| 81 | + target: '_blank', |
| 82 | + }, |
| 83 | + { |
| 84 | + href: 'https://github.com/lidofinance/lido-ethereum-sdk', |
| 85 | + label: 'GitHub', |
| 86 | + position: 'right', |
| 87 | + }, |
| 88 | + ], |
| 89 | + }, |
| 90 | + } satisfies Preset.ThemeConfig, |
| 91 | +}; |
| 92 | + |
| 93 | +export default config; |
0 commit comments