@@ -20,21 +20,24 @@ import {getCustomFields} from './customFields';
20
20
const customFields = getCustomFields ( ) ;
21
21
console . log ( 'customFields: ' + util . inspect ( customFields ) ) ;
22
22
23
+ const actualBaseUrl = process . env . DOCUSAURUS_BASEURL ??
24
+ '/' ;
25
+
23
26
// ----------------------------------------------------------------------------
24
27
25
28
const config : Config = {
26
29
title : 'The xPack Reproducible Build Framework' +
27
30
( ( process . env . DOCUSAURUS_IS_PREVIEW === 'true' ) ? ' (preview)' : '' ) ,
28
31
tagline : 'Tools to manage, configure and build complex, package based, multi-target projects, in a reproducible way' ,
32
+
29
33
// Explicitly set in headTags.
30
34
// favicon: '/img/favicon.ico',
31
35
32
36
// Set the production url of your site here
33
37
url : 'https://xpack.github.io/' ,
34
38
// Set the /<baseUrl>/ pathname under which your site is served
35
39
// For GitHub pages deployment, it is often '/<projectName>/'
36
- baseUrl : process . env . DOCUSAURUS_BASEURL ??
37
- '/' ,
40
+ baseUrl : actualBaseUrl ,
38
41
39
42
// GitHub pages deployment config.
40
43
// If you aren't using GitHub pages, you don't need these.
@@ -66,7 +69,7 @@ const config: Config = {
66
69
sidebarPath : './sidebars.ts' ,
67
70
// Please change this to your repo.
68
71
// Remove this to remove the "edit this page" links.
69
- editUrl : 'https://github.com/xpack/xpack.github.io/edit/master /website/' ,
72
+ editUrl : 'https://github.com/xpack/xpack.github.io/edit/website /website/' ,
70
73
// showLastUpdateAuthor: true,
71
74
showLastUpdateTime : true ,
72
75
} ,
@@ -76,13 +79,14 @@ const config: Config = {
76
79
'@docusaurus/plugin-content-blog' ,
77
80
{
78
81
showReadingTime : true ,
82
+ blogSidebarCount : 8 ,
79
83
feedOptions : {
80
84
type : [ 'rss' , 'atom' ] ,
81
85
xslt : true ,
82
86
} ,
83
87
// Please change this to your repo.
84
88
// Remove this to remove the "edit this page" links.
85
- editUrl : 'https://github.com/xpack/xpack.github.io/edit/master /website/' ,
89
+ editUrl : 'https://github.com/xpack/xpack.github.io/edit/website /website/' ,
86
90
// Useful options to enforce blogging best practices
87
91
onInlineTags : 'warn' ,
88
92
onInlineAuthors : 'warn' ,
@@ -115,10 +119,14 @@ const config: Config = {
115
119
// https://docusaurus.io/docs/api/plugins/@docusaurus /plugin-sitemap
116
120
'@docusaurus/plugin-sitemap' ,
117
121
{
118
- // https://docusaurus.io/docs/api/plugins/ @docusaurus /plugin-sitemap
122
+ lastmod : 'date' ,
119
123
changefreq : 'weekly' ,
120
124
priority : 0.5 ,
121
- // ignorePatterns: ['/tags/**'],
125
+ ignorePatterns : [
126
+ actualBaseUrl + 'blog/archive/**' ,
127
+ actualBaseUrl + 'blog/authors/**' ,
128
+ actualBaseUrl + 'blog/tags/**'
129
+ ] ,
122
130
filename : 'sitemap.xml' ,
123
131
}
124
132
] ,
@@ -145,6 +153,7 @@ const config: Config = {
145
153
}
146
154
] ,
147
155
[
156
+ // Explicitly required when not using `preset-classic`.
148
157
// https://docusaurus.io/docs/search#using-algolia-docsearch
149
158
'@docusaurus/theme-search-algolia' ,
150
159
{
@@ -159,7 +168,7 @@ const config: Config = {
159
168
attributes : {
160
169
rel : 'icon' ,
161
170
type : 'image/png' ,
162
- href : '/ favicons/favicon-48x48.png',
171
+ href : actualBaseUrl + ' favicons/favicon-48x48.png',
163
172
sizes : '48x48'
164
173
}
165
174
} ,
@@ -168,14 +177,14 @@ const config: Config = {
168
177
attributes : {
169
178
rel : 'icon' ,
170
179
type : 'image/svg+xml' ,
171
- href : '/ favicons/favicon.svg'
180
+ href : actualBaseUrl + ' favicons/favicon.svg'
172
181
}
173
182
} ,
174
183
{
175
184
tagName : 'link' ,
176
185
attributes : {
177
186
rel : 'shortcut icon' ,
178
- href : '/ favicons/favicon.ico'
187
+ href : actualBaseUrl + ' favicons/favicon.ico'
179
188
}
180
189
} ,
181
190
{
@@ -190,14 +199,12 @@ const config: Config = {
190
199
tagName : 'link' ,
191
200
attributes : {
192
201
rel : 'manifest' ,
193
- href : '/ favicons/site.webmanifest'
202
+ href : actualBaseUrl + ' favicons/site.webmanifest'
194
203
}
195
204
}
196
205
] ,
197
206
198
- // No longer needed.
199
- // themes: [ '@docusaurus/theme-search-algolia' ],
200
-
207
+ // https://docusaurus.io/docs/seo
201
208
themeConfig : {
202
209
// The project's social card, og:image, twitter:image, 1200x630
203
210
image : 'img/sunrise-og-image.jpg' ,
@@ -214,7 +221,7 @@ const config: Config = {
214
221
logo : {
215
222
alt : 'xPack Logo' ,
216
223
src : 'img/components-256.png' ,
217
- href : 'https://xpack.github.io/' ,
224
+ href : 'https://xpack.github.io/'
218
225
} ,
219
226
items : [
220
227
{
@@ -252,7 +259,7 @@ const config: Config = {
252
259
{
253
260
label : 'About' ,
254
261
to : '/docs/project/about'
255
- }
262
+ } ,
256
263
] ,
257
264
} ,
258
265
{
@@ -313,6 +320,10 @@ const config: Config = {
313
320
label : 'Getting Started' ,
314
321
to : '/docs/getting-started' ,
315
322
} ,
323
+ {
324
+ label : 'Support' ,
325
+ to : '/docs/support' ,
326
+ } ,
316
327
{
317
328
label : 'About' ,
318
329
to : '/docs/project/about' ,
0 commit comments