bump 1.0.3
This commit is contained in:
parent
9092b22246
commit
844ba3e022
2 changed files with 6 additions and 7 deletions
|
|
@ -2405,7 +2405,7 @@ function renderArticle (content) {
|
|||
* navbar
|
||||
*/
|
||||
function renderNavbar (content) {
|
||||
if (CACHE['navbar'] === content) { return }
|
||||
if (CACHE['navbar'] && CACHE['navbar'] === content) { return }
|
||||
CACHE['navbar'] = content;
|
||||
renderNavbar.rendered = true;
|
||||
|
||||
|
|
@ -2417,10 +2417,6 @@ function renderNavbar (content) {
|
|||
* sidebar
|
||||
*/
|
||||
function renderSidebar (content) {
|
||||
if (CACHE['sidebar'] === content) { return }
|
||||
CACHE['sidebar'] = content;
|
||||
renderSidebar.rendered = true;
|
||||
|
||||
var isToc = false;
|
||||
|
||||
if (content) {
|
||||
|
|
@ -2432,6 +2428,9 @@ function renderSidebar (content) {
|
|||
isToc = true;
|
||||
}
|
||||
|
||||
renderSidebar.rendered = true;
|
||||
if (CACHE['sidebar'] && CACHE['sidebar'] === content) { return }
|
||||
CACHE['sidebar'] = content;
|
||||
renderTo('aside.sidebar', content);
|
||||
if (isToc) { scrollActiveSidebar(); }
|
||||
toc = [];
|
||||
|
|
|
|||
4
lib/docsify.min.js
vendored
4
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue