Skip to content

Commit 0df1010

Browse files
authored
Merge pull request #18 from predict-idlab/docs-migrate_pdoc
Docs: migrate to pdoc
2 parents ad44c5c + 52b9c8e commit 0df1010

File tree

20 files changed

+298
-613
lines changed

20 files changed

+298
-613
lines changed

.github/workflows/pdoc.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: website
2+
3+
# build the documentation whenever there are new commits on main
4+
on:
5+
push:
6+
branches:
7+
- main
8+
# Alternative: only build for tags.
9+
# tags:
10+
# - '*'
11+
12+
# security: restrict permissions for CI jobs.
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
# Build the documentation and upload the static HTML files as an artifact.
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
with:
23+
persist-credentials: false
24+
- name: Setup uv
25+
uses: astral-sh/setup-uv@v6
26+
- uses: actions/setup-python@v6
27+
with:
28+
python-version: '3.14'
29+
- run: uv run pdoc ./src/obelisk -o docs/ --math
30+
- uses: actions/upload-pages-artifact@v4
31+
with:
32+
path: docs/
33+
34+
# Deploy the artifact to GitHub pages.
35+
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
permissions:
40+
pages: write
41+
id-token: write
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- id: deployment
47+
uses: actions/deploy-pages@v4

.github/workflows/sphinx-documentation.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ share/python-wheels/
2626
*.egg
2727
MANIFEST
2828

29+
.python-version
30+
2931
# Installer logs
3032
pip-log.txt
3133
pip-delete-this-directory.txt
@@ -46,9 +48,7 @@ coverage.xml
4648
cover/
4749

4850
# Sphinx documentation
49-
docs/_build/
50-
docs/build/
51-
docs/source/_autosummary/
51+
docs/
5252

5353
# PyBuilder
5454
.pybuilder/

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/source/_templates/autosummary/class.rst

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/source/_templates/autosummary/module.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ source = "vcs"
4141

4242
[dependency-groups]
4343
dev = [
44-
"sphinx>=7.4.7",
4544
"pytest>=8.3.5",
4645
"pytest-asyncio>=0.25.3",
4746
"mypy>=1.18.2",
47+
"pdoc>=16.0.0",
4848
]
4949

5050
[tool.hatch.build.targets.wheel]

0 commit comments

Comments
 (0)