doc: make looks understandable

This commit is contained in:
Takeshi KOMIYA 2018-01-13 11:09:27 +09:00
parent 76c5395c5b
commit 12a8d5c0bd

View File

@ -74,9 +74,8 @@ It adds this directive:
If you have specified a module in the inheritance diagram like this:: If you have specified a module in the inheritance diagram like this::
.. inheritance-diagram:: .. inheritance-diagram:: dummy.test
dummy.test :top-classes: dummy.test.B, dummy.test.C
:top-classes: dummy.test.B, dummy.test.C
any base classes which are ancestors to ``top-classes`` and are also defined any base classes which are ancestors to ``top-classes`` and are also defined
in the same module will be rendered as stand alone nodes. In this example in the same module will be rendered as stand alone nodes. In this example
@ -86,11 +85,8 @@ It adds this directive:
If you don't want class A (or any other ancestors) to be visible then specify If you don't want class A (or any other ancestors) to be visible then specify
only the classes you would like to generate the diagram for like this:: only the classes you would like to generate the diagram for like this::
.. inheritance-diagram:: .. inheritance-diagram:: dummy.test.D dummy.test.E dummy.test.F
dummy.test.D :top-classes: dummy.test.B, dummy.test.C
dummy.test.E
dummy.test.F
:top-classes: dummy.test.B, dummy.test.C
.. versionchanged:: 1.7 .. versionchanged:: 1.7
Added ``top-classes`` option to limit the scope of inheritance graphs. Added ``top-classes`` option to limit the scope of inheritance graphs.