|
1 | 1 | import legacyRedirects from './compatibility.json'; |
2 | 2 |
|
| 3 | +const github = 'https://github.com/lobehub/docs-kit'; |
| 4 | + |
3 | 5 | export default { |
4 | 6 | atomDirs: [{ dir: 'src' }], |
5 | | - description: 'A sandbox consumer that exercises every docs-kit feature end to end.', |
| 7 | + description: |
| 8 | + 'Static documentation sites for React component libraries, driven by MDX and one config file.', |
| 9 | + homePage: './docs/home/home.tsx', |
6 | 10 | legacyRedirects, |
7 | | - publicDocs: ['docs/guide.mdx'], |
| 11 | + publicDocs: [ |
| 12 | + 'docs/getting-started/introduction.mdx', |
| 13 | + 'docs/getting-started/installation.mdx', |
| 14 | + 'docs/getting-started/cli.mdx', |
| 15 | + 'docs/file-conventions/project-structure.mdx', |
| 16 | + 'docs/file-conventions/docs-config.mdx', |
| 17 | + 'docs/file-conventions/component-pages.mdx', |
| 18 | + 'docs/guide/markdown.mdx', |
| 19 | + 'docs/guide/demos.mdx', |
| 20 | + 'docs/guide/api-tables.mdx', |
| 21 | + 'docs/guide/guide-pages.mdx', |
| 22 | + 'docs/guide/home-page.mdx', |
| 23 | + 'docs/guide/theming.mdx', |
| 24 | + 'docs/guide/search.mdx', |
| 25 | + 'docs/guide/ai-docs.mdx', |
| 26 | + 'docs/guide/integrations.mdx', |
| 27 | + 'docs/guide/build-and-deploy.mdx', |
| 28 | + 'docs/advanced/validations.mdx', |
| 29 | + 'docs/advanced/react-router.mdx', |
| 30 | + 'docs/advanced/migrating-from-dumi.mdx', |
| 31 | + ], |
8 | 32 | siteUrl: 'https://docs-kit.lobehub.com', |
9 | 33 | themeConfig: { |
10 | 34 | apiHeader: { |
11 | 35 | docUrl: '{github}/edit/main/playground/{atomId}', |
12 | | - github: 'https://github.com/lobehub/docs-kit', |
| 36 | + github, |
| 37 | + match: ['/components/'], |
13 | 38 | sourceUrl: '{github}/tree/main/playground/{atomId}', |
14 | 39 | }, |
15 | | - navItems: [{ href: '/guide', icon: 'book-open', label: 'Guide' }], |
| 40 | + navItems: [ |
| 41 | + { |
| 42 | + external: true, |
| 43 | + href: 'https://ui.lobehub.com', |
| 44 | + icon: 'external-link', |
| 45 | + label: 'Live Example: Lobe UI', |
| 46 | + }, |
| 47 | + ], |
16 | 48 | prefersColor: 'auto', |
17 | | - socialLinks: [{ href: 'https://github.com/lobehub/docs-kit', icon: 'github', label: 'GitHub' }], |
| 49 | + sidebarGroups: [ |
| 50 | + { dir: 'docs/getting-started', icon: 'rocket', order: -4, title: 'Getting Started' }, |
| 51 | + { dir: 'docs/file-conventions', icon: 'folder-tree', order: -3, title: 'File Conventions' }, |
| 52 | + { dir: 'docs/guide', icon: 'book-open', order: -2, title: 'Guide' }, |
| 53 | + { dir: 'docs/advanced', icon: 'wrench', order: -1, title: 'Advanced' }, |
| 54 | + ], |
| 55 | + socialLinks: [ |
| 56 | + { href: github, icon: 'github', label: 'GitHub' }, |
| 57 | + { href: 'https://www.npmjs.com/package/@lobehub/docs-kit', icon: 'npm', label: 'NPM' }, |
| 58 | + ], |
18 | 59 | }, |
19 | | - title: 'Docs Kit Playground', |
| 60 | + title: 'Lobe Docs Kit', |
20 | 61 | }; |
0 commit comments