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
|
* navbar
|
||||||
*/
|
*/
|
||||||
function renderNavbar (content) {
|
function renderNavbar (content) {
|
||||||
if (CACHE['navbar'] === content) { return }
|
if (CACHE['navbar'] && CACHE['navbar'] === content) { return }
|
||||||
CACHE['navbar'] = content;
|
CACHE['navbar'] = content;
|
||||||
renderNavbar.rendered = true;
|
renderNavbar.rendered = true;
|
||||||
|
|
||||||
|
|
@ -2417,10 +2417,6 @@ function renderNavbar (content) {
|
||||||
* sidebar
|
* sidebar
|
||||||
*/
|
*/
|
||||||
function renderSidebar (content) {
|
function renderSidebar (content) {
|
||||||
if (CACHE['sidebar'] === content) { return }
|
|
||||||
CACHE['sidebar'] = content;
|
|
||||||
renderSidebar.rendered = true;
|
|
||||||
|
|
||||||
var isToc = false;
|
var isToc = false;
|
||||||
|
|
||||||
if (content) {
|
if (content) {
|
||||||
|
|
@ -2432,6 +2428,9 @@ function renderSidebar (content) {
|
||||||
isToc = true;
|
isToc = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderSidebar.rendered = true;
|
||||||
|
if (CACHE['sidebar'] && CACHE['sidebar'] === content) { return }
|
||||||
|
CACHE['sidebar'] = content;
|
||||||
renderTo('aside.sidebar', content);
|
renderTo('aside.sidebar', content);
|
||||||
if (isToc) { scrollActiveSidebar(); }
|
if (isToc) { scrollActiveSidebar(); }
|
||||||
toc = [];
|
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