Skip to content

Commit

Permalink
use pdoc for API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdum committed Mar 9, 2024
1 parent 28637de commit c6b16fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
12 changes: 4 additions & 8 deletions gen_doc.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/bin/bash
#
# if pdoc is missing: pip install pdoc3
#
pip install -U pdoc

[ -d doc.old ] && rm -r doc.old
[ -d doc ] && mv doc doc.old
pdoc -f --html odfdo
mv html/odfdo doc
mv html doc.old
[ -d doc ] && rm -fr doc
mkdir doc
cp odfdo.png doc
pdoc -o doc --search --logo "https://raw.githubusercontent.com/jdum/odfdo/master/odfdo.png" --logo-link "https://github.com/jdum/odfdo" ./odfdo
4 changes: 3 additions & 1 deletion odfdo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
# Authors: David Versmisse <david.versmisse@itaapy.com>
# Hervé Cauwelier <herve@itaapy.com>
# Romain Gauthier <romain@itaapy.com>
"""Python library for OpenDocument Format (ODF)"""
"""
.. include:: ../README.md
"""

__all__ = [
"AnimPar",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ python = ">=3.9,<4"
lxml = "^5"

[tool.poetry.group.docs.dependencies]
pdoc3 = ">=0.10"
pdoc = ">=14.4.0"

[tool.poetry.group.dev.dependencies]
poetry = "~1.8"
Expand Down

0 comments on commit c6b16fc

Please sign in to comment.