Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RTD rendering of inheritance diagram; show API docs #120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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