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
47 changes: 47 additions & 0 deletions .github/workflows/pdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: website

# build the documentation whenever there are new commits on main
on:
push:
branches:
- main
# Alternative: only build for tags.
# tags:
# - '*'

# security: restrict permissions for CI jobs.
permissions:
contents: read

jobs:
# Build the documentation and upload the static HTML files as an artifact.
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup uv
uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v6
with:
python-version: '3.14'
- run: uv run pdoc ./src/obelisk -o docs/ --math
- uses: actions/upload-pages-artifact@v4
with:
path: docs/

# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
25 changes: 0 additions & 25 deletions .github/workflows/sphinx-documentation.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ share/python-wheels/
*.egg
MANIFEST

.python-version

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand All @@ -46,9 +48,7 @@ coverage.xml
cover/

# Sphinx documentation
docs/_build/
docs/build/
docs/source/_autosummary/
docs/

# PyBuilder
.pybuilder/
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

37 changes: 0 additions & 37 deletions docs/source/_templates/autosummary/class.rst

This file was deleted.

65 changes: 0 additions & 65 deletions docs/source/_templates/autosummary/module.rst

This file was deleted.

57 changes: 0 additions & 57 deletions docs/source/conf.py

This file was deleted.

14 changes: 0 additions & 14 deletions docs/source/index.rst

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ source = "vcs"

[dependency-groups]
dev = [
"sphinx>=7.4.7",
"pytest>=8.3.5",
"pytest-asyncio>=0.25.3",
"mypy>=1.18.2",
"pdoc>=16.0.0",
]

[tool.hatch.build.targets.wheel]
Expand Down
Loading