Skip to content

Commit 8f22a7e

Browse files
authored
feat: split download docs, and auto clone in workflow (#6142)
Signed-off-by: samzong <[email protected]>
1 parent be45bed commit 8f22a7e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/main.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,21 @@ jobs:
3737
with:
3838
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info
3939

40-
# Clone
40+
# Clone OpenAPI docs
4141
- name: Checkout public repository
4242
uses: actions/checkout@v2
4343
with:
4444
repository: daocloud/daocloud-api-docs
4545
path: dao-openapi
4646
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info
47+
48+
# Clone Download docs
49+
- name: Checkout public repository
50+
uses: actions/checkout@v2
51+
with:
52+
repository: daocloud/daocloud-download-docs
53+
path: daocloud-download-docs
54+
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info
4755

4856
- uses: actions/setup-python@v2
4957
# - uses: actions/setup-python@v4
@@ -74,6 +82,10 @@ jobs:
7482
- run: cp -av dao-openapi/docs/openapi docs/zh/docs/
7583
- run: python scripts/merged_nav.py
7684

85+
# merged download docs
86+
- run: cp -av daocloud-download-docs/docs/zh/docs/download docs/zh/docs/
87+
- run: cp -av daocloud-download-docs/docs/en/docs/download docs/en/docs/
88+
7789
# build docs
7890
- run: pwd
7991
- run: mkdocs build -f docs/zh/mkdocs.yml -d ../../public/

0 commit comments

Comments
 (0)