Add docs
This commit is contained in:
parent
7ce166501b
commit
41e7ef6863
2 changed files with 24 additions and 0 deletions
|
|
@ -201,6 +201,18 @@ The contents of the file can be:
|
||||||
- [HTML5 History Mode](/history-mode)
|
- [HTML5 History Mode](/history-mode)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### max-sub-level
|
||||||
|
|
||||||
|
Display TOC in the custom sidebar. The default value is 0.
|
||||||
|
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/lib/docsify.js" data-load-sidebar data-max-sub-level="4"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
#### load-navbar
|
#### load-navbar
|
||||||
|
|
||||||
Load navbar markdown file. If it is configured, load the current directory `_navbar.md` by default.
|
Load navbar markdown file. If it is configured, load the current directory `_navbar.md` by default.
|
||||||
|
|
|
||||||
|
|
@ -206,6 +206,18 @@ Sidebar 开关按钮
|
||||||
- [HTML5 History Mode](/history-mode)
|
- [HTML5 History Mode](/history-mode)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### max-sub-level
|
||||||
|
|
||||||
|
显示 TOC 在自定义的侧边栏里,默认最大显示 0 层。
|
||||||
|
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/lib/docsify.js" data-load-sidebar data-max-sub-level="4"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
#### load-navbar
|
#### load-navbar
|
||||||
|
|
||||||
读取导航配置文件,如果配置,默认加载当前目录下的 `_navbar.md`。如果文件不存在,会显示 html 里定义的导航栏。
|
读取导航配置文件,如果配置,默认加载当前目录下的 `_navbar.md`。如果文件不存在,会显示 html 里定义的导航栏。
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue