Skip to content

Commit 64d827e

Browse files
authored
添加文档构建文件,方便本地测试 [no ci] (#188)
1 parent 7c5ab79 commit 64d827e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

mddoc/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output
2+
vendor
3+
composer.lock

mddoc/build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
cd "$(dirname $0)"
6+
7+
if [ ! -d "./vendor" ]; then
8+
composer update
9+
fi
10+
11+
if [ -d './output' ]; then
12+
rm -r ./output
13+
fi
14+
15+
php ./vendor/bin/build.php -markdownPath ../doc -htmlPath ./output
16+
17+
echo "open file ($PWD/output/index.html) preview"

0 commit comments

Comments
 (0)