File tree Expand file tree Collapse file tree 3 files changed +30
-9
lines changed Expand file tree Collapse file tree 3 files changed +30
-9
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ module.exports = {
10
10
projectName : 'graphql-cli' ,
11
11
12
12
themeConfig : {
13
+ colorMode : {
14
+ disableSwitch : true ,
15
+ } ,
13
16
sidebarCollapsible : false ,
14
17
image : 'img/logo.png' ,
15
18
navbar : {
@@ -98,12 +101,7 @@ module.exports = {
98
101
} ,
99
102
} ,
100
103
scripts : [
101
- '/js/light-mode-by-default.js' ,
102
- {
103
- src : 'https://the-guild.dev/static/banner.js' ,
104
- async : true ,
105
- defer : true ,
106
- } ,
104
+ '/js/light-mode-by-default.js'
107
105
] ,
108
106
presets : [
109
107
[
@@ -121,7 +119,7 @@ module.exports = {
121
119
customCss : require . resolve ( './src/css/custom.css' ) ,
122
120
} ,
123
121
sitemap : {
124
- cacheTime : 600 * 1001 , // 600 sec - cache purge period
122
+ // cacheTime: 600 * 1001, // 600 sec - cache purge period
125
123
changefreq : 'weekly' ,
126
124
priority : 0.5 ,
127
125
} ,
Original file line number Diff line number Diff line change 13
13
"@docusaurus/preset-classic" : " ^2.0.0-alpha" ,
14
14
"clsx" : " ^1.1.1" ,
15
15
"react" : " ^17.0.0" ,
16
- "react-dom" : " ^17.0.0"
16
+ "react-dom" : " ^17.0.0" ,
17
+ "styled-components" : " 5.1.0" ,
18
+ "the-guild-components" : " 1.0.12"
17
19
},
18
20
"browserslist" : {
19
21
"production" : [
27
29
" last 1 safari version"
28
30
]
29
31
}
30
- }
32
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
3
+ import { ThemeProvider , Header } from 'the-guild-components' ;
4
+
5
+ // Default implementation, that you can customize
6
+ function Root ( { children } ) {
7
+ return (
8
+ < >
9
+ < BrowserOnly >
10
+ { ( ) => (
11
+ < ThemeProvider >
12
+ < Header themeSwitch activeLink = { '/open-source' } accentColor = "var(--ifm-color-primary)" />
13
+ </ ThemeProvider >
14
+ ) }
15
+ </ BrowserOnly >
16
+ { children }
17
+ </ >
18
+ ) ;
19
+ }
20
+
21
+ export default Root ;
You can’t perform that action at this time.
0 commit comments