mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Fix basePath & update route URLs
This commit is contained in:
parent
f0a8d69eb8
commit
5ec225687b
@ -99,7 +99,7 @@ describe(`Example Tests`, function() {
|
||||
await page.evaluate(() => {
|
||||
window.$docsify = {
|
||||
el: '#app',
|
||||
basePath: '/docs',
|
||||
basePath: '/docs/',
|
||||
themeColor: 'red',
|
||||
};
|
||||
});
|
||||
@ -182,12 +182,12 @@ describe(`Example Tests`, function() {
|
||||
`,
|
||||
},
|
||||
routes: {
|
||||
'/test.md': `
|
||||
'test.md': `
|
||||
# Test Page
|
||||
|
||||
This is a custom route.
|
||||
`,
|
||||
'/data-test-scripturls.js': `
|
||||
'data-test-scripturls.js': `
|
||||
document.body.setAttribute('data-test-scripturls', 'pass');
|
||||
`,
|
||||
},
|
||||
@ -196,7 +196,7 @@ describe(`Example Tests`, function() {
|
||||
`,
|
||||
scriptURLs: [
|
||||
// docsifyInit() route
|
||||
'/data-test-scripturls.js',
|
||||
'data-test-scripturls.js',
|
||||
// Server route
|
||||
'/lib/plugins/search.min.js',
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user