Add new markdown grammar & improve sidebar performance.
This commit is contained in:
parent
9defe1bf7d
commit
ef53a07f49
7 changed files with 95 additions and 58 deletions
|
|
@ -351,11 +351,14 @@ Scroll to the top on changing hash.
|
|||
|
||||
```html
|
||||
<script src="/lib/docsify.js" data-auto2top></script>
|
||||
<!-- Set offset top -->
|
||||
<script src="/lib/docsify.js" data-auto2top="50"></script>
|
||||
```
|
||||
|
||||
```js
|
||||
window.$docsify = {
|
||||
auto2top: true
|
||||
auto2top: true,
|
||||
// auto2top: 50
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue