mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-10 13:56:12 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89f0b1fcbd | ||
|
|
6f5bb1a527 | ||
|
|
98ec020c7a |
@@ -1,3 +1,7 @@
|
||||
## 1.10.4
|
||||
### Bug fixes
|
||||
- fix execute script
|
||||
|
||||
## 1.10.3
|
||||
### Bug fixes
|
||||
- compatible vuep QingWei-Li/vuep/issues/2
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||

|
||||
|
||||
# docsify <small>1.10.3</small>
|
||||
# docsify <small>1.10.4</small>
|
||||
|
||||
> A magical documentation site generator.
|
||||
|
||||
|
||||
+2
-2
@@ -2604,11 +2604,11 @@ function renderArticle (content) {
|
||||
.filter(function (script) { return !/template/.test(script.type); }
|
||||
)[0];
|
||||
|
||||
CACHE.vm = script && script.remove()
|
||||
CACHE.vm = script
|
||||
? new Function(("return " + (script.innerText.trim())))()
|
||||
: new Vue({ el: 'main' }); // eslint-disable-line
|
||||
|
||||
CACHE.vm && CACHE.vm.$nextTick(function (_) { return scrollActiveSidebar(); });
|
||||
script && script.remove();
|
||||
}
|
||||
if (OPTIONS$1.auto2top) { setTimeout(function () { return scroll2Top(OPTIONS$1.auto2top); }, 0); }
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "docsify",
|
||||
"version": "1.10.3",
|
||||
"version": "1.10.4",
|
||||
"description": "A magical documentation generator.",
|
||||
"main": "lib/docsify.js",
|
||||
"files": [
|
||||
|
||||
+2
-2
@@ -113,11 +113,11 @@ export function renderArticle (content) {
|
||||
.filter(script => !/template/.test(script.type)
|
||||
)[0]
|
||||
|
||||
CACHE.vm = script && script.remove()
|
||||
CACHE.vm = script
|
||||
? new Function(`return ${script.innerText.trim()}`)()
|
||||
: new Vue({ el: 'main' }) // eslint-disable-line
|
||||
|
||||
CACHE.vm && CACHE.vm.$nextTick(_ => event.scrollActiveSidebar())
|
||||
script && script.remove()
|
||||
}
|
||||
if (OPTIONS.auto2top) setTimeout(() => event.scroll2Top(OPTIONS.auto2top), 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user