Skip to content

Commit 407347f

Browse files
committed
scripts: Keep the .git in docs
Signed-off-by: Ce Gao <ce.gao@outlook.com>
1 parent 75dc82d commit 407347f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate-reference.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
ROOT=$(dirname "${BASH_SOURCE}")/..
44

55
cd ${ROOT}
6-
rm -rf docs
6+
mv docs/.git cache.git.dir
7+
rm -rf docs/
78
mkdir -p docs/reference
9+
mv cache.git.dir docs/.git
810
cp -r content/* docs/
911
exec python3 ./src/generate.py $@
1012
cd - > /dev/null

0 commit comments

Comments
 (0)