2023-02-08 22:18:02 +08:00
|
|
|
python docs/utils/build_markdown.py
|
2023-02-06 23:23:21 +08:00
|
|
|
|
2023-02-08 22:18:02 +08:00
|
|
|
while true; do
|
|
|
|
read -p "Do you wish to deploy the site? [y] [n]" yn
|
|
|
|
case $yn in
|
|
|
|
[Yy]* ) make install; break;;
|
|
|
|
[Nn]* ) exit;;
|
|
|
|
* ) echo "Please answer yes[y] or no[n].";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# push the built docs
|
2023-02-08 19:45:06 +08:00
|
|
|
cd build
|
|
|
|
git add .
|
|
|
|
git commit -m "build"
|
|
|
|
git push -u origin docs
|
|
|
|
cd ..
|
2023-02-06 23:23:21 +08:00
|
|
|
|
2023-02-08 22:18:02 +08:00
|
|
|
# Build mkdocs
|
2023-02-06 23:23:21 +08:00
|
|
|
mkdocs build --clean
|
2023-02-08 19:45:06 +08:00
|
|
|
|
2023-02-08 22:18:02 +08:00
|
|
|
# deploy the site
|
2023-02-08 19:45:06 +08:00
|
|
|
cd site
|
|
|
|
git add .
|
|
|
|
git commit -m "deploy"
|
|
|
|
git push -u origin gh-pages
|
2023-02-09 04:45:06 +08:00
|
|
|
cd ..
|