From fec59599b75bccba941d1cc455c733e6dfab49ef Mon Sep 17 00:00:00 2001 From: xxred Date: Sat, 15 Dec 2018 19:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- articles/.vuepress/sidebar.json | 1 + build/readme.md | 18 +++++++++++++----- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index aecdf98..36f7a5d 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ target/ *.log *.tmp *.vsprops -*.suo +*.suo *.user *.userprefs *.sdf @@ -49,3 +49,4 @@ vuepress yarn.lock temp.ps1 *-temp* +articles/.vuepress/sidebar.json diff --git a/articles/.vuepress/sidebar.json b/articles/.vuepress/sidebar.json index f5539e7..e92bc72 100644 --- a/articles/.vuepress/sidebar.json +++ b/articles/.vuepress/sidebar.json @@ -79,6 +79,7 @@ "Model.md", "Normal.md", "Search.md", + "从零开始的最佳实践.md", "入门.md" ] }] diff --git a/build/readme.md b/build/readme.md index b15ff32..23661fc 100644 --- a/build/readme.md +++ b/build/readme.md @@ -8,13 +8,21 @@ - `vuepress dev`运行项目 - `vuepress build`发布项目 -## build-toc.ps1 +### 注意事项 -### build-toc.ps1说明 +- 每个文件夹下需要有个`README.md`文件,会生成`index.html`,没有的话导航到该目录就无内容 + +## 生成api文档 + +- 暂时没用到 + +### build-toc.ps1 + +#### build-toc.ps1说明 - 根据文件夹结构生成一个栏目下的目录 -### 用法 +#### 用法 - 在一栏目下新建`ps1`脚本文件,填写一下内容保存 @@ -26,9 +34,9 @@ - 运行之后该目录会生成一个`toc-temp.md`目录文件,如果不存在`toc.md`,则自动创建一个 - 第二次运行只会生成新的`toc-temp.md`,不会覆盖`toc.md`,这样当`toc.md`内容调整时,可以从`toc-temp.md`复制新的目录内容到`toc.md`进行手工调整 -## build.ps1 +### build.ps1 -### build.ps1说明 +#### build.ps1说明 - 根据配置文件的`build`-`content`配置,找到并生成所有栏目 - 覆盖原则同上 \ No newline at end of file