Skip to content

Commit ef82ada

Browse files
authored
Merge pull request #323 from jchanvfx/docs_clean_up
docs clean up & updates.
2 parents e97357d + d235391 commit ef82ada

File tree

18 files changed

+74
-73
lines changed

18 files changed

+74
-73
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ venv/*
44

55
# sphinx documentation
66
docs/_build/
7-
api/doctrees
7+
api/*
88

99
# python stuff
1010
*.pyc

NodeGraphQt/base/graph.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -995,22 +995,21 @@ def set_layout_direction(self, direction):
995995
996996
`Implemented in` ``v0.3.0``
997997
998-
See Also:
999-
:meth:`NodeGraph.layout_direction`,
1000-
:meth:`NodeObject.set_layout_direction`
1001-
1002-
Note:
1003-
Node Graph Layout Types:
998+
**Layout Types:**
1004999
1005-
* :attr:`NodeGraphQt.constants.LayoutDirectionEnum.HORIZONTAL`
1006-
* :attr:`NodeGraphQt.constants.LayoutDirectionEnum.VERTICAL`
1000+
- :attr:`NodeGraphQt.constants.LayoutDirectionEnum.HORIZONTAL`
1001+
- :attr:`NodeGraphQt.constants.LayoutDirectionEnum.VERTICAL`
10071002
1008-
.. image:: _images/layout_direction_switch.gif
1009-
:width: 300px
1003+
.. image:: _images/layout_direction_switch.gif
1004+
:width: 300px
10101005
10111006
Warnings:
10121007
This function does not register to the undo stack.
10131008
1009+
See Also:
1010+
:meth:`NodeGraph.layout_direction`,
1011+
:meth:`NodeObject.set_layout_direction`
1012+
10141013
Args:
10151014
direction (int): layout direction.
10161015
"""

NodeGraphQt/base/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class NodeObject(object):
3838
class ExampleNode(NodeObject):
3939
4040
# unique node identifier domain.
41-
__identifier__ = 'io.jchanvfx.github'
41+
__identifier__ = 'io.github.jchanvfx'
4242
4343
def __init__(self):
4444
...

NodeGraphQt/base/port.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Port(object):
1919
2020
.. inheritance-diagram:: NodeGraphQt.Port
2121
22-
.. image:: ../_images/port.png
22+
.. image:: _images/port.png
2323
:width: 50%
2424
2525
See Also:

NodeGraphQt/nodes/group_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GroupNode(BaseNode):
88
"""
99
`Implemented in` ``v0.2.0``
1010
11-
The ``NodeGraphQt.GroupNode`` class extends from the :class:``NodeGraphQt.BaseNode``
11+
The ``NodeGraphQt.GroupNode`` class extends from the :class:`NodeGraphQt.BaseNode`
1212
class with the ability to nest other nodes inside of it.
1313
1414
.. inheritance-diagram:: NodeGraphQt.GroupNode

NodeGraphQt/nodes/port_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class PortInputNode(BaseNode):
99
"""
10-
The ``PortInputNode`` class is the node object that represents a port from a
10+
The ``PortInputNode`` is the node that represents a input port from a
1111
:class:`NodeGraphQt.GroupNode` when expanded in a
1212
:class:`NodeGraphQt.SubGraph`.
1313
@@ -71,8 +71,8 @@ def add_output(self, name='output', multi_output=True, display_name=True,
7171

7272
class PortOutputNode(BaseNode):
7373
"""
74-
The ``PortOutputNode`` class is the node object that represents a port
75-
from a :class:`NodeGraphQt.GroupNode` when expanded in a
74+
The ``PortOutputNode`` is the node that represents a output port from a
75+
:class:`NodeGraphQt.GroupNode` when expanded in a
7676
:class:`NodeGraphQt.SubGraph`.
7777
7878
.. inheritance-diagram:: NodeGraphQt.nodes.port_node.PortOutputNode

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ https://jchanvfx.github.io/NodeGraphQt/api/html/examples/ex_overview.html#simple
2525

2626
<img src="/docs/_images/pipe_layout_types.gif" width="600" title="Pipe Layout">
2727

28-
#### Slice Connections
29-
30-
<img src="/docs/_images/slicer.png" width="500" title="Pipe Slicer">
31-
3228
#### Custom Widgets
33-
<img src="/docs/_images/prop_bin.png" width="600" title="Properties Bin">
34-
<img src="/docs/_images/nodes_palette.png" width="350" title="Nodes Paletten">
3529

30+
https://jchanvfx.github.io/NodeGraphQt/api/html/custom_widgets.html
3631

32+
<img src="/docs/_images/prop_bin.png" width="600" title="Properties Bin">

docs/custom_widgets.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,30 @@ Built-in Widgets
33

44
| The ``NodeGraphQt`` framework comes included with a few custom widgets.
55
6+
**Classes:**
7+
8+
.. autosummary::
9+
NodeGraphQt.PropertiesBinWidget
10+
NodeGraphQt.NodesPaletteWidget
11+
NodeGraphQt.NodesTreeWidget
612

713
Properties Bin
814
**************
915

1016
.. autoclass:: NodeGraphQt.PropertiesBinWidget
1117
:members:
12-
:exclude-members: property_changed
18+
:exclude-members: staticMetaObject
1319

1420
Nodes Palette
1521
*************
1622

1723
.. autoclass:: NodeGraphQt.NodesPaletteWidget
1824
:members:
19-
:exclude-members: mimeData,
25+
:exclude-members: mimeData, staticMetaObject
2026

2127
Nodes Tree
2228
**********
2329

2430
.. autoclass:: NodeGraphQt.NodesTreeWidget
2531
:members:
26-
:exclude-members: mimeData
32+
:exclude-members: mimeData, staticMetaObject

docs/examples/ex_menu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Menu Overview
33

44
.. currentmodule:: NodeGraphQt
55

6-
| Examples for customizing context menus in NodeGraphQt.
6+
| Examples for customizing context menus in ``NodeGraphQt``.
77
88
Default Context Menu
99
********************

docs/examples/ex_overview.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ Here's a basic example snippet for creating two nodes and connecting them togeth
6666
.. code-block:: python
6767
:linenos:
6868
69-
import sys
70-
7169
from Qt import QtWidgets
7270
from NodeGraphQt import NodeGraph, BaseNode
7371
@@ -92,7 +90,7 @@ Here's a basic example snippet for creating two nodes and connecting them togeth
9290
9391
9492
if __name__ == '__main__':
95-
app = QtWidgets.QApplication(sys.argv)
93+
app = QtWidgets.QApplication([])
9694
9795
# create node graph controller.
9896
graph = NodeGraph()

0 commit comments

Comments
 (0)