File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ window.$docsify = {
88
88
};
89
89
```
90
90
91
- ## nav_el
91
+ ## navEl
92
92
93
93
- Type: ` String `
94
94
- Default: ` null `
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ export function renderMixin(proto) {
295
295
296
296
proto . _renderNav = function ( text ) {
297
297
text &&
298
- this . _renderTo ( this . config . nav_el || 'nav' , this . compiler . compile ( text ) ) ;
298
+ this . _renderTo ( this . config . navEl || 'nav' , this . compiler . compile ( text ) ) ;
299
299
if ( this . config . loadNavbar ) {
300
300
getAndActive ( this . router , 'nav' ) ;
301
301
}
@@ -401,10 +401,9 @@ export function initRender(vm) {
401
401
window . __current_docsify_compiler__ = vm . compiler ;
402
402
}
403
403
404
- const id = config . el || '#app' ;
405
- const navEl = dom . find ( config . nav_el || 'nav' ) || dom . create ( 'nav' ) ;
404
+ const el = dom . find ( config . el || '#app' ) ;
405
+ const navEl = dom . find ( config . navEl || 'nav' ) || dom . create ( 'nav' ) ;
406
406
407
- const el = dom . find ( id ) ;
408
407
let html = '' ;
409
408
let navAppendToTarget = dom . body ;
410
409
@@ -445,7 +444,7 @@ export function initRender(vm) {
445
444
}
446
445
447
446
// Add nav
448
- if ( config . loadNavbar && ! config . nav_el ) {
447
+ if ( config . loadNavbar && ! config . navEl ) {
449
448
dom . before ( navAppendToTarget , navEl ) ;
450
449
}
451
450
You can’t perform that action at this time.
0 commit comments