mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -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
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
=========================================
|
||||
test-ext-inheritance_diagram subdirectory
|
||||
=========================================
|
||||
|
||||
.. inheritance-diagram:: test.DocMainLevel
|
||||
|
||||
.. py:class:: test.DocLowerLevel
|
||||
@@ -0,0 +1,9 @@
|
||||
================================================
|
||||
test-ext-inheritance_diagram subdirectory page 1
|
||||
================================================
|
||||
|
||||
.. inheritance-diagram:: test.DocMainLevel
|
||||
|
||||
.. inheritance-diagram:: test.DocSubDir2
|
||||
|
||||
.. py:class:: test.DocSubDir1
|
||||
@@ -0,0 +1,5 @@
|
||||
================================================
|
||||
test-ext-inheritance_diagram subdirectory page 2
|
||||
================================================
|
||||
|
||||
.. py:class:: test.DocSubDir2
|
||||
@@ -6,7 +6,11 @@ class DocHere(Foo):
|
||||
pass
|
||||
|
||||
|
||||
class DocLowerLevel(DocHere):
|
||||
class DocSubDir1(DocHere):
|
||||
pass
|
||||
|
||||
|
||||
class DocSubDir2(DocSubDir1):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user