mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-25 05:06:07 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a9921f5e7 | ||
|
|
c9d556d829 | ||
|
|
a0e1ea811a | ||
|
|
f82f41900e | ||
|
|
7a4d9bc5cd |
@@ -1,3 +1,18 @@
|
|||||||
|
<a name="4.3.2"></a>
|
||||||
|
## [4.3.2](https://github.com/QingWei-Li/docsify/compare/v4.3.1...v4.3.2) (2017-09-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* sidebar highlight ([f82f419](https://github.com/QingWei-Li/docsify/commit/f82f419))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add Edit on github plugin (thanks [@njleonzhang](https://github.com/njleonzhang)) ([a0e1ea8](https://github.com/QingWei-Li/docsify/commit/a0e1ea8))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="4.3.1"></a>
|
<a name="4.3.1"></a>
|
||||||
## [4.3.1](https://github.com/QingWei-Li/docsify/compare/v4.2.9...v4.3.1) (2017-08-30)
|
## [4.3.1](https://github.com/QingWei-Li/docsify/compare/v4.2.9...v4.3.1) (2017-08-30)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||

|

|
||||||
|
|
||||||
# docsify <small>4.3.1</small>
|
# docsify <small>4.3.2</small>
|
||||||
|
|
||||||
> A magical documentation site generator.
|
> A magical documentation site generator.
|
||||||
|
|
||||||
|
|||||||
@@ -96,3 +96,7 @@ Medium's Bilderzoom. Basierend auf [zoom-image](https://github.com/egoist/zoom-i
|
|||||||
```html
|
```html
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Edit on github
|
||||||
|
|
||||||
|
Add `Edit on github` button on every pages. provided by 3rd party, check [document](https://github.com/njleonzhang/docsify-edit-on-github)
|
||||||
|
|||||||
@@ -96,3 +96,7 @@ Medium's Image Zoom. Based on [zoom-image](https://github.com/egoist/zoom-image)
|
|||||||
```html
|
```html
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Edit on github
|
||||||
|
|
||||||
|
Add `Edit on github` button on every pages. provided by 3rd party, check [document](https://github.com/njleonzhang/docsify-edit-on-github)
|
||||||
|
|||||||
@@ -90,3 +90,8 @@ Medium's 风格的图片缩放插件. 基于 [zoom-image](https://github.com/ego
|
|||||||
```html
|
```html
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Edit on github
|
||||||
|
|
||||||
|
Add `Edit on github` button on every pages. provided by 3rd party, check [document](https://github.com/njleonzhang/docsify-edit-on-github)
|
||||||
|
|||||||
+4
-2
@@ -3210,7 +3210,7 @@ function scrollActiveSidebar (router) {
|
|||||||
href = router.parse(href).query.id;
|
href = router.parse(href).query.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav[decodeURIComponent(href)] = li;
|
if (href) { nav[decodeURIComponent(href)] = li; }
|
||||||
}
|
}
|
||||||
|
|
||||||
off('scroll', highlight);
|
off('scroll', highlight);
|
||||||
@@ -3220,6 +3220,8 @@ function scrollActiveSidebar (router) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scrollIntoView (id) {
|
function scrollIntoView (id) {
|
||||||
|
if (!id) { return }
|
||||||
|
|
||||||
var section = find('#' + id);
|
var section = find('#' + id);
|
||||||
section && scrollTo(section);
|
section && scrollTo(section);
|
||||||
|
|
||||||
@@ -3944,7 +3946,7 @@ initGlobalAPI();
|
|||||||
/**
|
/**
|
||||||
* Version
|
* Version
|
||||||
*/
|
*/
|
||||||
Docsify.version = '4.3.1';
|
Docsify.version = '4.3.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run Docsify
|
* Run Docsify
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Generated
+2644
-406
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "docsify",
|
"name": "docsify",
|
||||||
"version": "4.3.1",
|
"version": "4.3.2",
|
||||||
"description": "A magical documentation generator.",
|
"description": "A magical documentation generator.",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "qingwei-li",
|
"name": "qingwei-li",
|
||||||
|
|||||||
+1
-1
@@ -37,5 +37,5 @@
|
|||||||
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "4.3.1"
|
"version": "4.3.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "docsify-server-renderer",
|
"name": "docsify-server-renderer",
|
||||||
"version": "4.3.1",
|
"version": "4.3.2",
|
||||||
"description": "docsify server renderer",
|
"description": "docsify server renderer",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "qingwei-li",
|
"name": "qingwei-li",
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export function scrollActiveSidebar (router) {
|
|||||||
href = router.parse(href).query.id
|
href = router.parse(href).query.id
|
||||||
}
|
}
|
||||||
|
|
||||||
nav[decodeURIComponent(href)] = li
|
if (href) nav[decodeURIComponent(href)] = li
|
||||||
}
|
}
|
||||||
|
|
||||||
dom.off('scroll', highlight)
|
dom.off('scroll', highlight)
|
||||||
@@ -96,6 +96,8 @@ export function scrollActiveSidebar (router) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function scrollIntoView (id) {
|
export function scrollIntoView (id) {
|
||||||
|
if (!id) return
|
||||||
|
|
||||||
const section = dom.find('#' + id)
|
const section = dom.find('#' + id)
|
||||||
section && scrollTo(section)
|
section && scrollTo(section)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user