-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d15083
commit 730642f
Showing
12 changed files
with
249 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,87 @@ | ||
# Doc Page | ||
|
||
The Island.js default theme has an built-in doc page.You can configure these part of it by the following ways: | ||
|
||
## Sidebar | ||
|
||
Refer to the left sidebar.You can configure the sidebar in the frontmatter of the body page: | ||
|
||
```md | ||
--- | ||
sidebar: false | ||
--- | ||
``` | ||
|
||
The value of `sidebar` is a boolean value, if `false`, the sidebar will not be shown. | ||
|
||
## Outline | ||
|
||
Outline information will be presented in the right sidebar, you can configure the outline information in the frontmatter of the body page: | ||
|
||
```md | ||
--- | ||
outline: false | ||
--- | ||
``` | ||
|
||
The value of `outline` is a boolean value, if `false`, outline information won't be displayed. | ||
|
||
## Outline title | ||
|
||
You can configure the title of the outline by `themeConfig.outlineTitle`: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
outlineTitle: 'ON THIS PAGE' | ||
} | ||
}); | ||
``` | ||
|
||
## Prev/Next Page | ||
|
||
You can configure the previous page text by `themeConfig.prevPageText` or `themeConfig.nextPageText`: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
prevPageText: 'Previous Page', | ||
nextPageText: 'Next Page' | ||
} | ||
}); | ||
``` | ||
|
||
## Edit Link | ||
|
||
You can configure the edit link by `themeConfig.editLink`: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
editLink: { | ||
text: 'Edit this page on GitHub', | ||
pattern: 'https://github.com/sanyuan0704/island.js/tree/master/docs/:path' | ||
} | ||
} | ||
}); | ||
``` | ||
|
||
## Last Updated Text | ||
|
||
You can configure the last updated text by `themeConfig.lastUpdatedText`: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
lastUpdatedText: 'Last Updated' | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,87 @@ | ||
# 正文页面 | ||
|
||
你可以配置正文页面的侧边栏和大纲信息。 | ||
|
||
## 侧边栏 | ||
|
||
你可以在正文页面的 frontmatter 中配置侧边栏: | ||
|
||
```md | ||
--- | ||
sidebar: false | ||
--- | ||
``` | ||
|
||
`sidebar` 的值为一个布尔值,如果为 `false`,则不会显示侧边栏。 | ||
|
||
## 大纲 | ||
|
||
大纲信息将会呈现在右边的侧栏,你可以在正文页面的 frontmatter 中配置大纲信息: | ||
|
||
```md | ||
--- | ||
outline: false | ||
--- | ||
``` | ||
|
||
`outline` 的值为一个布尔值,如果为 `false`,则不会显示大纲信息。 | ||
|
||
## 大纲标题 | ||
|
||
通过 `themeConfig.outlineTitle` 配置大纲的标题: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
outlineTitle: 'ON THIS PAGE' | ||
} | ||
}); | ||
``` | ||
|
||
## 上一页/下一页 | ||
|
||
通过 `themeConfig.prevPageText` 或 `themeConfig.nextPageText` 配置上一页/下一页文本: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
prevPageText: 'Previous Page', | ||
nextPageText: 'Next Page' | ||
} | ||
}); | ||
``` | ||
|
||
## 编辑链接 | ||
|
||
通过 `themeConfig.editLink` 配置编辑链接: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
editLink: { | ||
text: 'Edit this page on GitHub', | ||
pattern: 'https://github.com/sanyuan0704/island.js/tree/master/docs/:path' | ||
} | ||
} | ||
}); | ||
``` | ||
|
||
## 上次更新 | ||
|
||
通过 `themeConfig.lastUpdatedText` 配置上次更新的显示文本: | ||
|
||
```js | ||
import { defineConfig } from 'islandjs'; | ||
|
||
export default defineConfig({ | ||
themeConfig: { | ||
lastUpdatedText: 'Last Updated' | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
730642f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
island – ./
island-git-master-sanyuan0704.vercel.app
island-navy.vercel.app
island-sanyuan0704.vercel.app
island-vercel.sanyuan0704.top