Fix two relative link bugs in inheritance diagrams (#11634)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
Albert Y. Shih
2023-08-30 13:44:37 -04:00
committed by GitHub
parent ca0fc7aa86
commit 4692208fde
10 changed files with 53 additions and 31 deletions

View File

@@ -7,12 +7,12 @@ test-ext-inheritance_diagram
.. inheritance-diagram:: test.Foo
:caption: Test Foo!
.. inheritance-diagram:: test.DocLowerLevel
.. inheritance-diagram:: test.DocSubDir2
.. py:class:: test.DocHere
.. py:class:: test.DocMainLevel
.. inheritance-diagram:: subdir.other.Bob
.. inheritance-diagram:: external.other.Bob
.. py:class:: test.Alice

View File

@@ -1,7 +0,0 @@
=========================================
test-ext-inheritance_diagram subdirectory
=========================================
.. inheritance-diagram:: test.DocMainLevel
.. py:class:: test.DocLowerLevel

View File

@@ -0,0 +1,9 @@
================================================
test-ext-inheritance_diagram subdirectory page 1
================================================
.. inheritance-diagram:: test.DocMainLevel
.. inheritance-diagram:: test.DocSubDir2
.. py:class:: test.DocSubDir1

View File

@@ -0,0 +1,5 @@
================================================
test-ext-inheritance_diagram subdirectory page 2
================================================
.. py:class:: test.DocSubDir2

View File

@@ -6,7 +6,11 @@ class DocHere(Foo):
pass
class DocLowerLevel(DocHere):
class DocSubDir1(DocHere):
pass
class DocSubDir2(DocSubDir1):
pass