|
1 | | -const versions = require("./versions.json"); |
| 1 | +const versions = require('./versions.json') |
2 | 2 | const communities = [ |
3 | | - { |
4 | | - label: "Slack", |
5 | | - href: "https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN", |
6 | | - }, |
7 | | - { |
8 | | - label: "GitHub", |
9 | | - href: "https://github.com/litmuschaos", |
10 | | - }, |
11 | | - { |
12 | | - label: "Twitter", |
13 | | - href: "https://twitter.com/LitmusChaos", |
14 | | - }, |
15 | | - { |
16 | | - label: "Blog", |
17 | | - href: "https://dev.to/t/litmuschaos/latest", |
18 | | - }, |
19 | | - { |
20 | | - label: "YouTube", |
21 | | - href: "https://www.youtube.com/channel/UCa57PMqmz_j0wnteRa9nCaw ", |
22 | | - }, |
23 | | -]; |
| 3 | + { |
| 4 | + label: 'Slack', |
| 5 | + href: 'https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN' |
| 6 | + }, |
| 7 | + { |
| 8 | + label: 'GitHub', |
| 9 | + href: 'https://github.com/litmuschaos' |
| 10 | + }, |
| 11 | + { |
| 12 | + label: 'Twitter', |
| 13 | + href: 'https://twitter.com/LitmusChaos' |
| 14 | + }, |
| 15 | + { |
| 16 | + label: 'Blog', |
| 17 | + href: 'https://dev.to/t/litmuschaos/latest' |
| 18 | + }, |
| 19 | + { |
| 20 | + label: 'YouTube', |
| 21 | + href: 'https://www.youtube.com/channel/UCa57PMqmz_j0wnteRa9nCaw ' |
| 22 | + } |
| 23 | +] |
24 | 24 |
|
25 | 25 | const resources = [ |
26 | | - { |
27 | | - label: "Docs", |
28 | | - href: "https://docs.litmuschaos.io/", |
29 | | - }, |
30 | | - { |
31 | | - label: "FAQ", |
32 | | - href: "https://docs.litmuschaos.io/docs/faq-general/", |
33 | | - }, |
34 | | - { |
35 | | - label: "Issues", |
36 | | - href: "https://github.com/litmuschaos/litmus/issues", |
37 | | - }, |
38 | | -]; |
| 26 | + { |
| 27 | + label: 'Docs', |
| 28 | + href: 'https://docs.litmuschaos.io/' |
| 29 | + }, |
| 30 | + { |
| 31 | + label: 'FAQ', |
| 32 | + href: 'https://docs.litmuschaos.io/docs/faq-general/' |
| 33 | + }, |
| 34 | + { |
| 35 | + label: 'Issues', |
| 36 | + href: 'https://github.com/litmuschaos/litmus/issues' |
| 37 | + } |
| 38 | +] |
39 | 39 |
|
40 | 40 | module.exports = { |
41 | | - title: "Litmus Docs", |
42 | | - tagline: "A website for testing", |
43 | | - url: "https://litmusdocs.netlify.app", |
44 | | - baseUrl: "/", |
45 | | - onBrokenLinks: "throw", |
46 | | - favicon: "img/favicon.ico", |
47 | | - organizationName: "litmuschaos", |
48 | | - projectName: "litmus", |
49 | | - themeConfig: { |
50 | | - navbar: { |
51 | | - title: "Litmus Docs", |
52 | | - logo: { |
53 | | - alt: "Litmus Logo", |
54 | | - srcDark: "img/litmus-icon.svg", |
55 | | - src: "img/litmus-light-icon.svg", |
56 | | - }, |
57 | | - items: [ |
58 | | - { |
59 | | - type: "docsVersion", |
60 | | - position: "right", |
61 | | - }, |
62 | | - { |
63 | | - activeBasePath: "Version", |
64 | | - label: "Versions", |
65 | | - position: "left", |
66 | | - items: [ |
67 | | - // adding items will create a dropdown |
68 | | - { |
69 | | - label: versions[0], |
70 | | - to: "docs/", |
71 | | - activeBaseRegex: `docs/(?!${versions.join("|")}|next)`, |
72 | | - }, |
73 | | - ...versions.slice(1).map((version) => ({ |
74 | | - label: version, |
75 | | - to: `docs/${version}/getstarted`, |
76 | | - })), |
77 | | - { |
78 | | - label: "Master/Unreleased", |
79 | | - to: "docs/next/introduction", |
80 | | - }, |
81 | | - ], |
82 | | - }, |
83 | | - { |
84 | | - href: "https://github.com/litmuschaos/litmus", |
85 | | - label: "GitHub", |
86 | | - position: "right", |
87 | | - }, |
88 | | - { |
89 | | - href: "https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN", |
90 | | - label: "Slack", |
91 | | - position: "right", |
92 | | - }, |
93 | | - { |
94 | | - href: "https://hub.litmuschaos.io/", |
95 | | - label: "Chaos Hub", |
96 | | - position: "right", |
97 | | - }, |
98 | | - ], |
99 | | - }, |
100 | | - footer: { |
101 | | - style: "dark", |
102 | | - logo: { |
103 | | - alt: "Litmus Logo", |
104 | | - src: "img/litmus-logo-dark-bg-icon.svg", |
105 | | - }, |
106 | | - links: [ |
107 | | - { |
108 | | - title: "Community", |
109 | | - items: communities, |
110 | | - }, |
111 | | - { |
112 | | - title: "Resources", |
113 | | - items: resources, |
114 | | - }, |
115 | | - ], |
116 | | - copyright: `Copyright © ${new Date().getFullYear()} LitmusChaos Authors. All rights reserved.`, |
117 | | - }, |
118 | | - hideableSidebar: true, |
119 | | - }, |
120 | | - presets: [ |
121 | | - [ |
122 | | - "@docusaurus/preset-classic", |
123 | | - { |
124 | | - docs: { |
125 | | - sidebarPath: require.resolve("./sidebars.js"), |
126 | | - editUrl: |
127 | | - "https://github.com/litmuschaos/litmus-docs-beta/edit/staging/", |
128 | | - showLastUpdateTime: true, |
129 | | - }, |
130 | | - theme: { |
131 | | - customCss: require.resolve("./src/css/custom.css"), |
132 | | - }, |
133 | | - }, |
134 | | - ], |
135 | | - ], |
136 | | -}; |
| 41 | + title: 'Litmus Docs', |
| 42 | + tagline: 'A website for testing', |
| 43 | + url: 'https://litmusdocs.netlify.app', |
| 44 | + baseUrl: '/', |
| 45 | + onBrokenLinks: 'throw', |
| 46 | + favicon: 'img/favicon.ico', |
| 47 | + organizationName: 'litmuschaos', |
| 48 | + projectName: 'litmus', |
| 49 | + themeConfig: { |
| 50 | + navbar: { |
| 51 | + title: 'Litmus Docs', |
| 52 | + logo: { |
| 53 | + alt: 'Litmus Logo', |
| 54 | + srcDark: 'img/litmus-icon.svg', |
| 55 | + src: 'img/litmus-light-icon.svg' |
| 56 | + }, |
| 57 | + items: [ |
| 58 | + { |
| 59 | + type: 'docsVersion', |
| 60 | + position: 'right' |
| 61 | + }, |
| 62 | + { |
| 63 | + activeBasePath: 'Version', |
| 64 | + label: 'Versions', |
| 65 | + position: 'left', |
| 66 | + items: [ |
| 67 | + // adding items will create a dropdown |
| 68 | + { |
| 69 | + label: versions[0], |
| 70 | + to: 'docs/', |
| 71 | + activeBaseRegex: `docs/(?!${versions.join('|')}|next)` |
| 72 | + }, |
| 73 | + ...versions.slice(1).map((version) => ({ |
| 74 | + label: version, |
| 75 | + to: `docs/${version}/getstarted` |
| 76 | + })), |
| 77 | + { |
| 78 | + label: 'Master/Unreleased', |
| 79 | + to: 'docs/next/introduction' |
| 80 | + } |
| 81 | + ] |
| 82 | + }, |
| 83 | + { |
| 84 | + href: 'https://github.com/litmuschaos/litmus', |
| 85 | + label: 'GitHub', |
| 86 | + position: 'right' |
| 87 | + }, |
| 88 | + { |
| 89 | + href: 'https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN', |
| 90 | + label: 'Slack', |
| 91 | + position: 'right' |
| 92 | + }, |
| 93 | + { |
| 94 | + href: 'https://hub.litmuschaos.io/', |
| 95 | + label: 'Chaos Hub', |
| 96 | + position: 'right' |
| 97 | + } |
| 98 | + ] |
| 99 | + }, |
| 100 | + colorMode: { |
| 101 | + // "light" | "dark" |
| 102 | + defaultMode: 'light', |
| 103 | + |
| 104 | + // Hides the switch in the navbar |
| 105 | + // Useful if you want to support a single color mode |
| 106 | + disableSwitch: true |
| 107 | + }, |
| 108 | + footer: { |
| 109 | + style: 'dark', |
| 110 | + logo: { |
| 111 | + alt: 'Litmus Logo', |
| 112 | + src: 'img/litmus-logo-dark-bg-icon.svg' |
| 113 | + }, |
| 114 | + links: [ |
| 115 | + { |
| 116 | + title: 'Community', |
| 117 | + items: communities |
| 118 | + }, |
| 119 | + { |
| 120 | + title: 'Resources', |
| 121 | + items: resources |
| 122 | + } |
| 123 | + ], |
| 124 | + copyright: `Copyright © ${new Date().getFullYear()} LitmusChaos Authors. All rights reserved.` |
| 125 | + }, |
| 126 | + hideableSidebar: true |
| 127 | + }, |
| 128 | + presets: [ |
| 129 | + [ |
| 130 | + '@docusaurus/preset-classic', |
| 131 | + { |
| 132 | + docs: { |
| 133 | + sidebarPath: require.resolve('./sidebars.js'), |
| 134 | + editUrl: 'https://github.com/litmuschaos/litmus-docs-beta/edit/staging/', |
| 135 | + showLastUpdateTime: true |
| 136 | + }, |
| 137 | + theme: { |
| 138 | + customCss: require.resolve('./src/css/global.css') |
| 139 | + } |
| 140 | + } |
| 141 | + ] |
| 142 | + ] |
| 143 | +} |
0 commit comments