|
1 | 1 | import { defineConfig } from 'vitepress'; |
2 | | -import fieldTypesSidebar from '../field-types/typedoc-sidebar.json'; |
3 | 2 |
|
4 | 3 | // https://vitepress.dev/reference/site-config |
5 | 4 | export default defineConfig({ |
6 | 5 | title: 'HubSpot - CMS React', |
7 | | - description: 'Documentation for HubSpot CMS React', |
| 6 | + description: 'Archived documentation site for HubSpot CMS React', |
8 | 7 | base: '/cms-react/', |
9 | 8 | themeConfig: { |
10 | 9 | // https://vitepress.dev/reference/default-theme-config |
11 | 10 | nav: [ |
12 | | - { text: 'Home', link: '/' }, |
13 | | - { |
14 | | - text: 'Getting Started', |
15 | | - link: 'https://github.com/HubSpot/cms-react/tree/main/examples/hello-world', |
16 | | - }, |
17 | | - { text: 'API Reference', link: '/reference/project-structure' }, |
18 | | - { text: 'Appendix', link: '/appendix' }, |
| 11 | + { text: 'Official Docs', link: 'https://developers.hubspot.com/docs/guides/cms/react/overview' }, |
| 12 | + { text: 'Examples', link: 'https://github.com/HubSpot/cms-react/tree/main/examples' }, |
19 | 13 | { text: 'Release Log', link: 'release-log' }, |
20 | 14 | ], |
21 | | - |
22 | | - sidebar: { |
23 | | - '/': [ |
24 | | - { |
25 | | - text: 'Documentation', |
26 | | - items: [ |
27 | | - { |
28 | | - text: 'Getting started', |
29 | | - link: 'https://github.com/HubSpot/cms-react/tree/main/examples/hello-world', |
30 | | - }, |
31 | | - { text: 'API reference', link: '/reference/project-structure' }, |
32 | | - { text: 'Field types', link: '/field-types/' }, |
33 | | - { text: 'Appendix', link: '/appendix' }, |
34 | | - { text: 'Release Log', link: 'release-log' }, |
35 | | - ], |
36 | | - }, |
37 | | - ], |
38 | | - '/reference/': { |
39 | | - base: '/reference/', |
40 | | - items: [ |
41 | | - { |
42 | | - text: 'API Reference', |
43 | | - items: [ |
44 | | - { |
45 | | - text: 'Project Structure', |
46 | | - link: 'project-structure', |
47 | | - }, |
48 | | - { text: 'React Partials', link: 'js-partials' }, |
49 | | - { |
50 | | - text: 'React Modules', |
51 | | - link: 'js-modules', |
52 | | - items: [ |
53 | | - { |
54 | | - text: 'Directory Structure', |
55 | | - link: 'js-modules#directory-structure-requirements', |
56 | | - }, |
57 | | - { |
58 | | - text: 'Module Fields', |
59 | | - link: 'js-modules#module-fields', |
60 | | - }, |
61 | | - { text: 'GraphQL', link: 'js-modules#graphql' }, |
62 | | - { text: 'hublDataTemplate', link: 'js-modules#hubldatatemplate' }, |
63 | | - ], |
64 | | - }, |
65 | | - { text: 'Islands', link: 'islands' }, |
66 | | - { text: '@hubspot/cms-components', link: 'cms-components' }, |
67 | | - { text: '@hubspot/cms-dev-server', link: 'cms-dev-server' }, |
68 | | - { text: 'Styling', link: 'styling' }, |
69 | | - { text: 'Static assets', link: 'static-assets' }, |
70 | | - { |
71 | | - text: 'Third-party dependencies', |
72 | | - link: 'dependencies', |
73 | | - }, |
74 | | - { text: 'Prerendering', link: 'prerendering' }, |
75 | | - { text: 'Testing', link: 'testing' }, |
76 | | - { text: 'Data Fetching', link: 'data-fetching' }, |
77 | | - { text: 'Secrets', link: 'secrets' }, |
78 | | - { text: 'Working with Serverless', link: 'serverless' }, |
79 | | - { text: 'Build Health Checks', link: 'build-healthchecks' }, |
80 | | - ], |
81 | | - }, |
82 | | - { |
83 | | - text: 'Module field types', |
84 | | - link: '../field-types/', |
85 | | - }, |
86 | | - ], |
87 | | - }, |
88 | | - '/field-types/': { |
89 | | - base: '/field-types/', |
90 | | - items: fieldTypesSidebar.map((sidebarItem) => { |
91 | | - // remove nesting in sidebar, at least while it doesn't include |
92 | | - // anything |
93 | | - const { items, collapsed, ...rest } = sidebarItem; |
94 | | - if (items.length === 0) { |
95 | | - return rest; |
96 | | - } |
97 | | - return sidebarItem; |
98 | | - }), |
99 | | - }, |
100 | | - }, |
101 | | - |
102 | | - socialLinks: [ |
103 | | - { |
104 | | - icon: 'github', |
105 | | - link: 'https://github.com/HubSpot/cms-react/', |
106 | | - }, |
107 | | - ], |
108 | | - |
109 | | - search: { |
110 | | - provider: 'local' |
111 | | - } |
112 | 15 | }, |
113 | 16 | }); |
0 commit comments