Skip to content

Commit 2066ebd

Browse files
authored
Fix RTD rendering of inheritance diagram; show API docs (#120)
1 parent a1c3ebd commit 2066ebd

7 files changed

+24
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ coverage.xml
5252

5353
# Sphinx documentation
5454
docs/_build/
55-
docs/api
55+
docs/api_generated/
5656

5757
# PyBuilder
5858
target/

.readthedocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ build:
77
os: ubuntu-22.04
88
tools:
99
python: "3.11"
10+
apt_packages:
11+
- graphviz
1012

1113
python:
1214
install:

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ help:
1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXAPIDOC) -f -o api/ -H "API" -e ../junitparser
20+
@$(SPHINXAPIDOC) -f -o api_generated/ -H "API" -e ../junitparser
2121
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/api/inheritance_diagram.rst

-5
This file was deleted.

docs/conf.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# -- Project information -----------------------------------------------------
2323

2424
project = "junitparser"
25-
copyright = "2019-2023, Joel Wang"
25+
copyright = "2019-2024, Joel Wang"
2626
author = "Joel Wang"
2727

2828
# The short X.Y version
@@ -184,3 +184,7 @@
184184

185185

186186
# -- Extension configuration -------------------------------------------------
187+
188+
# -- Extra setup for inheritance_diagram directive which uses graphviz ---------
189+
190+
graphviz_output_format = "svg"

docs/index.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.. include:: ../README.rst
22

3+
..
4+
NOTE: the "index" self-reference in the toctree below produces a warning
5+
but makes sure it shows up in the left-side TOC like all the other pages
6+
37
.. toctree::
48
:maxdepth: 2
59
:hidden:
610

7-
api/inheritance_diagram
8-
api/modules
9-
10-
Indices and tables
11-
==================
12-
13-
* :ref:`genindex`
14-
* :ref:`modindex`
15-
* :ref:`search`
11+
index
12+
api
13+
genindex
14+
modindex
15+
search

docs/inheritance_diagram.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*************************
2+
Class Inheritance Diagram
3+
*************************
4+
5+
.. inheritance-diagram:: junitparser.junitparser
6+
:parts: -1

0 commit comments

Comments
 (0)