diff --git a/.github/workflows/pdoc.yml b/.github/workflows/pdoc.yml index 21da87be..f8a231c8 100644 --- a/.github/workflows/pdoc.yml +++ b/.github/workflows/pdoc.yml @@ -26,10 +26,9 @@ jobs: python-version: 3.12 - name: Build run: | - echo "PDOC_GENERATE_PYPARTMC_DOCS=True" >> $GITHUB_ENV pip install pdoc pip install -e . - PDOC_ALLOW_EXEC=1 python -We -m pdoc -o html PyPartMC + PDOC_ALLOW_EXEC=1 PDOC_GENERATE_PYPARTMC_DOCS=1 python -We -m pdoc -o html PyPartMC - name: Deploy if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'ubuntu-latest' }} uses: JamesIves/github-pages-deploy-action@4.1.1 diff --git a/src/PyPartMC/__init__.py b/src/PyPartMC/__init__.py index d37fbdfc..9c27ae04 100644 --- a/src/PyPartMC/__init__.py +++ b/src/PyPartMC/__init__.py @@ -87,7 +87,7 @@ def __generate_si(): # docs would be listed as nanobind objects with no additional documentation. # To solve that, dummy functions of the same name are created, and their "__doc__" # attribute is manually set to the "original" objects' "__doc__" -if os.getenv("PDOC_GENERATE_PYPARTMC_DOCS") == "True": +if os.getenv("PDOC_GENERATE_PYPARTMC_DOCS") == "1": all_items = [] for name, obj in inspect.getmembers( _PyPartMC # pylint: disable=undefined-variable