|
1 | 1 | // @ts-check
|
2 | 2 | // Note: type annotations allow type checking and IDEs autocompletion
|
3 | 3 |
|
4 |
| -const darkCodeTheme = require("prism-react-renderer/themes/dracula"); |
| 4 | +const darkCodeTheme = require('prism-react-renderer/themes/dracula') |
5 | 5 |
|
6 | 6 | /** @type {import('@docusaurus/types').Config} */
|
7 | 7 | const config = {
|
8 |
| - title: "One platform — standardized, built and operated by many.", |
9 |
| - tagline: "Documentation and Community Platform for the Sovereign Cloud Stack", |
10 |
| - url: "https://docs.scs.community", |
11 |
| - baseUrl: "/", |
12 |
| - onBrokenLinks: "throw", |
13 |
| - onBrokenMarkdownLinks: "warn", |
14 |
| - favicon: "img/favicon.ico", |
| 8 | + title: 'One platform — standardized, built and operated by many.', |
| 9 | + tagline: 'Documentation and Community Platform for the Sovereign Cloud Stack', |
| 10 | + url: 'https://docs.scs.community', |
| 11 | + baseUrl: '/', |
| 12 | + onBrokenLinks: 'throw', |
| 13 | + onBrokenMarkdownLinks: 'warn', |
| 14 | + favicon: 'img/favicon.ico', |
15 | 15 | markdown: {
|
16 |
| - mermaid: true, |
| 16 | + mermaid: true |
17 | 17 | },
|
18 |
| - organizationName: "SovereignCloudStack", // Usually your GitHub org/user name. |
19 |
| - projectName: "docs", // Usually your repo name. |
| 18 | + organizationName: 'SovereignCloudStack', // Usually your GitHub org/user name. |
| 19 | + projectName: 'docs', // Usually your repo name. |
20 | 20 | // Even if you don't use internalization, you can use this field to set useful
|
21 | 21 | // metadata like html lang. For example, if your site is Chinese, you may want
|
22 | 22 | // to replace "en" with "zh-Hans".
|
23 | 23 | i18n: {
|
24 |
| - defaultLocale: "en", |
25 |
| - locales: ["en"], |
| 24 | + defaultLocale: 'en', |
| 25 | + locales: ['en'] |
26 | 26 | },
|
27 | 27 | presets: [
|
28 | 28 | [
|
29 |
| - "classic", |
| 29 | + 'classic', |
30 | 30 | /** @type {import('@docusaurus/preset-classic').Options} */
|
31 | 31 | ({
|
32 | 32 | docs: {
|
33 |
| - sidebarPath: require.resolve("./sidebarsDocs.js"), |
34 |
| - editUrl: "https://github.com/SovereignCloudStack/docs/tree/main/", |
| 33 | + sidebarPath: require.resolve('./sidebarsDocs.js'), |
| 34 | + editUrl: 'https://github.com/SovereignCloudStack/docs/tree/main/' |
35 | 35 | },
|
36 | 36 | blog: {
|
37 | 37 | showReadingTime: true,
|
38 |
| - editUrl: "https://github.com/SovereignCloudStack/docs/tree/main/", |
| 38 | + editUrl: 'https://github.com/SovereignCloudStack/docs/tree/main/' |
39 | 39 | },
|
40 | 40 | theme: {
|
41 |
| - customCss: [require.resolve("./src/css/custom.css")], |
42 |
| - }, |
43 |
| - }), |
44 |
| - ], |
| 41 | + customCss: [require.resolve('./src/css/custom.css')] |
| 42 | + } |
| 43 | + }) |
| 44 | + ] |
45 | 45 | ],
|
46 | 46 | plugins: [
|
47 | 47 | [
|
48 |
| - "@docusaurus/plugin-client-redirects", |
| 48 | + '@docusaurus/plugin-client-redirects', |
49 | 49 | {
|
50 | 50 | redirects: [
|
51 | 51 | {
|
52 |
| - to: "/docs/iaas/deployment-examples/testbed", |
53 |
| - from: "/docs/category/osism-testbed/", |
54 |
| - }, |
| 52 | + to: '/docs/iaas/deployment-examples/testbed', |
| 53 | + from: '/docs/category/osism-testbed/' |
| 54 | + } |
55 | 55 | ],
|
56 | 56 | createRedirects(existingPath) {
|
57 |
| - if (existingPath.includes("/community")) { |
58 |
| - return [existingPath.replace("/community", "/community/community")]; |
| 57 | + if (existingPath.includes('/community')) { |
| 58 | + return [existingPath.replace('/community', '/community/community')] |
59 | 59 | }
|
60 |
| - return undefined; // Return a falsy value: no redirect created |
61 |
| - }, |
62 |
| - }, |
| 60 | + return undefined // Return a falsy value: no redirect created |
| 61 | + } |
| 62 | + } |
63 | 63 | ],
|
64 | 64 | [
|
65 |
| - "@docusaurus/plugin-content-docs", |
| 65 | + '@docusaurus/plugin-content-docs', |
66 | 66 | {
|
67 |
| - id: "community", |
68 |
| - path: "community", |
69 |
| - routeBasePath: "community", |
70 |
| - sidebarPath: require.resolve("./sidebarsCommunity.js"), |
| 67 | + id: 'community', |
| 68 | + path: 'community', |
| 69 | + routeBasePath: 'community', |
| 70 | + sidebarPath: require.resolve('./sidebarsCommunity.js') |
71 | 71 | // ... other options
|
72 |
| - }, |
| 72 | + } |
73 | 73 | ],
|
74 | 74 | [
|
75 |
| - "@docusaurus/plugin-content-docs", |
| 75 | + '@docusaurus/plugin-content-docs', |
76 | 76 | {
|
77 |
| - id: "dev-docs", |
78 |
| - path: "dev-docs", |
79 |
| - routeBasePath: "dev-docs", |
80 |
| - sidebarPath: require.resolve("./sidebarsDevDocs.js"), |
| 77 | + id: 'dev-docs', |
| 78 | + path: 'dev-docs', |
| 79 | + routeBasePath: 'dev-docs', |
| 80 | + sidebarPath: require.resolve('./sidebarsDevDocs.js') |
81 | 81 | // ... other options
|
82 |
| - }, |
| 82 | + } |
83 | 83 | ],
|
84 | 84 | [
|
85 |
| - "@docusaurus/plugin-content-docs", |
| 85 | + '@docusaurus/plugin-content-docs', |
86 | 86 | {
|
87 |
| - id: "standards", |
88 |
| - path: "standards", |
89 |
| - routeBasePath: "standards", |
90 |
| - sidebarPath: require.resolve("./sidebarsStandards.js"), |
91 |
| - }, |
| 87 | + id: 'standards', |
| 88 | + path: 'standards', |
| 89 | + routeBasePath: 'standards', |
| 90 | + sidebarPath: require.resolve('./sidebarsStandards.js') |
| 91 | + } |
92 | 92 | ],
|
93 |
| - "./src/plugins/docusaurus-plugin-matomo-analytics/index.js", |
| 93 | + './src/plugins/docusaurus-plugin-matomo-analytics/index.js' |
94 | 94 | ],
|
95 | 95 |
|
96 | 96 | themeConfig:
|
97 | 97 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
98 | 98 | ({
|
99 | 99 | metadata: [
|
100 | 100 | {
|
101 |
| - title: "One platform — standardized, built and operated by many.", |
| 101 | + title: 'One platform — standardized, built and operated by many.', |
102 | 102 | description:
|
103 |
| - "Documentation and Community Platform for the Sovereign Cloud Stack", |
104 |
| - }, |
| 103 | + 'Documentation and Community Platform for the Sovereign Cloud Stack' |
| 104 | + } |
105 | 105 | ],
|
106 |
| - image: "img/summit-social.png", |
| 106 | + image: 'img/summit-social.png', |
107 | 107 | navbar: {
|
108 |
| - title: "", |
| 108 | + title: '', |
109 | 109 | logo: {
|
110 |
| - alt: "SCS", |
111 |
| - src: "img/logo.svg", |
| 110 | + alt: 'SCS', |
| 111 | + src: 'img/logo.svg' |
112 | 112 | },
|
113 | 113 | items: [
|
114 | 114 | // { to: '/blog', label: 'Blog', position: 'left' },
|
115 |
| - { to: "/standards", label: "Standards", position: "left" }, |
116 |
| - { to: "/docs", label: "For Operators", position: "left" }, |
117 |
| - { to: "/dev-docs", label: "For Developers", position: "left" }, |
118 |
| - { to: "/community", label: "Community", position: "left" }, |
119 |
| - { to: "/docs/faq", label: "FAQ", position: "left" }, |
| 115 | + { to: '/standards', label: 'Standards', position: 'left' }, |
| 116 | + { to: '/docs', label: 'For Operators', position: 'left' }, |
| 117 | + { to: '/dev-docs', label: 'For Developers', position: 'left' }, |
| 118 | + { to: '/community', label: 'Community', position: 'left' }, |
| 119 | + { to: '/docs/faq', label: 'FAQ', position: 'left' }, |
120 | 120 | {
|
121 |
| - href: "https://github.com/SovereignCloudStack/docs", |
122 |
| - label: "GitHub", |
123 |
| - position: "right", |
124 |
| - }, |
125 |
| - ], |
| 121 | + href: 'https://github.com/SovereignCloudStack/docs', |
| 122 | + label: 'GitHub', |
| 123 | + position: 'right' |
| 124 | + } |
| 125 | + ] |
126 | 126 | },
|
127 | 127 | footer: {
|
128 |
| - style: "light", |
| 128 | + style: 'light', |
129 | 129 | links: [
|
130 | 130 | {
|
131 |
| - title: "Docs", |
| 131 | + title: 'Docs', |
132 | 132 | items: [
|
133 | 133 | {
|
134 |
| - label: "Contribute", |
135 |
| - to: "/docs", |
136 |
| - }, |
137 |
| - ], |
| 134 | + label: 'Contribute', |
| 135 | + to: '/docs' |
| 136 | + } |
| 137 | + ] |
138 | 138 | },
|
139 | 139 | {
|
140 |
| - title: "Community", |
| 140 | + title: 'Community', |
141 | 141 | items: [
|
142 | 142 | {
|
143 |
| - label: "Matrix", |
144 |
| - href: "https://matrix.to/#/!TiDqlLmEUaXqTemaLc:matrix.org?via=matrix.org", |
| 143 | + label: 'Matrix', |
| 144 | + href: 'https://matrix.to/#/!TiDqlLmEUaXqTemaLc:matrix.org?via=matrix.org' |
145 | 145 | },
|
146 | 146 | {
|
147 |
| - label: "Mastodon", |
148 |
| - href: "https://fosstodon.org/@sovereigncloudstack", |
149 |
| - }, |
150 |
| - ], |
| 147 | + label: 'Mastodon', |
| 148 | + href: 'https://fosstodon.org/@sovereigncloudstack' |
| 149 | + } |
| 150 | + ] |
151 | 151 | },
|
152 | 152 | {
|
153 |
| - title: "More", |
| 153 | + title: 'More', |
154 | 154 | items: [
|
155 | 155 | // {
|
156 | 156 | // label: 'Blog',
|
157 | 157 | // to: '/blog'
|
158 | 158 | // },
|
159 | 159 | {
|
160 |
| - label: "GitHub", |
161 |
| - href: "https://github.com/SovereignCloudStack/docs", |
162 |
| - }, |
163 |
| - ], |
164 |
| - }, |
| 160 | + label: 'GitHub', |
| 161 | + href: 'https://github.com/SovereignCloudStack/docs' |
| 162 | + } |
| 163 | + ] |
| 164 | + } |
165 | 165 | ],
|
166 | 166 | copyright:
|
167 |
| - "Sovereign Cloud Stack, SCS and the logo are registered trademarks of the Open Source Business Alliance e.V. — Other trademarks are property of their respective owners.", |
| 167 | + 'Sovereign Cloud Stack, SCS and the logo are registered trademarks of the Open Source Business Alliance e.V. — Other trademarks are property of their respective owners.' |
168 | 168 | },
|
169 | 169 | prism: {
|
170 | 170 | theme: darkCodeTheme,
|
171 | 171 | darkTheme: darkCodeTheme,
|
172 |
| - additionalLanguages: ["powershell", "ruby"], |
| 172 | + additionalLanguages: ['powershell', 'ruby'] |
173 | 173 | },
|
174 | 174 | matomoAnalytics: {
|
175 |
| - matomoUrl: "https://matomo.scs.community/", |
176 |
| - siteId: "2", |
177 |
| - phpLoader: "matomo.php", |
178 |
| - jsLoader: "matomo.js", |
179 |
| - disableCookies: true, |
180 |
| - }, |
| 175 | + matomoUrl: 'https://matomo.scs.community/', |
| 176 | + siteId: '2', |
| 177 | + phpLoader: 'matomo.php', |
| 178 | + jsLoader: 'matomo.js', |
| 179 | + disableCookies: true |
| 180 | + } |
181 | 181 | }),
|
182 | 182 |
|
183 | 183 | themes: [
|
184 |
| - "@docusaurus/theme-mermaid", |
| 184 | + '@docusaurus/theme-mermaid', |
185 | 185 | [
|
186 | 186 | // @ts-ignore
|
187 |
| - "@easyops-cn/docusaurus-search-local", |
| 187 | + '@easyops-cn/docusaurus-search-local', |
188 | 188 | /** @type {import('@easyops-cn/docusaurus-search-local').PluginOptions} */
|
189 | 189 | // @ts-ignore
|
190 | 190 | ({
|
191 | 191 | hashed: true,
|
192 |
| - docsDir: ["docs", "community", "standards", "dev-docs"], |
193 |
| - docsRouteBasePath: ["docs", "community", "standards", "dev-docs"], |
194 |
| - }), |
195 |
| - ], |
196 |
| - ], |
197 |
| -}; |
| 192 | + docsDir: ['docs', 'community', 'standards', 'dev-docs'], |
| 193 | + docsRouteBasePath: ['docs', 'community', 'standards', 'dev-docs'] |
| 194 | + }) |
| 195 | + ] |
| 196 | + ] |
| 197 | +} |
198 | 198 |
|
199 |
| -module.exports = config; |
| 199 | +module.exports = config |
0 commit comments