-
Notifications
You must be signed in to change notification settings - Fork 26
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
7ed32aa
commit d85b0ed
Showing
11 changed files
with
118 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 基本配置 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# 默认主题配置 |
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,3 +1,31 @@ | ||
# 网站配置 | ||
# 配置文件 | ||
|
||
网站的配置文件位于项目的根目录名为`.antdsite.js` | ||
## config.js | ||
|
||
网站配置文件名为`config.js`,在网站根目录下`.antdsite`文件夹下的`config.js` | ||
|
||
```bash | ||
├── .antdsite | ||
├── config.js | ||
├── docs | ||
├── package.json | ||
``` | ||
|
||
## 基本配置 | ||
|
||
`config.js` 的基本配置如下: | ||
|
||
```js | ||
module.exports = { | ||
title: 'my-docs', | ||
description: 'some descriptions...' | ||
}; | ||
``` | ||
|
||
需要基本包含一个`title`和`description`,详细的配置可以参考[配置](/zh/config/)一节。 | ||
|
||
## 主题配置 | ||
|
||
一个 AntdSite 主题应该负责整个网站的布局和交互细节。在 VuePress 中,目前自带了一个默认的主题(正是你现在所看到的),它是为技术文档而设计的。同时,默认主题提供了一些选项,让你可以去自定义头部(header)、 底部(footer)和 首页(home) 等,详情请参见 [默认主题](/zh/default-theme-config/) | ||
|
||
如果你想开发一个自定义主题,可以参考 [自定义主题](/zh/guide/theme)。 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 自定义主题 | ||
|
||
网站配置文件名为`config.js`,在网站根目录下`.antdsite`文件夹下的`config.js` | ||
|
||
```bash | ||
├── .antdsite # 配置目录, 包括自定义出题,网站配置文件等 | ||
├── config.js # 网站配置文件,用于配置网站基本信息 | ||
├── theme # 主题文件夹,用于存放自定义主题 | ||
``` |