bump: 3.6.0
This commit is contained in:
parent
9220523a40
commit
4f98497284
8 changed files with 27 additions and 14 deletions
|
|
@ -76,7 +76,8 @@ var config = merge({
|
|||
autoHeader: false,
|
||||
executeScript: null,
|
||||
noEmoji: false,
|
||||
ga: ''
|
||||
ga: '',
|
||||
mergeNavbar: false
|
||||
}, window.$docsify);
|
||||
|
||||
var script = document.currentScript ||
|
||||
|
|
@ -3263,12 +3264,8 @@ function initRender (vm) {
|
|||
|
||||
var el = find(id);
|
||||
var html = '';
|
||||
var navAppendToTarget = body;
|
||||
|
||||
navEl.classList.add('app-nav');
|
||||
|
||||
if (!config.repo) {
|
||||
navEl.classList.add('no-badge');
|
||||
}
|
||||
if (!el) {
|
||||
el = create(id);
|
||||
appendTo(body, el);
|
||||
|
|
@ -3283,8 +3280,19 @@ function initRender (vm) {
|
|||
html += main(config);
|
||||
// Render main app
|
||||
vm._renderTo(el, html, true);
|
||||
|
||||
if (config.mergeNavbar && isMobile) {
|
||||
navAppendToTarget = find('.sidebar');
|
||||
} else {
|
||||
navEl.classList.add('app-nav');
|
||||
|
||||
if (!config.repo) {
|
||||
navEl.classList.add('no-badge');
|
||||
}
|
||||
}
|
||||
|
||||
// Add nav
|
||||
before(body, navEl);
|
||||
before(navAppendToTarget, navEl);
|
||||
|
||||
if (config.themeColor) {
|
||||
$.head.innerHTML += theme(config.themeColor);
|
||||
|
|
|
|||
4
lib/docsify.min.js
vendored
4
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue