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