Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/pdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/PyPartMC/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading