|
1 | 1 | // @ts-check
|
2 | 2 | // Note: type annotations allow type checking and IDEs autocompletion
|
3 | 3 |
|
4 |
| -const lightCodeTheme = require("prism-react-renderer/themes/github"); |
5 |
| -const darkCodeTheme = require("prism-react-renderer/themes/dracula"); |
| 4 | +const lightCodeTheme = require('prism-react-renderer/themes/github') |
| 5 | +const darkCodeTheme = require('prism-react-renderer/themes/dracula') |
6 | 6 |
|
7 | 7 | /** @type {import('@docusaurus/types').Config} */
|
8 | 8 | const config = {
|
9 |
| - title: "Sovereign Cloud Stack Documentation", |
10 |
| - tagline: "One platform - standardized, built and operated by many.", |
11 |
| - url: "https://docs.scs.community.com", |
12 |
| - baseUrl: "/", |
13 |
| - onBrokenLinks: "throw", |
14 |
| - onBrokenMarkdownLinks: "warn", |
15 |
| - favicon: "img/favicon.ico", |
| 9 | + title: 'Sovereign Cloud Stack Documentation', |
| 10 | + tagline: 'One platform - standardized, built and operated by many.', |
| 11 | + url: 'https://docs.scs.community.com', |
| 12 | + baseUrl: '/', |
| 13 | + onBrokenLinks: 'throw', |
| 14 | + onBrokenMarkdownLinks: 'warn', |
| 15 | + favicon: 'img/favicon.ico', |
16 | 16 |
|
17 |
| - // GitHub pages deployment config. |
18 |
| - // If you aren't using GitHub pages, you don't need these. |
19 |
| - organizationName: "SovereignCloudStack", // Usually your GitHub org/user name. |
20 |
| - projectName: "docs-page", // Usually your repo name. |
| 17 | + // GitHub pages deployment config. |
| 18 | + // If you aren't using GitHub pages, you don't need these. |
| 19 | + organizationName: 'SovereignCloudStack', // Usually your GitHub org/user name. |
| 20 | + projectName: 'docs-page', // Usually your repo name. |
21 | 21 |
|
22 |
| - // Even if you don't use internalization, you can use this field to set useful |
23 |
| - // metadata like html lang. For example, if your site is Chinese, you may want |
24 |
| - // to replace "en" with "zh-Hans". |
25 |
| - i18n: { |
26 |
| - defaultLocale: "en", |
27 |
| - locales: ["en"], |
28 |
| - }, |
| 22 | + // Even if you don't use internalization, you can use this field to set useful |
| 23 | + // metadata like html lang. For example, if your site is Chinese, you may want |
| 24 | + // to replace "en" with "zh-Hans". |
| 25 | + i18n: { |
| 26 | + defaultLocale: 'en', |
| 27 | + locales: ['en'] |
| 28 | + }, |
29 | 29 |
|
30 |
| - presets: [ |
31 |
| - [ |
32 |
| - "classic", |
33 |
| - /** @type {import('@docusaurus/preset-classic').Options} */ |
34 |
| - ({ |
35 |
| - docs: { |
36 |
| - sidebarPath: require.resolve("./sidebars.js"), |
37 |
| - // Please change this to your repo. |
38 |
| - // Remove this to remove the "edit this page" links. |
39 |
| - editUrl: |
40 |
| - "https://github.com/SovereignCloudStack/docs-page/tree/main/", |
41 |
| - }, |
42 |
| - blog: { |
43 |
| - showReadingTime: true, |
44 |
| - // Please change this to your repo. |
45 |
| - // Remove this to remove the "edit this page" links. |
46 |
| - editUrl: |
47 |
| - "https://github.com/SovereignCloudStack/docs-page/tree/main/" |
48 |
| - }, |
49 |
| - theme: { |
50 |
| - customCss: require.resolve("./src/css/custom.css"), |
51 |
| - }, |
52 |
| - }), |
53 |
| - ], |
54 |
| - ], |
| 30 | + presets: [ |
| 31 | + [ |
| 32 | + 'classic', |
| 33 | + /** @type {import('@docusaurus/preset-classic').Options} */ |
| 34 | + ({ |
| 35 | + docs: { |
| 36 | + sidebarPath: require.resolve('./sidebars.js'), |
| 37 | + editUrl: 'https://github.com/SovereignCloudStack/docs-page/tree/main/' |
| 38 | + }, |
| 39 | + blog: { |
| 40 | + showReadingTime: true, |
| 41 | + editUrl: 'https://github.com/SovereignCloudStack/docs-page/tree/main/' |
55 | 42 |
|
56 |
| - themeConfig: |
| 43 | + }, |
| 44 | + theme: { |
| 45 | + customCss: [require.resolve('./src/css/custom.css')] |
| 46 | + } |
| 47 | + }) |
| 48 | + ] |
| 49 | + ], |
| 50 | + plugins: [ |
| 51 | + [ |
| 52 | + '@docusaurus/plugin-content-docs', |
| 53 | + { |
| 54 | + id: 'community', |
| 55 | + path: 'community', |
| 56 | + routeBasePath: 'community', |
| 57 | + sidebarPath: require.resolve('./sidebarsCommunity.js') |
| 58 | + // ... other options |
| 59 | + } |
| 60 | + ] |
| 61 | + ], |
| 62 | + |
| 63 | + themeConfig: |
57 | 64 | /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
58 | 65 | ({
|
59 |
| - navbar: { |
60 |
| - title: "", |
61 |
| - logo: { |
62 |
| - alt: "My Site Logo", |
63 |
| - src: "img/logo.svg", |
64 |
| - }, |
65 |
| - items: [ |
66 |
| - { |
67 |
| - type: "doc", |
68 |
| - docId: "intro", |
69 |
| - position: "left", |
70 |
| - label: "Docs", |
71 |
| - }, |
72 |
| - { to: "/blog", label: "Blog", position: "left" }, |
73 |
| - { |
74 |
| - href: "https://github.com/SovereignCloudStack/docs-page", |
75 |
| - label: "GitHub", |
76 |
| - position: "right", |
77 |
| - }, |
78 |
| - ], |
79 |
| - }, |
80 |
| - footer: { |
81 |
| - style: "dark", |
82 |
| - links: [ |
83 |
| - { |
84 |
| - title: "Docs", |
85 |
| - items: [ |
86 |
| - { |
87 |
| - label: "Contribute", |
88 |
| - to: "/docs/intro", |
89 |
| - }, |
90 |
| - ], |
91 |
| - }, |
92 |
| - { |
93 |
| - title: "Community", |
94 |
| - items: [ |
95 |
| - { |
96 |
| - label: "Matrix", |
97 |
| - href: "https://matrix.to/#/!TiDqlLmEUaXqTemaLc:matrix.org?via=matrix.org", |
98 |
| - }, |
99 |
| - { |
100 |
| - label: "Twitter", |
101 |
| - href: "https://twitter.com/scs_osballiance", |
102 |
| - }, |
103 |
| - ], |
104 |
| - }, |
105 |
| - { |
106 |
| - title: "More", |
107 |
| - items: [ |
108 |
| - { |
109 |
| - label: "Blog", |
110 |
| - to: "/blog", |
111 |
| - }, |
112 |
| - { |
113 |
| - label: "GitHub", |
114 |
| - href: "https://github.com/SovereignCloudStack/docs-page", |
115 |
| - }, |
116 |
| - ], |
117 |
| - }, |
118 |
| - ], |
119 |
| - copyright: |
120 |
| - "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.", |
121 |
| - }, |
122 |
| - prism: { |
123 |
| - theme: lightCodeTheme, |
124 |
| - darkTheme: darkCodeTheme, |
125 |
| - additionalLanguages: ["powershell", "ruby"], |
| 66 | + navbar: { |
| 67 | + title: '', |
| 68 | + logo: { |
| 69 | + alt: 'My Site Logo', |
| 70 | + src: 'img/logo.svg' |
126 | 71 | },
|
127 |
| - }), |
128 |
| -}; |
| 72 | + items: [ |
| 73 | + { |
| 74 | + type: 'doc', |
| 75 | + docId: 'intro', |
| 76 | + position: 'left', |
| 77 | + label: 'Docs' |
| 78 | + }, |
| 79 | + // { to: '/blog', label: 'Blog', position: 'left' }, |
| 80 | + { to: '/community', label: 'Community', position: 'left' }, |
| 81 | + { |
| 82 | + href: 'https://github.com/SovereignCloudStack/docs-page', |
| 83 | + label: 'GitHub', |
| 84 | + position: 'right' |
| 85 | + } |
| 86 | + ] |
| 87 | + }, |
| 88 | + footer: { |
| 89 | + style: 'light', |
| 90 | + links: [ |
| 91 | + { |
| 92 | + title: 'Docs', |
| 93 | + items: [ |
| 94 | + { |
| 95 | + label: 'Contribute', |
| 96 | + to: '/docs/intro' |
| 97 | + } |
| 98 | + ] |
| 99 | + }, |
| 100 | + { |
| 101 | + title: 'Community', |
| 102 | + items: [ |
| 103 | + { |
| 104 | + label: 'Matrix', |
| 105 | + href: 'https://matrix.to/#/!TiDqlLmEUaXqTemaLc:matrix.org?via=matrix.org' |
| 106 | + }, |
| 107 | + { |
| 108 | + label: 'Twitter', |
| 109 | + href: 'https://twitter.com/scs_osballiance' |
| 110 | + } |
| 111 | + ] |
| 112 | + }, |
| 113 | + { |
| 114 | + title: 'More', |
| 115 | + items: [ |
| 116 | + { |
| 117 | + label: 'Blog', |
| 118 | + to: '/blog' |
| 119 | + }, |
| 120 | + { |
| 121 | + label: 'GitHub', |
| 122 | + href: 'https://github.com/SovereignCloudStack/docs-page' |
| 123 | + } |
| 124 | + ] |
| 125 | + } |
| 126 | + ], |
| 127 | + copyright: '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.' |
| 128 | + }, |
| 129 | + prism: { |
| 130 | + theme: lightCodeTheme, |
| 131 | + darkTheme: darkCodeTheme, |
| 132 | + additionalLanguages: ['powershell', 'ruby'] |
| 133 | + } |
| 134 | + }) |
| 135 | +} |
129 | 136 |
|
130 |
| -module.exports = config; |
| 137 | +module.exports = config |
0 commit comments