Skip to content

Commit

Permalink
feat: split download docs, and auto clone in workflow (#6142)
Browse files Browse the repository at this point in the history
Signed-off-by: samzong <samzong.lu@gmail.com>
  • Loading branch information
samzong authored Jan 20, 2025
1 parent be45bed commit 8f22a7e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ jobs:
with:
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info

# Clone
# Clone OpenAPI docs
- name: Checkout public repository
uses: actions/checkout@v2
with:
repository: daocloud/daocloud-api-docs
path: dao-openapi
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info

# Clone Download docs
- name: Checkout public repository
uses: actions/checkout@v2
with:
repository: daocloud/daocloud-download-docs
path: daocloud-download-docs
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info

- uses: actions/setup-python@v2
# - uses: actions/setup-python@v4
Expand Down Expand Up @@ -74,6 +82,10 @@ jobs:
- run: cp -av dao-openapi/docs/openapi docs/zh/docs/
- run: python scripts/merged_nav.py

# merged download docs
- run: cp -av daocloud-download-docs/docs/zh/docs/download docs/zh/docs/
- run: cp -av daocloud-download-docs/docs/en/docs/download docs/en/docs/

# build docs
- run: pwd
- run: mkdocs build -f docs/zh/mkdocs.yml -d ../../public/
Expand Down

0 comments on commit 8f22a7e

Please sign in to comment.