Skip to content

Commit

Permalink
Merge pull request #251 from ArtifexSoftware/sphinxcontrib.apidoc
Browse files Browse the repository at this point in the history
Adds sphinxcontrib.apidoc to generate low-level API docs.
  • Loading branch information
jamie-lemon committed Jan 16, 2024
2 parents 644f784 + 7ca9923 commit 2f4445b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/modules.rst → doc/api/modules.rst
@@ -1,5 +1,5 @@
API Documentation
=================
pdf2docx
========

.. toctree::
:maxdepth: 4
Expand Down
7 changes: 6 additions & 1 deletion doc/conf.py
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
10 changes: 8 additions & 2 deletions doc/index.rst
Expand Up @@ -9,12 +9,18 @@ generate docx file with ``python-docx``.

.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: USER GUIDE

installation
quickstart
techdoc
modules


.. toctree::
:maxdepth: 2
:caption: API DOCUMENTATION

api/modules


Indices and tables
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Expand Up @@ -4,3 +4,4 @@ rst2pdf
sphinx==5.3.0
autodoc
sphinx_rtd_theme
sphinxcontrib.apidoc

0 comments on commit 2f4445b

Please sign in to comment.