Skip to content

Commit d205d14

Browse files
committed
feat(bindings/python): build docs on CI
1 parent 5a4491f commit d205d14

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/docs.yml

+21
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,27 @@ jobs:
8383
- name: Copy docs into build
8484
run: |
8585
cp -r ./bindings/nodejs/docs ./website/static/docs/nodejs
86+
87+
# Setup python environment ----------------------------------------
88+
- uses: actions/setup-python@v4
89+
with:
90+
python-version: '3.11'
91+
92+
# Build bindings/python docs --------------------------------------
93+
- name: Install dependencies
94+
working-directory: bindings/python
95+
run: |
96+
set -e
97+
python -m pip install -e .
98+
python -m pip install pdoc
99+
100+
- name: Build bindings/python Docs
101+
working-directory: bindings/python
102+
run: pdoc --output-dir ./docs opendal
103+
104+
- name: Copy docs into build
105+
run: |
106+
cp -r ./bindings/python/docs ./website/static/docs/python
86107
87108
# Build website ---------------------------------------------------
88109
- name: Install Dependencies

0 commit comments

Comments
 (0)