|
1 |
| -const githubOrgUrl = "https://github.com/agile-ts"; |
2 |
| -const domain = "https://agile-ts.org"; |
| 1 | +const githubOrgUrl = 'https://github.com/agile-ts'; |
| 2 | +const domain = 'https://agile-ts.org'; |
| 3 | +const npmOrgUrl = 'https://www.npmjs.com/package/@agile-ts'; |
3 | 4 |
|
4 | 5 | const customFields = {
|
5 | 6 | copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/DevBenno">BennoDev</a>`,
|
6 |
| - description: "AgileTs is a spacy, fast, simple State Management Framework", |
| 7 | + description: 'AgileTs is a spacy, fast, simple State Management Framework', |
7 | 8 | domain,
|
8 | 9 | githubOrgUrl,
|
9 | 10 | githubUrl: `${githubOrgUrl}/agile`,
|
10 | 11 | githubDocsUrl: `${githubOrgUrl}/documentation`,
|
| 12 | + npmCoreUrl: `${npmOrgUrl}/core`, |
11 | 13 | discordUrl: `https://discord.gg/T9GzreAwPH`,
|
12 |
| - stackoverflowUrl: "https://stackoverflow.com/questions/tagged/agile-ts", |
13 |
| - twitterUrl: "https://twitter.com/AgileFramework", |
14 |
| - version: "0.0.1", |
| 14 | + stackoverflowUrl: 'https://stackoverflow.com/questions/tagged/agile-ts', |
| 15 | + twitterUrl: 'https://twitter.com/AgileFramework', |
| 16 | + version: '0.0.1', |
15 | 17 | announcementBarContent:
|
16 | 18 | 'If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a> 🎉 !️',
|
17 | 19 | };
|
18 | 20 |
|
19 | 21 | const config = {
|
20 |
| - title: "AgileTs", |
21 |
| - tagline: "AgileTs is a spacy, fast, simple State-Management Framework", |
| 22 | + title: 'AgileTs', |
| 23 | + tagline: 'AgileTs is a spacy, fast, simple State-Management Framework', |
22 | 24 | url: customFields.domain,
|
23 | 25 | baseUrlIssueBanner: false,
|
24 |
| - baseUrl: "/", |
25 |
| - onBrokenLinks: "throw", |
26 |
| - favicon: "img/favicon.ico", |
27 |
| - organizationName: "AgileTs", |
28 |
| - projectName: "agilets", |
29 |
| - themes: ["@docusaurus/theme-live-codeblock"], |
| 26 | + baseUrl: '/', |
| 27 | + onBrokenLinks: 'throw', |
| 28 | + favicon: 'img/favicon.ico', |
| 29 | + organizationName: 'AgileTs', |
| 30 | + projectName: 'agilets', |
| 31 | + themes: ['@docusaurus/theme-live-codeblock'], |
30 | 32 | plugins: [
|
31 |
| - "docusaurus-plugin-sass" /* @docusaurus/plugin-google-analytics (Not necessary because it automatically gets added) */, |
| 33 | + 'docusaurus-plugin-sass' /* @docusaurus/plugin-google-analytics (Not necessary because it automatically gets added) */, |
32 | 34 | ],
|
33 | 35 | customFields: { ...customFields },
|
34 | 36 | themeConfig: {
|
35 | 37 | hideableSidebar: true,
|
36 | 38 | algolia: {
|
37 |
| - apiKey: "6b7b98565bb82e16996fd185f378d618", |
38 |
| - indexName: "agile-ts", |
| 39 | + apiKey: '6b7b98565bb82e16996fd185f378d618', |
| 40 | + indexName: 'agile-ts', |
39 | 41 | },
|
40 | 42 | colorMode: {
|
41 |
| - defaultMode: "dark", |
| 43 | + defaultMode: 'dark', |
42 | 44 | disableSwitch: false,
|
43 | 45 | respectPrefersColorScheme: true,
|
44 | 46 | },
|
45 | 47 | announcementBar: {
|
46 |
| - id: "github-star", |
| 48 | + id: 'github-star', |
47 | 49 | content: customFields.announcementBarContent,
|
48 |
| - backgroundColor: "#9c9abf", |
| 50 | + backgroundColor: '#9c9abf', |
49 | 51 | },
|
50 | 52 | prism: {
|
51 |
| - theme: require("prism-react-renderer/themes/github"), |
52 |
| - darkTheme: require("prism-react-renderer/themes/dracula"), |
| 53 | + theme: require('prism-react-renderer/themes/github'), |
| 54 | + darkTheme: require('prism-react-renderer/themes/dracula'), |
53 | 55 | },
|
54 | 56 | algolia: {
|
55 |
| - apiKey: "6b7b98565bb82e16996fd185f378d618", |
56 |
| - indexName: "agile-ts", |
| 57 | + apiKey: '6b7b98565bb82e16996fd185f378d618', |
| 58 | + indexName: 'agile-ts', |
57 | 59 | },
|
58 | 60 | navbar: {
|
59 |
| - title: " ", |
| 61 | + title: ' ', |
60 | 62 | hideOnScroll: true,
|
61 | 63 | logo: {
|
62 |
| - alt: "My Site Logo", |
63 |
| - src: "img/logo.svg", |
| 64 | + alt: 'My Site Logo', |
| 65 | + src: 'img/logo.svg', |
64 | 66 | },
|
65 | 67 | items: [
|
66 | 68 | // left
|
67 | 69 | {
|
68 |
| - label: "Get Started", |
69 |
| - position: "left", |
| 70 | + label: 'Get Started', |
| 71 | + position: 'left', |
70 | 72 | items: [
|
71 | 73 | {
|
72 |
| - label: "Installation", |
73 |
| - to: "/docs/installation/", |
| 74 | + label: 'Installation', |
| 75 | + to: '/docs/installation/', |
74 | 76 | },
|
75 | 77 | {
|
76 |
| - label: "React", |
77 |
| - to: "/docs/quick-start/react/", |
| 78 | + label: 'React', |
| 79 | + to: '/docs/quick-start/react/', |
78 | 80 | },
|
79 | 81 | {
|
80 |
| - label: "Style Guide", |
81 |
| - to: "/docs/style-guide/", |
| 82 | + label: 'Style Guide', |
| 83 | + to: '/docs/style-guide/', |
82 | 84 | },
|
83 | 85 | ],
|
84 | 86 | },
|
85 | 87 | {
|
86 |
| - label: "Community", |
87 |
| - position: "left", |
| 88 | + label: 'Community', |
| 89 | + position: 'left', |
88 | 90 | items: [
|
89 | 91 | {
|
90 |
| - label: "GitHub", |
| 92 | + label: 'GitHub', |
91 | 93 | href: customFields.githubUrl,
|
92 | 94 | },
|
93 | 95 | {
|
94 |
| - label: "Discord", |
| 96 | + label: 'Discord', |
95 | 97 | href: customFields.discordUrl,
|
96 | 98 | },
|
97 | 99 | {
|
98 |
| - label: "Stack Overflow", |
| 100 | + label: 'Stack Overflow', |
99 | 101 | href: customFields.stackoverflowUrl,
|
100 | 102 | },
|
101 | 103 | {
|
102 |
| - label: "Twitter", |
| 104 | + label: 'Twitter', |
103 | 105 | href: customFields.twitterUrl,
|
104 | 106 | },
|
105 | 107 | ],
|
106 | 108 | },
|
107 | 109 | {
|
108 |
| - label: "Documentation", |
109 |
| - position: "left", |
110 |
| - to: "docs/introduction/", |
| 110 | + label: 'Documentation', |
| 111 | + position: 'left', |
| 112 | + to: 'docs/introduction/', |
111 | 113 | },
|
112 | 114 | ],
|
113 | 115 | },
|
114 | 116 | footer: {
|
115 | 117 | copyright: customFields.copyright,
|
116 |
| - style: "dark", |
| 118 | + style: 'dark', |
117 | 119 | copyright: customFields.copyright,
|
118 | 120 | links: [
|
119 | 121 | {
|
120 |
| - title: "Docs", |
| 122 | + title: 'Docs', |
121 | 123 | items: [
|
122 | 124 | {
|
123 |
| - label: "Get Started", |
124 |
| - to: "docs/introduction", |
| 125 | + label: 'Get Started', |
| 126 | + to: 'docs/introduction', |
125 | 127 | },
|
126 | 128 | ],
|
127 | 129 | },
|
128 | 130 | {
|
129 |
| - title: "Community", |
| 131 | + title: 'Community', |
130 | 132 | items: [
|
131 | 133 | {
|
132 |
| - label: "Stack Overflow", |
| 134 | + label: 'Stack Overflow', |
133 | 135 | href: customFields.stackoverflowUrl,
|
134 | 136 | },
|
135 | 137 | {
|
136 |
| - label: "Discord", |
| 138 | + label: 'Discord', |
137 | 139 | href: customFields.discordUrl,
|
138 | 140 | },
|
139 | 141 | {
|
140 |
| - label: "Twitter", |
| 142 | + label: 'Twitter', |
141 | 143 | href: customFields.twitterUrl,
|
142 | 144 | },
|
143 | 145 | ],
|
144 | 146 | },
|
145 | 147 | {
|
146 |
| - title: "More", |
| 148 | + title: 'More', |
147 | 149 | items: [
|
148 | 150 | {
|
149 |
| - label: "Blog", |
150 |
| - to: "/blog/", |
| 151 | + label: 'Blog', |
| 152 | + to: '/blog/', |
151 | 153 | },
|
152 | 154 | {
|
153 |
| - label: "GitHub", |
| 155 | + label: 'GitHub', |
154 | 156 | href: customFields.githubUrl,
|
155 | 157 | },
|
156 | 158 | ],
|
157 | 159 | },
|
158 | 160 | ],
|
159 | 161 | },
|
160 | 162 | googleAnalytics: {
|
161 |
| - trackingID: "UA-189394644-1", |
| 163 | + trackingID: 'UA-189394644-1', |
162 | 164 | anonymizeIP: true, // Should IPs be anonymized?
|
163 | 165 | },
|
164 | 166 | },
|
165 | 167 | presets: [
|
166 | 168 | [
|
167 |
| - "@docusaurus/preset-classic", |
| 169 | + '@docusaurus/preset-classic', |
168 | 170 | {
|
169 | 171 | docs: {
|
170 |
| - path: "docs", |
| 172 | + path: 'docs', |
171 | 173 | admonitions: {
|
172 |
| - icons: "emoji", |
| 174 | + icons: 'emoji', |
173 | 175 | },
|
174 |
| - sidebarPath: require.resolve("./sidebars.js"), |
| 176 | + sidebarPath: require.resolve('./sidebars.js'), |
175 | 177 | editUrl: `${customFields.githubDocsUrl}/tree/develop`,
|
176 | 178 | showLastUpdateAuthor: false,
|
177 | 179 | showLastUpdateTime: true,
|
178 | 180 | remarkPlugins: [
|
179 |
| - [require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }], |
| 181 | + [require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }], |
180 | 182 | ],
|
181 | 183 | },
|
182 | 184 | blog: {
|
183 | 185 | showReadingTime: true,
|
184 | 186 | editUrl: `${customFields.githubDocsUrl}/tree/develop`,
|
185 | 187 | },
|
186 | 188 | theme: {
|
187 |
| - customCss: [require.resolve("./src/css/custom.scss")], |
| 189 | + customCss: [require.resolve('./src/css/custom.scss')], |
188 | 190 | },
|
189 | 191 | },
|
190 | 192 | ],
|
|
0 commit comments