Skip to content

Commit

Permalink
chore(docs): add api reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 25, 2021
1 parent 4495e30 commit 8980f75
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CD

on:
push:
branches:
- master

#on:
# push:
# branches-ignore:
# - '**' # temporally ignore all


jobs:
update-doc:
if: |
startsWith(github.event.head_commit.message, 'chore(docs):')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: push-to-api-repo
run: |
cd docs
docker run --rm \
-v $(pwd)/proto:/out \
-v $(pwd)/../jina/proto:/protos \
pseudomuto/protoc-gen-doc --doc_opt=markdown,docs.md
make dirhtml
cp -r ./_build/dirhtml/ ./
touch .nojekyll
git config --local user.email "[email protected]"
git config --local user.name "Jina Dev Bot"
git add . && git commit -m "update ${{env.JINA_VERSION}} due to ${{github.event_name}} on ${{github.repository}}"
git status
13 changes: 1 addition & 12 deletions docs/makedoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,4 @@ docker run --rm \
-v $(pwd)/../jina/proto:/protos \
pseudomuto/protoc-gen-doc --doc_opt=markdown,docs.md

make dirhtml
exit
echo docs.jina.ai > CNAME
git init
git config --local user.email "[email protected]"
git config --local user.name "Jina Dev Bot"
touch .nojekyll
git add .
git commit -m "$2" -a
git status
cd -

make dirhtml

0 comments on commit 8980f75

Please sign in to comment.