File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 type : string
1717 default : ' .'
1818
19+ doxygen-directory :
20+ description : ' Directory to run doxygen from'
21+ required : false
22+ type : string
23+ default : ' '
24+
1925jobs :
2026 Docs :
2127 runs-on : ubuntu-24.04
3339 with :
3440 python-version : ' 3.11'
3541
36- - name : Install doxygen
37- # We don't need this for every repo so could make it optional
38- run : sudo apt-get update && sudo apt-get install -y doxygen
3942
4043 - name : Install uv
4144 uses : astral-sh/setup-uv@v6
7073 echo "PKG_VERSION=$PKG_VERSION"
7174 sed -i s/__PKG_VERSION__/${PKG_VERSION}/g docs/_config.yml
7275
76+ # Tskit has C code that we document using doxygen. This needs to be done
77+ # before the jupyterbook build which incorporates it.
78+ - name : Install doxygen (if required)
79+ if : ${{ inputs.doxygen-directory != '' }}
80+ run : sudo apt-get update && sudo apt-get install -y doxygen
81+
82+ - name : Run doxygen (if required)
83+ if : ${{ inputs.doxygen-directory != '' }}
84+ run : cd ${{ inputs.doxygen-directory }} && doxygen
85+
7386 - name : Build documentation
7487 run : uv run --project=${{ inputs.pyproject-directory }} jupyter-book build -nW docs/
7588
You can’t perform that action at this time.
0 commit comments