mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
[build] 4.8.1
This commit is contained in:
parent
d35059dd0b
commit
fce40eae25
@ -1,6 +1,6 @@
|
||||

|
||||
|
||||
# docsify <small>4.8.0</small>
|
||||
# docsify <small>4.8.1</small>
|
||||
|
||||
> A magical documentation site generator.
|
||||
|
||||
|
||||
@ -60,8 +60,6 @@ function isFn(obj) {
|
||||
return typeof obj === 'function'
|
||||
}
|
||||
|
||||
var version = "4.7.1";
|
||||
|
||||
function config () {
|
||||
var config = merge(
|
||||
{
|
||||
@ -126,7 +124,6 @@ function config () {
|
||||
}
|
||||
}
|
||||
|
||||
config.version = version;
|
||||
window.$docsify = config;
|
||||
|
||||
return config
|
||||
@ -337,7 +334,7 @@ function corner(data) {
|
||||
/**
|
||||
* Render main content
|
||||
*/
|
||||
function main$1(config) {
|
||||
function main(config) {
|
||||
var aside =
|
||||
'<button class="sidebar-toggle">' +
|
||||
'<div class="sidebar-toggle-button">' +
|
||||
@ -3245,7 +3242,8 @@ function getAndRemoveConfig(str) {
|
||||
|
||||
if (str) {
|
||||
str = str
|
||||
.replace(/^'|'$/, '')
|
||||
.replace(/^'/, '')
|
||||
.replace(/'$/, '')
|
||||
.replace(/:([\w-]+)=?([\w-]+)?/g, function (m, key, value) {
|
||||
config[key] = (value && value.replace(/"/g, '')) || true;
|
||||
return ''
|
||||
@ -3503,6 +3501,8 @@ Compiler.prototype._initRenderer = function _initRenderer () {
|
||||
result = helper('tip', text);
|
||||
} else if (/^\?>/.test(text)) {
|
||||
result = helper('warn', text);
|
||||
} else if (/^</.test(text)) {
|
||||
return text
|
||||
} else {
|
||||
result = "<p>" + text + "</p>";
|
||||
}
|
||||
@ -4154,12 +4154,12 @@ function renderMixin(proto) {
|
||||
scrollActiveSidebar(this.router);
|
||||
|
||||
if (autoHeader && activeEl) {
|
||||
var main = getNode('#main');
|
||||
var firstNode = main.children[0];
|
||||
var main$$1 = getNode('#main');
|
||||
var firstNode = main$$1.children[0];
|
||||
if (firstNode && firstNode.tagName !== 'H1') {
|
||||
var h1 = create('h1');
|
||||
h1.innerText = activeEl.innerText;
|
||||
before(main, h1);
|
||||
before(main$$1, h1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4286,7 +4286,7 @@ function initRender(vm) {
|
||||
}
|
||||
}
|
||||
|
||||
html += main$1(config);
|
||||
html += main(config);
|
||||
// Render main app
|
||||
vm._renderTo(el, html, true);
|
||||
} else {
|
||||
@ -4952,7 +4952,7 @@ initGlobalAPI();
|
||||
/**
|
||||
* Version
|
||||
*/
|
||||
Docsify.version = '4.8.0';
|
||||
Docsify.version = '4.8.1';
|
||||
|
||||
/**
|
||||
* Run Docsify
|
||||
|
||||
2
lib/docsify.min.js
vendored
2
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
@ -37,5 +37,5 @@
|
||||
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
||||
}
|
||||
},
|
||||
"version": "4.8.0"
|
||||
"version": "4.8.1"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "docsify-server-renderer",
|
||||
"version": "4.8.0",
|
||||
"version": "4.8.1",
|
||||
"description": "docsify server renderer",
|
||||
"author": {
|
||||
"name": "qingwei-li",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user