Skip to content

Commit

Permalink
📝 Generate API docs automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Sep 5, 2020
1 parent 6b69862 commit cb9d3f4
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 263 deletions.
15 changes: 12 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,24 @@
'sphinx.ext.intersphinx',
'jaraco.packaging.sphinx',
'sphinx_tabs.tabs',
'sphinxcontrib.apidoc',
'sphinxcontrib.spelling',
'scm_tag_titles_ext',
]

master_doc = 'index'

apidoc_excluded_paths = []
apidoc_extra_args = [
'--implicit-namespaces',
'--private', # include “_private” modules
]
apidoc_module_dir = '../cheroot'
apidoc_module_first = False
apidoc_output_dir = 'pkg'
apidoc_separate_modules = True
apidoc_toc_file = None

spelling_ignore_acronyms = True
spelling_ignore_importable_modules = True
spelling_ignore_pypi_package_names = True
Expand Down Expand Up @@ -92,9 +104,6 @@
# NOTE: consider having a separate ignore file
# Ref: https://stackoverflow.com/a/30624034/595220
nitpick_ignore = [
('py:class', 'cheroot.connections.ConnectionManager'),
('py:meth', 'cheroot.connections.ConnectionManager.get_conn'),

('py:const', 'socket.SO_PEERCRED'),
('py:class', '_pyio.BufferedWriter'),
('py:class', '_pyio.BufferedReader'),
Expand Down
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Welcome to Cheroot documentation!

contribute
history
pkg/*

.. toctree::
:caption: Reference

pkg/modules


`Cheroot <https://github.com/cherrypy/cheroot>`_ is the high-performance,
Expand Down
2 changes: 2 additions & 0 deletions docs/pkg/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
15 changes: 0 additions & 15 deletions docs/pkg/cheroot._compat.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.errors.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.makefile.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.server.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.ssl.builtin.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.ssl.pyopenssl.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.ssl.rst

This file was deleted.

102 changes: 0 additions & 102 deletions docs/pkg/cheroot.test.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.testing.rst

This file was deleted.

22 changes: 0 additions & 22 deletions docs/pkg/cheroot.workers.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pkg/cheroot.wsgi.rst

This file was deleted.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ docs =
alabaster
# `scm_tag_titles_ext` extension dep in docs/
python-dateutil
sphinxcontrib-apidoc>=0.3.0
sphinxcontrib-spelling>=5.2.0

testing =
Expand Down

0 comments on commit cb9d3f4

Please sign in to comment.