Skip to content

Commit 67d5075

Browse files
committed
wip: Use pdoc to generate API documentation
Not working correctly: - Why isn't the markdown working properly? - Links are broken - Issues with intra-doc links not working as I want them too
1 parent 7fdfb6e commit 67d5075

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ __pycache__
2323
# tox
2424
/.tox
2525

26+
# generated by pdoc
27+
/docs
28+
2629
##
2730
## Miscellaneous
2831
##

Justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ fix: && _format fix-spelling
2121
@# Failure to fix should not prevent formatting
2222
-ruff check --fix src
2323

24-
build: mypy && _test check-format
24+
build: mypy && doc _test check-format
2525
# Build project
2626
uv build
2727

28+
# build project documentation with `pdoc`
29+
#
30+
# See website: https://pdoc.dev/
31+
doc:
32+
@mkdir -p docs
33+
PYTHONPATH=src ./pdoc/.venv/bin/pdoc --docformat=markdown -o docs techcable.orderedset
34+
2835
mypy:
2936
uv run mypy src
3037

0 commit comments

Comments
 (0)