Skip to content

Commit 545ef10

Browse files
committed
docs clean up
1 parent 0820660 commit 545ef10

File tree

9 files changed

+29
-7
lines changed

9 files changed

+29
-7
lines changed

NodeGraphQt/nodes/port_node.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def parent_port(self):
3939
def add_input(self, name='input', multi_input=False, display_name=True,
4040
color=None, locked=False, painter_func=None):
4141
"""
42-
This is not available for the `PortInputNode` class.
42+
Warnings:
43+
This is not available for the ``PortInputNode`` class.
4344
"""
4445
raise PortRegistrationError(
4546
'"{}.add_input()" is not available for {}.'
@@ -48,6 +49,11 @@ def add_input(self, name='input', multi_input=False, display_name=True,
4849

4950
def add_output(self, name='output', multi_output=True, display_name=True,
5051
color=None, locked=False, painter_func=None):
52+
"""
53+
Warnings:
54+
This function is called by :meth:`NodeGraphQt.SubGraph.expand_group_node`
55+
and is not available for the ``PortInputNode`` class.
56+
"""
5157
if self._outputs:
5258
raise PortRegistrationError(
5359
'"{}.add_output()" only ONE output is allowed for this node.'
@@ -98,6 +104,11 @@ def parent_port(self):
98104

99105
def add_input(self, name='input', multi_input=False, display_name=True,
100106
color=None, locked=False, painter_func=None):
107+
"""
108+
Warnings:
109+
This function is called by :meth:`NodeGraphQt.SubGraph.expand_group_node`
110+
and is not available for the ``PortOutputNode`` class.
111+
"""
101112
if self._inputs:
102113
raise PortRegistrationError(
103114
'"{}.add_input()" only ONE input is allowed for this node.'
@@ -115,7 +126,8 @@ def add_input(self, name='input', multi_input=False, display_name=True,
115126
def add_output(self, name='output', multi_output=True, display_name=True,
116127
color=None, locked=False, painter_func=None):
117128
"""
118-
This is not available for the `PortOutputNode` class.
129+
Warnings:
130+
This is not available for the ``PortOutputNode`` class.
119131
"""
120132
raise PortRegistrationError(
121133
'"{}.add_output()" is not available for {}.'

docs/graph.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NodeGraph
1111
.. autoclass:: NodeGraphQt.NodeGraph
1212
:members:
1313
:exclude-members: model, widget
14+
:member-order: bysource
1415

1516
.. autoattribute:: NodeGraphQt.NodeGraph.widget
1617
.. autoattribute:: NodeGraphQt.NodeGraph.model

docs/nodes/BackdropNode.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ BackdropNode
33

44
.. autoclass:: NodeGraphQt.BackdropNode
55
:members:
6+
:member-order: bysource

docs/nodes/BaseNode.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ BaseNode
44
.. autoclass:: NodeGraphQt.BaseNode
55
:members:
66
:exclude-members: update_model, set_layout_direction, set_property
7+
:member-order: bysource
78

89
BaseNode (Circle)
910
#################
1011

1112
.. autoclass:: NodeGraphQt.BaseNodeCircle
1213
:members:
13-
:exclude-members: update_model, set_layout_direction
14+
:exclude-members: update_model, set_layout_direction
15+
:member-order: bysource

docs/nodes/GroupNode.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ GroupNode
33

44
.. autoclass:: NodeGraphQt.GroupNode
55
:members:
6-
:exclude-members: add_input, add_output, delete_input, delete_output
6+
:exclude-members: add_input, add_output, delete_input, delete_output
7+
:member-order: bysource

docs/nodes/NodeObject.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ NodeObject
44
.. autoclass:: NodeGraphQt.NodeObject
55
:members:
66
:exclude-members: NODE_NAME, graph, id, model, type_, view
7+
:member-order: bysource
78

89
.. autoattribute:: NODE_NAME
910
:annotation:

docs/nodes/Port.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Port
44
.. autoclass:: NodeGraphQt.Port
55
:members:
66
:exclude-members: model, view
7+
:member-order: bysource

docs/nodes/PortNode.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ PortNode
44
Port node are the nodes in a expanded :class:`NodeGraphQt.SubGraph` that
55
represent the ports from the parent :class:`NodeGraphQt.GroupNode` object.
66

7+
|
78
89
PortInputNode
910
=============
1011

1112
.. autoclass:: NodeGraphQt.nodes.port_node.PortInputNode
1213
:members:
13-
:exclude-members: add_input, add_output
14+
:member-order: bysource
15+
16+
|
1417
1518
PortOutputNode
1619
==============
1720

1821
.. autoclass:: NodeGraphQt.nodes.port_node.PortOutputNode
1922
:members:
20-
:exclude-members: add_input, add_output
23+
:member-order: bysource

docs/nodes/_index_nodes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Nodes
22
#####
33

4-
| Node object types from the NodeGraphQt module.
4+
| Node object types from the ``NodeGraphQt`` module.
55
66
.. toctree::
77
:caption: Node Classes

0 commit comments

Comments
 (0)