docs: add mutiple covers
This commit is contained in:
parent
bd7ee84241
commit
4bdcee2cb3
12 changed files with 262 additions and 93 deletions
|
|
@ -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
|
||||
};
|
||||
```
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue