We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87d9a5 commit 190de35Copy full SHA for 190de35
cypress/fixtures/tpl/docs.index.html
@@ -28,7 +28,7 @@
28
alias: {
29
'.*?/awesome':
30
'https://github.com/raw/docsifyjs/awesome-docsify/master/README.md',
31
- '.*?/changelog':
+ '/changelog':
32
'https://github.com/raw/docsifyjs/docsify/master/CHANGELOG.md',
33
'/.*/_navbar.md': '/_navbar.md',
34
'/zh-cn/(.*)':
@@ -40,6 +40,7 @@
40
'/es/(.*)':
41
'https://github.com/raw/docsifyjs/docs-es/master/$1'
42
},
43
+ fallbackLanguages: ['es'],
44
auto2top: true,
45
coverpage: true,
46
executeScript: true,
cypress/integration/routing/fallback.spec.js
@@ -0,0 +1,9 @@
1
+context('config.fallbackLanguages', () => {
2
+ it('fallbacks respecting aliases', () => {
3
+ cy.visit('http://localhost:3000/#/es/');
4
+
5
+ cy.get('.sidebar-nav').contains('Changelog').click();
6
7
+ cy.get('#main').should('contain', 'Bug Fixes');
8
+ })
9
+});
0 commit comments