Skip to content

Commit

Permalink
Integrates sphinxcontrib.apidoc to generate low-level API docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-lemon committed Jan 16, 2024
1 parent 644f784 commit cd5d7d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/modules.rst → doc/api/modules.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
API Documentation
=================
pdf2docx
========

.. toctree::
:maxdepth: 4
Expand Down
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ def get_version(fname):
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc'
'sphinxcontrib.apidoc'
]

apidoc_module_dir = '../pdf2docx'
apidoc_output_dir = 'api'
apidoc_excluded_paths = []
apidoc_separate_modules = True

# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']

Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generate docx file with ``python-docx``.
installation
quickstart
techdoc
modules
api/modules


Indices and tables
Expand Down

0 comments on commit cd5d7d5

Please sign in to comment.