File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
- export const BASE_URL = 'https://bootstrap-vue.org '
1
+ export const BASE_URL = 'https://bootstrap-vue.github.io/bootstrap-vue/ '
2
2
export const BASE_URL_DEV = 'https://dev.bootstrap-vue.org'
3
3
4
4
export const GA_TRACKING_ID = 'UA-89526435-1'
Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ const IS_PROD_DOCS =
31
31
32
32
// --- Utility methods ---
33
33
34
+ const getBaseUrlPath = url => {
35
+ const { pathname } = new URL ( url )
36
+
37
+ if ( pathname . endsWith ( '/' ) ) {
38
+ return pathname
39
+ }
40
+
41
+ return `${ pathname } /`
42
+ }
43
+
34
44
// Get routes by a given dir
35
45
const getRoutesByDir = ( root , dir , excludes = [ ] ) =>
36
46
fs
@@ -235,6 +245,10 @@ module.exports = {
235
245
transpile : [ ( { isLegacy } ) => isLegacy && 'highlight.js' ]
236
246
} ,
237
247
248
+ router : {
249
+ base : getBaseUrlPath ( BASE_URL )
250
+ } ,
251
+
238
252
loading : {
239
253
color : '#ccc' ,
240
254
height : '3px'
You can’t perform that action at this time.
0 commit comments