Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ArzelaAscoIi committed May 6, 2024
1 parent 25cc471 commit 78bedd2
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/api-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: API Docs



on:
pull_request:
release:
types:
- published
Expand Down Expand Up @@ -39,20 +42,20 @@ jobs:
- name: Generate API docs
run: ./.github/utils/pydoc-markdown.sh

- name: Configure git to push docs
run: |
git config --global user.name docs-bot
git config --global user.email [email protected]
git config pull.rebase false
git pull --allow-unrelated-histories origin gh-pages
# - name: Configure git to push docs
# run: |
# git config --global user.name docs-bot
# git config --global user.email [email protected]
# git config pull.rebase false
# git pull --allow-unrelated-histories origin gh-pages

- name: Install dependencies for doc deployment
run: pip install mkdocs-material mkdocstrings[python] mkdocs-mermaid2-plugin mike
# - name: Install dependencies for doc deployment
# run: pip install mkdocs-material mkdocstrings[python] mkdocs-mermaid2-plugin mike

- name: Publish docs to pages
run: |
mike deploy --push --update-aliases ${{github.ref_name}} && \
mike set-default --push ${{github.ref_name}}
# - name: Publish docs to pages
# run: |
# mike deploy --push --update-aliases ${{github.ref_name}} && \
# mike set-default --push ${{github.ref_name}}

- name: Add Category ID to all API docs
run: python ./.github/utils/add-category-id.py
Expand Down

0 comments on commit 78bedd2

Please sign in to comment.