Skip to content

Commit 20a38d0

Browse files
committed
Enable Python docs build.
1 parent a93ac2a commit 20a38d0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
# included (used for version creation)
6161
fetch-depth: 0
6262

63+
- name: Set up Python 3.11
64+
if: matrix.options.py == 'ON' && matrix.check_mkvk != 'ONLY'
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: '3.11.4'
68+
6369
- name: Install Doxygen and Graphviz on macOS
6470
if: matrix.os == 'macos-latest'
6571
run: brew install --formula doxygen && brew install --formula graphviz && echo "Doxygen version $(doxygen --version)"
@@ -116,9 +122,16 @@ jobs:
116122

117123
- name: Build docs
118124
run: |
119-
cmake -B ${{ env.BUILD_DIR }} -D KTX_FEATURE_DOC=ON -D KTX_FEATURE_TESTS=OFF -D KTX_FEATURE_TOOLS=OFF
125+
cmake -B ${{ env.BUILD_DIR }} -D KTX_FEATURE_DOC=ON -D KTX_FEATURE_PY=ON -D KTX_FEATURE_TESTS=OFF -D KTX_FEATURE_TOOLS=OFF
120126
cmake --build ${{ env.BUILD_DIR }} --target all.doc
121127
128+
# - name: Patch .nojekyll
129+
# Some files in the pyktx docs have an _ prefix so Jekyll will
130+
# not copy them from the gh-pages branch to the website. This
131+
# file says no Jekyll files here. Treat all as ordinary files.
132+
# if: matrix.os == 'ubuntu-latest'
133+
# run: touch ${{ env.BUILD_DIR }}/docs/html/.nojekyll
134+
122135
- name: Upload generated HTML documentation for GitHub Pages
123136
if: matrix.os == 'ubuntu-latest'
124137
id: deployment

0 commit comments

Comments
 (0)