@@ -4,45 +4,45 @@ const path = require('path');
4
4
/* Debugging */
5
5
var SITE_URL ;
6
6
if ( ! process . env . CONTEXT || process . env . CONTEXT == 'production' ) {
7
- SITE_URL = 'https://docs.getdbt.com' ;
7
+ SITE_URL = 'https://docs.getdbt.com' ;
8
8
} else {
9
- SITE_URL = process . env . DEPLOY_URL ;
9
+ SITE_URL = process . env . DEPLOY_URL ;
10
10
}
11
11
12
12
var GIT_BRANCH ;
13
13
if ( ! process . env . CONTEXT || process . env . CONTEXT == 'production' ) {
14
- GIT_BRANCH = 'current' ;
14
+ GIT_BRANCH = 'current' ;
15
15
} else {
16
- GIT_BRANCH = process . env . HEAD ;
16
+ GIT_BRANCH = process . env . HEAD ;
17
17
}
18
18
19
19
var PRERELEASE = ( process . env . PRERELEASE || false ) ;
20
20
21
21
var WARNING_BANNER ;
22
22
if ( ! PRERELEASE ) {
23
- WARNING_BANNER = { } ;
23
+ WARNING_BANNER = { } ;
24
24
} else {
25
- WARNING_BANNER = {
26
- id : 'prerelease' , // Any value that will identify this message.
27
- content :
28
- 'CAUTION: Prerelease! This documentation reflects the next minor version of dbt. <a href="https://docs.getdbt.com">View current docs</a>.' ,
29
- backgroundColor : '#ffa376' , // Defaults to `#fff`.
30
- textColor : '#033744' , // Defaults to `#000`.
31
- }
25
+ WARNING_BANNER = {
26
+ id : 'prerelease' , // Any value that will identify this message.
27
+ content :
28
+ 'CAUTION: Prerelease! This documentation reflects the next minor version of dbt. <a href="https://docs.getdbt.com">View current docs</a>.' ,
29
+ backgroundColor : '#ffa376' , // Defaults to `#fff`.
30
+ textColor : '#033744' , // Defaults to `#000`.
31
+ }
32
32
}
33
33
34
34
var ALGOLIA_API_KEY ;
35
35
if ( ! process . env . ALGOLIA_API_KEY ) {
36
- ALGOLIA_API_KEY = '0e9665cbb272719dddc6e7113b4131a5' ;
36
+ ALGOLIA_API_KEY = '0e9665cbb272719dddc6e7113b4131a5' ;
37
37
} else {
38
- ALGOLIA_API_KEY = process . env . ALGOLIA_API_KEY ;
38
+ ALGOLIA_API_KEY = process . env . ALGOLIA_API_KEY ;
39
39
}
40
40
41
41
var ALGOLIA_INDEX_NAME ;
42
42
if ( ! process . env . ALGOLIA_INDEX_NAME ) {
43
- ALGOLIA_INDEX_NAME = 'dbt' ;
43
+ ALGOLIA_INDEX_NAME = 'dbt' ;
44
44
} else {
45
- ALGOLIA_INDEX_NAME = process . env . ALGOLIA_INDEX_NAME ;
45
+ ALGOLIA_INDEX_NAME = process . env . ALGOLIA_INDEX_NAME ;
46
46
}
47
47
48
48
console . log ( "DEBUG: CONTEXT =" , process . env . CONTEXT ) ;
@@ -76,21 +76,21 @@ module.exports = {
76
76
77
77
prism : {
78
78
theme : ( ( ) => {
79
- var theme = require ( 'prism-react-renderer/themes/nightOwl' ) ;
80
- // Add additional rule to nightowl theme in order to change
81
- // the color of YAML keys (to be different than values).
82
- // There weren't many Prism themes that differentiated
83
- // YAML keys and values. See link:
84
- // https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes
85
- theme . styles . push ( {
86
- types : [ "atrule" ] ,
87
- style : {
88
- // color chosen from the nightowl theme palette
89
- // https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/nightOwl.js#L83
90
- color : "rgb(255, 203, 139)"
91
- }
92
- } ) ;
93
- return theme
79
+ var theme = require ( 'prism-react-renderer/themes/nightOwl' ) ;
80
+ // Add additional rule to nightowl theme in order to change
81
+ // the color of YAML keys (to be different than values).
82
+ // There weren't many Prism themes that differentiated
83
+ // YAML keys and values. See link:
84
+ // https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes
85
+ theme . styles . push ( {
86
+ types : [ "atrule" ] ,
87
+ style : {
88
+ // color chosen from the nightowl theme palette
89
+ // https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/nightOwl.js#L83
90
+ color : "rgb(255, 203, 139)"
91
+ }
92
+ } ) ;
93
+ return theme
94
94
} ) ( ) ,
95
95
additionalLanguages : [ 'bash' ] ,
96
96
} ,
@@ -124,27 +124,47 @@ module.exports = {
124
124
position : 'left' ,
125
125
activeBasePath : 'docs/dbt-cloud'
126
126
} ,
127
- {
128
- to : '/tutorial/setting-up' ,
129
- label : 'Tutorial' ,
130
- position : 'left' ,
131
- activeBasePath : 'tutorial'
132
- } ,
133
127
{
134
128
to : '/faqs/all' ,
135
129
label : 'FAQs' ,
136
130
position : 'left' ,
137
131
activeBasePath : 'faqs'
138
132
} ,
139
133
{
140
- href : 'https://blog.getdbt.com' ,
141
- label : 'Blog' ,
134
+ label : 'Learn' ,
142
135
position : 'right' ,
136
+ items : [
137
+ {
138
+ label : 'Getting Started Tutorial' ,
139
+ to : '/tutorial/setting-up/' ,
140
+ } ,
141
+ {
142
+ label : 'Online Courses' ,
143
+ href : 'https://courses.getdbt.com' ,
144
+ } ,
145
+ {
146
+ label : 'Live Courses' ,
147
+ href : 'https://learn.getdbt.com/public' ,
148
+ }
149
+ ] ,
143
150
} ,
144
151
{
145
- href : 'https://github.com/fishtown-analytics/dbt' ,
146
- label : 'GitHub' ,
152
+ label : 'Community' ,
147
153
position : 'right' ,
154
+ items : [
155
+ {
156
+ label : 'dbt Slack' ,
157
+ href : 'https://community.getdbt.com/' ,
158
+ } ,
159
+ {
160
+ label : 'Blog' ,
161
+ href : 'https://blog.getdbt.com' ,
162
+ } ,
163
+ {
164
+ label : 'GitHub' ,
165
+ href : 'https://github.com/fishtown-analytics/dbt' ,
166
+ } ,
167
+ ]
148
168
} ,
149
169
] ,
150
170
} ,
0 commit comments