1- __webpack_public_path__ = "/cli /"
1+ __webpack_public_path__ = "/docs /"
22
3- const versions = require ( './versions.json ' ) ;
3+ const resolveGlob = require ( 'resolve-glob ' ) ;
44
55module . exports = {
6- title : 'DevSpace CLI | Documentation' ,
6+ title : 'DevSpace | Documentation' ,
77 tagline : 'The tagline of my site' ,
88 url : 'https://devspace.sh' ,
99 baseUrl : __webpack_public_path__ ,
@@ -15,60 +15,55 @@ module.exports = {
1515 disableSwitch : true
1616 } ,
1717 navbar : {
18+ //hideOnScroll: true,
1819 logo : {
1920 alt : 'DevSpace' ,
20- src : '/img/ logo-devspace .svg' ,
21+ src : '/media/logos/devspace- logo-primary .svg' ,
2122 href : 'https://devspace.sh/' ,
2223 target : '_self'
2324 } ,
2425 items : [
2526 {
26- to : 'versions' ,
27- label : `${ versions [ 0 ] } ` ,
28- position : 'left' ,
29- className : 'version-link'
27+ type : 'docsVersionDropdown' ,
28+ position : 'left' ,
3029 } ,
3130 {
32- href : 'https://devspace.sh/' ,
33- label : 'Website' ,
34- position : 'left' ,
35- target : '_self'
31+ href : 'https://devspace.sh/' ,
32+ label : 'Website' ,
33+ position : 'left' ,
34+ target : '_self'
3635 } ,
3736 {
38- href : __webpack_public_path__ + 'docs/' + ( process . env . NODE_ENV == 'production' ? '' : 'next/' ) + 'introduction ',
39- label : 'Docs ' ,
40- position : 'left' ,
41- target : '_self'
37+ href : 'https://loft.sh/blog/tags/devspace ',
38+ label : 'Blog ' ,
39+ position : 'left' ,
40+ target : '_self'
4241 } ,
4342 {
44- href : 'https://devspace.cloud/blog' ,
45- label : 'Blog' ,
46- position : 'left'
43+ href : 'https://slack.loft.sh/' ,
44+ className : 'slack-link' ,
45+ 'aria-label' : 'Slack' ,
46+ position : 'right' ,
4747 } ,
4848 {
49- href : 'https://slack.k8s.io/#devspace' ,
50- className : 'slack-link' ,
51- 'aria-label' : 'Slack' ,
52- position : 'right' ,
53- } ,
54- {
55- href : 'https://github.com/loft-sh/devspace' ,
56- className : 'github-link' ,
57- 'aria-label' : 'GitHub' ,
58- position : 'right' ,
49+ href : 'https://github.com/loft-sh/devspace' ,
50+ className : 'github-link' ,
51+ 'aria-label' : 'GitHub' ,
52+ position : 'right' ,
5953 } ,
6054 ] ,
6155 } ,
6256 algolia : {
63- apiKey : "b9533b52dde7e23272dbd4211435c070" ,
57+ apiKey : "9396b07e4ad34e90394fbfe79695d88d" ,
58+ appId : "L1ZH1CZBMP" ,
6459 indexName : "devspace-cli" ,
6560 placeholder : "Search..." ,
6661 algoliaOptions : { } ,
6762 } ,
6863 footer : {
6964 style : 'light' ,
7065 links : [ ] ,
71- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } DevSpace Authors ` ,
66+ copyright : `Copyright © DevSpace Authors <br/> DevSpace is an open-source project originally created by <a href="https://loft.sh/">Loft Labs, Inc.</a> ` ,
7267 } ,
7368 } ,
7469 presets : [
@@ -77,27 +72,92 @@ module.exports = {
7772 {
7873 docs : {
7974 path : 'pages' ,
80- routeBasePath : 'docs ' ,
75+ routeBasePath : '/ ' ,
8176 sidebarPath : require . resolve ( './sidebars.js' ) ,
82- editUrl :
83- 'https://github.com/loft-sh/devspace/edit/master/docs/' ,
84- } ,
77+ showLastUpdateTime : true ,
78+ editUrl : 'https://github.com/loft-sh/devspace/edit/master/docs/' ,
79+ lastVersion : "current" ,
80+ versions : {
81+ current : {
82+ label : "6.x (Latest)" ,
83+ path : ""
84+ }
85+ } ,
86+ remarkPlugins : [
87+ [
88+ require ( 'mdx-mermaid' ) ,
89+ {
90+ mermaid : {
91+ securityLevel : "loose" ,
92+ theme : 'neutral' ,
93+ themeVariables : {
94+ primaryColor : '#00bdff' ,
95+ lineColor : '#bdd6f3' ,
96+ arrowheadColor : '#bdd6f3' ,
97+ mainBkg : '#6c89ad' ,
98+ contrast : '#3e5371' ,
99+ textColor : '#fff' ,
100+ primaryTextColor : '#fff' ,
101+ secondaryTextColor : '#fff' ,
102+ tertiaryTextColor : '#fff' ,
103+ border1 : 'transparent' ,
104+ border2 : 'transparent' ,
105+ clusterBkg : 'transparent' ,
106+ clusterBorder : '#bdd6f3' ,
107+ edgeLabelBackground : '#bcd6f3' ,
108+
109+ } ,
110+ flowchart : {
111+ curve : 'basis' ,
112+ nodeSpacing : 20 ,
113+ rankSpacing : 50 ,
114+ }
115+ }
116+ }
117+ ]
118+ ] ,
119+ } ,
85120 theme : {
86- customCss : require . resolve ( './src/css/custom.css' ) ,
121+ customCss : resolveGlob . sync ( [ './src/css/**/*.scss' ] ) ,
87122 } ,
88123 } ,
89124 ] ,
125+ [
126+ 'redocusaurus' ,
127+ {
128+ specs : [
129+ {
130+ spec : 'schemas/config-openapi.json' ,
131+ } ,
132+ ] ,
133+ theme : {
134+ primaryColor : '#00bdff' ,
135+ redocOptions : {
136+ hideDownloadButton : false ,
137+ disableSearch : true ,
138+ colors : {
139+ border : {
140+ dark : '#00bdff' ,
141+ light : '#00bdff' ,
142+ }
143+ }
144+ } ,
145+ } ,
146+ } ,
147+ ] ,
148+ ] ,
149+ themes : [
150+ '@saucelabs/theme-github-codeblock'
151+ ] ,
152+ plugins : [
153+ 'docusaurus-plugin-sass' ,
154+ 'plugin-image-zoom' ,
90155 ] ,
91156 scripts : [
92157 {
93- src :
94- 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js' ,
95- async : true ,
96- } ,
97- {
98- src :
99- 'https://devspace.sh/docs.js' ,
100- async : true ,
158+ src : 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js' ,
159+ async : true ,
101160 } ,
102161 ] ,
162+ clientModules : resolveGlob . sync ( [ './src/js/**/*.js' ] ) ,
103163} ;
0 commit comments