Skip to content

Commit

Permalink
DOC,BLD: improve API part of documentation
Browse files Browse the repository at this point in the history
Skip `sphinxcontrib-apiref` and introduce `autoclasstoc`
and manual entries with `autoclass` instead
  • Loading branch information
jcrivenaes committed Sep 1, 2021
1 parent 9e797e6 commit ed3e99b
Show file tree
Hide file tree
Showing 14 changed files with 472 additions and 239 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ _tmp_*

# Sphinx documentation
docs/_build
docs/apiref
docs/_apiref

# PyBuilder
target/
Expand Down
14 changes: 14 additions & 0 deletions docs/_static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* override table width restrictions */
/* see https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html */
@media screen and (min-width: 767px) {

.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}

.wy-table-responsive {
overflow: visible !important;
}
}
10 changes: 10 additions & 0 deletions docs/_templates/custom-class-template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:members:
:show-inheritance:
:inherited-members:

.. autoclasstoc::
Loading

0 comments on commit ed3e99b

Please sign in to comment.