@@ -43,10 +43,55 @@ jobs:
4343 runs-on : ubuntu-latest
4444 needs : [doc-style]
4545 steps :
46- - uses : ansys/actions/doc-build@v4
46+
47+ - name : " Checkout project"
48+ uses : actions/checkout@v4
49+
50+ - name : " Install Python"
51+ uses : actions/setup-python@v4
4752 with :
4853 python-version : ${{ env.MAIN_PYTHON_VERSION }}
4954
55+ - name : " Install project with doc dependencies"
56+ run : |
57+ sudo apt update
58+ sudo apt-get install -y build-essential texlive-latex-extra latexmk texlive-pstricks
59+ python -m pip install .[doc]
60+
61+ - name : " Install custom sphinx-autoapi branch"
62+ run : |
63+ python -m pip install \
64+ "sphinx-autoapi @ git+https://github.com/ansys/sphinx-autoapi@feat/single-page-stable"
65+
66+ - name : " Build HTML documentation"
67+ run : |
68+ make -C doc html
69+
70+ - name : " Build PDF documentation"
71+ run : |
72+ make -C doc pdf
73+
74+ - name : " Upload HTML documentation artifact"
75+ uses : actions/upload-artifact@v3
76+ with :
77+ name : documentation-html
78+ path : doc/_build/html
79+ retention-days : 7
80+
81+ - name : " Upload PDF documentation artifact"
82+ uses : actions/upload-artifact@v3
83+ with :
84+ name : documentation-pdf
85+ path : doc/_build/latex/*.pdf
86+ retention-days : 7
87+
88+ # TODO: restore these step in favor of previous ones this PR is merged
89+ # https://github.com/readthedocs/sphinx-autoapi/pull/399
90+ #
91+ # - uses: ansys/actions/doc-build@v4
92+ # with:
93+ # python-version: ${{ env.MAIN_PYTHON_VERSION }}
94+
5095 build-wheelhouse :
5196 name : " Build wheelhouse for latest Python versions"
5297 runs-on : ${{ matrix.os }}
0 commit comments