Skip to content

Commit

Permalink
docs: add autoHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 19, 2017
1 parent b7768b1 commit c108645
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
13 changes: 13 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
14 changes: 13 additions & 1 deletion docs/zh-cn/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ window.$docsify = {

- 类型:`String`

替换主题色。利用 [CSS3 支持变量]((https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables)的特性,对于老的浏览器有 polyfill 处理。
替换主题色。利用 [CSS3 支持变量](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables)的特性,对于老的浏览器有 polyfill 处理。

```js
window.$docsify = {
Expand All @@ -253,3 +253,15 @@ window.$docsify = {
}
```

## auto-header

- 类型:`Boolean`

同时设置 `loadSidebar``autoHeader` 后,可以根据 `_sidebar.md` 的内容自动为每个页面增加标题。[#78](https://github.com/QingWei-Li/docsify/issues/78)

```js
window.$docsify = {
loadSidebar: true,
autoHeader: true
}
```
1 change: 0 additions & 1 deletion docs/zh-cn/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 快速开始

推荐安装 `docsify-cli` 工具,可以方便创建及本地预览文档网站。

Expand Down

0 comments on commit c108645

Please sign in to comment.