Skip to content

Commit

Permalink
Fix RTD rendering of inheritance diagram; show API docs (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarqu authored Jan 3, 2024
1 parent a1c3ebd commit 2066ebd
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ coverage.xml

# Sphinx documentation
docs/_build/
docs/api
docs/api_generated/

# PyBuilder
target/
Expand Down
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ build:
os: ubuntu-22.04
tools:
python: "3.11"
apt_packages:
- graphviz

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXAPIDOC) -f -o api/ -H "API" -e ../junitparser
@$(SPHINXAPIDOC) -f -o api_generated/ -H "API" -e ../junitparser
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
5 changes: 0 additions & 5 deletions docs/api/inheritance_diagram.rst

This file was deleted.

6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# -- Project information -----------------------------------------------------

project = "junitparser"
copyright = "2019-2023, Joel Wang"
copyright = "2019-2024, Joel Wang"
author = "Joel Wang"

# The short X.Y version
Expand Down Expand Up @@ -184,3 +184,7 @@


# -- Extension configuration -------------------------------------------------

# -- Extra setup for inheritance_diagram directive which uses graphviz ---------

graphviz_output_format = "svg"
18 changes: 9 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.. include:: ../README.rst

..
NOTE: the "index" self-reference in the toctree below produces a warning
but makes sure it shows up in the left-side TOC like all the other pages
.. toctree::
:maxdepth: 2
:hidden:

api/inheritance_diagram
api/modules

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
index
api
genindex
modindex
search
6 changes: 6 additions & 0 deletions docs/inheritance_diagram.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*************************
Class Inheritance Diagram
*************************

.. inheritance-diagram:: junitparser.junitparser
:parts: -1

0 comments on commit 2066ebd

Please sign in to comment.