docs: add mutiple covers

This commit is contained in:
qingwei.li 2018-02-11 20:12:07 +08:00 committed by cinwell.li
commit 4bdcee2cb3
12 changed files with 262 additions and 93 deletions

View file

@ -152,7 +152,7 @@ window.$docsify = {
## coverpage
* Type: `Boolean|String`
* Type: `Boolean|String|String[]|Object`
* Default: `false`
Activate the [cover feature](cover.md). If true, it will load from `_coverpage.md`.
@ -162,7 +162,16 @@ window.$docsify = {
coverpage: true,
// Custom file name
coverpage: 'cover.md'
coverpage: 'cover.md',
// mutiple covers
coverpage: ['/', '/zh-cn/'],
// mutiple covers and custom file name
coverpage: {
'/': 'cover.md',
'/zh-cn/': 'cover.md'
}
};
```
@ -367,4 +376,16 @@ window.$docsify = {
};
```
## onlyCover
* type: `Boolean`
Only coverpage is loaded when When visiting the home page.
```js
window.$docsify = {
onlyCover: false
};
```
##