Skip to content

Commit

Permalink
Merge pull request #73 from taosdata/docs/dingbo/TD-16662
Browse files Browse the repository at this point in the history
docs: add build-doc.sh
  • Loading branch information
zitsen authored Jun 20, 2022
2 parents 2e6a5e5 + 92f4dc7 commit 146db65
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 183 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,7 @@ Thumbs.db
setup.py
.vscode
.idea
docs
docs
*.swp
*~
.env
7 changes: 7 additions & 0 deletions ci/build-doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
pip3 install pdoc3
[ -e .env ] && source .env
pdoc --html --force --output-dir ../docs taosrest
pdoc --html --force --output-dir ../docs taos
# copy generated html files to Document Server
sshpass -p "$PASSWORD" scp -r ../docs/* root@$DOC_HOST:/data/apidocs/taospy/
1 change: 1 addition & 0 deletions ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ git commit -a -m "release: v$newv"
git push
git tag v$newv
git push --force origin v$newv:v$newv
bash build_doc.sh
Loading

0 comments on commit 146db65

Please sign in to comment.