Skip to content

Commit 044d534

Browse files
committed
do not include sphinx-apidoc generated files in git, hide private functions in API docs, add docs/apidoc to gitignore
1 parent 7e19c65 commit 044d534

File tree

7 files changed

+7
-66
lines changed

7 files changed

+7
-66
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ instance/
6565

6666
# Sphinx documentation
6767
docs/_build/
68+
docs/apidoc/modules.rst
69+
docs/apidoc/xncml*.rst
6870

6971
# PyBuilder
7072
target/

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ build:
1010
os: "ubuntu-24.04"
1111
tools:
1212
python: 'mambaforge-23.11'
13+
jobs:
14+
pre_build:
15+
- sphinx-apidoc -o docs/apidoc/ --module-first src/xncml
1316

1417
# Build documentation in the docs/ directory with Sphinx
1518
sphinx:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ initialize-translations: clean-docs ## initialize translations, ignoring autodoc
8080
sphinx-intl update -p docs/_build/gettext -d docs/locales -l fr
8181

8282
autodoc: clean-docs ## create sphinx-apidoc files:
83-
sphinx-apidoc -o docs/apidoc --private --module-first src/xncml
83+
sphinx-apidoc -o docs/apidoc --module-first src/xncml
8484

8585
linkcheck: autodoc ## run checks over all external links found throughout the documentation
8686
$(MAKE) -C docs linkcheck

docs/apidoc/modules.rst

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

docs/apidoc/xncml.generated.rst

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

docs/apidoc/xncml.rst

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

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Xncml Documentation
1+
xncml Documentation
22
===================
33

44
.. toctree::

0 commit comments

Comments
 (0)