docs: add autoHeader

This commit is contained in:
qingwei.li 2017-02-18 22:12:17 +08:00 • committed by cinwell.li
commit c108645e34
3 changed files with 26 additions and 2 deletions

View file

@ -254,3 +254,16 @@ window.$docsify = {
}
}
```
## auto-header
- type: `Boolean`
If `loadSidebar` and `autoHeader` are both enabled, for each link in _sidebar.md, prepend a header to the page before converting it to html. [#78](https://github.com/QingWei-Li/docsify/issues/78)
```js
window.$docsify = {
loadSidebar: true,
autoHeader: true
}
```