File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 28
28
alias : {
29
29
'.*?/awesome' :
30
30
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md' ,
31
- '.*? /changelog' :
31
+ '/changelog' :
32
32
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md' ,
33
33
'/.*/_navbar.md' : '/_navbar.md' ,
34
34
'/zh-cn/(.*)' :
40
40
'/es/(.*)' :
41
41
'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
42
42
} ,
43
+ fallbackLanguages : [ 'es' ] ,
43
44
auto2top : true ,
44
45
coverpage : true ,
45
46
executeScript : true ,
Original file line number Diff line number Diff line change
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments