Skip to content

Commit 4734366

Browse files
committed
docs: 更新文档
1 parent 684304e commit 4734366

File tree

14 files changed

+28
-19
lines changed

14 files changed

+28
-19
lines changed

deploy.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
npm run docs:build
8+
9+
# 进入生成的文件夹
10+
cd docs/.vuepress/dist
11+
12+
# 如果是发布到自定义域名
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
20+
git push -f git@github.com:mathink12/json-tree.git master:gh-pages
21+
22+
cd -

docs-src/.vuepress/config.js renamed to docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const resolve = dir => path.join(__dirname, '..', '..', dir)
44

55
module.exports = {
66
title: 'Json Tree',
7-
// base: '/json-tree/',
7+
base: '/json-tree/',
88
markdown: {
99
lineNumbers: true
1010
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)