Skip to content

Commit 8336769

Browse files
committed
[build] 4.7.1
1 parent 393e4ec commit 8336769

File tree

10 files changed

+19
-20
lines changed

10 files changed

+19
-20
lines changed

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>4.7.0</small>
3+
# docsify <small>4.7.1</small>
44

55
> A magical documentation site generator.
66

lib/docsify.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -384,20 +384,19 @@ function cover() {
384384
* @return {String}
385385
*/
386386
function tree(toc, tpl) {
387-
if ( tpl === void 0 ) tpl = '';
387+
if ( tpl === void 0 ) tpl = '<ul class="app-sub-sidebar">{inner}</ul>';
388388

389389
if (!toc || !toc.length) {
390390
return ''
391391
}
392-
392+
var innerHTML = '';
393393
toc.forEach(function (node) {
394-
tpl += "<li><a class=\"section-link\" href=\"" + (node.slug) + "\">" + (node.title) + "</a></li>";
394+
innerHTML += "<li><a class=\"section-link\" href=\"" + (node.slug) + "\">" + (node.title) + "</a></li>";
395395
if (node.children) {
396-
tpl += "<li><ul class=\"children\">" + (tree(node.children)) + "</li></ul>";
396+
innerHTML += tree(node.children, tpl);
397397
}
398398
});
399-
400-
return tpl
399+
return tpl.replace('{inner}', innerHTML)
401400
}
402401

403402
function helper(className, content) {
@@ -610,7 +609,7 @@ var marked = createCommonjsModule(function (module, exports) {
610609
/**
611610
* marked - a markdown parser
612611
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
613-
* https://github.com/markedjs/marked
612+
* https://github.com/chjj/marked
614613
*/
615614

616615
(function() {
@@ -1866,7 +1865,7 @@ function marked(src, opt, callback) {
18661865
if (opt) { opt = merge({}, marked.defaults, opt); }
18671866
return Parser.parse(Lexer.lex(src, opt), opt);
18681867
} catch (e) {
1869-
e.message += '\nPlease report this to https://github.com/markedjs/marked.';
1868+
e.message += '\nPlease report this to https://github.com/chjj/marked.';
18701869
if ((opt || marked.defaults).silent) {
18711870
return '<p>An error occurred:</p><pre>'
18721871
+ escape(e.message + '', true)
@@ -3222,7 +3221,7 @@ Compiler.prototype.sidebar = function sidebar (text, level) {
32223221
html = this.compile(text);
32233222
} else {
32243223
var tree$$1 = this.cacheTree[currentPath] || genTree(this.toc, level);
3225-
html = tree(tree$$1, '<ul>');
3224+
html = tree(tree$$1, '<ul>{inner}</ul>');
32263225
this.cacheTree[currentPath] = tree$$1;
32273226
}
32283227

@@ -3253,7 +3252,7 @@ Compiler.prototype.subSidebar = function subSidebar (level) {
32533252

32543253
cacheTree[currentPath] = tree$$1;
32553254
this.toc = [];
3256-
return tree(tree$$1, '<ul class="app-sub-sidebar">')
3255+
return tree(tree$$1)
32573256
};
32583257

32593258
Compiler.prototype.article = function article (text) {
@@ -3351,7 +3350,7 @@ function getAndActive(router, el, isParent, autoTitle) {
33513350
});
33523351

33533352
if (autoTitle) {
3354-
$.title = target ? ((target.innerText) + " - " + title) : title;
3353+
$.title = target ? (target.title || ((target.innerText) + " - " + title)) : title;
33553354
}
33563355

33573356
return target
@@ -4601,7 +4600,7 @@ initGlobalAPI();
46014600
/**
46024601
* Version
46034602
*/
4604-
Docsify.version = '4.7.0';
4603+
Docsify.version = '4.7.1';
46054604

46064605
/**
46074606
* Run Docsify

lib/docsify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/themes/buble.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/themes/dark.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/themes/pure.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/themes/vue.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.7.0",
3+
"version": "4.7.1",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",

themes/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)