-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API reference for Python SDK (#301)
* add API reference * Update .gitignore * Update doxygen.yml * support subdirectories * Update doxygen.yml * Update doxygen-config * change favicon * update favicon * remove favicon * Update doxygen.yml
- Loading branch information
1 parent
f4bfa5e
commit d7f2a75
Showing
3 changed files
with
2,966 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Generate API reference via Doxygen and push to GitHub Pages | ||
env: | ||
# Specify the doc version to which the API reference belongs | ||
doc_version: 3.6.0 | ||
on: | ||
push: | ||
branches: | ||
# Remember to update the branch name when you create a new branch | ||
- release-3.4 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all commits/branches for gitversion | ||
|
||
- name: Extract branch name | ||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV | ||
|
||
- name: Install Doxygen | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y doxygen graphviz | ||
# Generate HTML files | ||
- name: Generate Documentation | ||
run: | | ||
echo "OUTPUT_DIRECTORY=$BRANCH_NAME" >> doxygen-config | ||
doxygen doxygen-config | ||
# Deploy the generated HTML files to the gh-pages branch | ||
- name: Deploy to gh-pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.BRANCH_NAME }}/html | ||
destination_dir: ${{ env.BRANCH_NAME }} | ||
|
||
# - name: show gh-pages branch | ||
# run: | | ||
# git branch | ||
# git checkout . | ||
# git checkout gh-pages | ||
|
||
# # Compresses HTML files into a tar.gz file | ||
# - name: compress api reference | ||
# run: | | ||
# tar -zcvf $BRANCH_NAME.tar.gz $BRANCH_NAME | ||
|
||
# - name: transfer api reference | ||
# uses: appleboy/scp-action@master | ||
# with: | ||
# host: 20.163.77.63 | ||
# username: azureuser | ||
# password: ${{ secrets.ENSITE_PASSWORD }} | ||
# port: 404 | ||
# source: $BRANCH_NAME.tar.gz | ||
# # Return error if the target doc version does not already exist | ||
# target: /var/www/ent-docs/${{ env.doc_version }}/ | ||
|
||
# - name: uncompress ap reference | ||
# uses: appleboy/ssh-action@master | ||
# with: | ||
# host: 20.163.77.63 | ||
# username: azureuser | ||
# password: ${{ secrets.ENSITE_PASSWORD }} | ||
# port: 404 | ||
# script: | | ||
# mkdir -p /var/www/ent-docs/${{ env.doc_version}}/api/python/ | ||
# tar -zxf /var/www/ent-docs/${{ env.doc_version}}/$BRANCH_NAME.tar.gz -C /var/www/ent-docs/${{ env.doc_version}}/api/python/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,3 +114,5 @@ nebula/graph.thrift | |
# CI data | ||
tests/data | ||
tests/logs | ||
|
||
.DS_Store |
Oops, something went wrong.