Skip to content

Commit fafbd80

Browse files
committed
doc formatting fixes
1 parent 742e24b commit fafbd80

File tree

7 files changed

+24
-18
lines changed

7 files changed

+24
-18
lines changed

NodeGraphQt/base/port.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __repr__(self):
3939
@property
4040
def view(self):
4141
"""
42-
returns the :class:`QtWidgets.QGraphicsItem` used in the scene.
42+
Returns the :class:`QtWidgets.QGraphicsItem` used in the scene.
4343
4444
Returns:
4545
NodeGraphQt.qgraphics.port.PortItem: port item.
@@ -49,7 +49,7 @@ def view(self):
4949
@property
5050
def model(self):
5151
"""
52-
returns the port model.
52+
Returns the port model.
5353
5454
Returns:
5555
NodeGraphQt.base.model.PortModel: port model.

docs/_static/pygments.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.linenos,
22
td.lineos {
33
background: #2e3133;
4+
margin: 0px 10px;
5+
padding: 1px 8px;
46
}
57
.linenos pre {
68
background-color: transparent;
@@ -9,9 +11,9 @@ td.lineos {
911
-moz-box-shadow: none;
1012
}
1113
.hll { background-color: #233150 }
12-
.code{ background: #232629; !important }
13-
.highlight pre { background: #232629; !important }
14-
.highlight pre {
14+
.code { background: #232629; !important }
15+
.highlight pre { background: #1a1c1f; !important }
16+
.highlight pre {
1517
color: #f8f8f2;
1618
border: 0px;
1719
border-radius: 0px;
@@ -76,4 +78,4 @@ td.lineos {
7678
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
7779
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
7880
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
79-
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
81+
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */

docs/_themes/sphinx_rtd_theme/static/css/theme.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,7 +3465,7 @@ a.wy-text-neutral:hover{
34653465
p{
34663466
line-height:24px;
34673467
font-size:16px;
3468-
margin:0 0 24px
3468+
margin:0 0 2px
34693469
}
34703470
h1{
34713471
font-size:175%
@@ -4266,7 +4266,7 @@ footer p{
42664266
.rst-content div[class^=highlight] pre{
42674267
white-space:pre;
42684268
margin:0;
4269-
padding:12px;
4269+
padding:4px;
42704270
display:block;
42714271
overflow:auto
42724272
}
@@ -4734,6 +4734,7 @@ h2, h3, h4, h5 {color: #6dcfd9;}
47344734
h2 {
47354735
border-bottom: 1px solid #1e2023;
47364736
padding-bottom: 6px;
4737+
padding-top: 6px;
47374738
}
47384739

47394740
/* kwargs tweaks */

docs/examples/ex_node.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Node Examples
44
Creating Nodes
55
**************
66

7-
| Creating a node is done by calling the :func:`NodeGraphQt.NodeGraph.create_node` function.
8-
| (`see example below` ``line: 22``)
7+
| Creating a node is done by calling the :func:`NodeGraph.create_node` function.
8+
| (`see example below` ``line: 23``)
99
1010
.. code-block:: python
1111
:linenos:
12-
:emphasize-lines: 22
12+
:emphasize-lines: 23
1313
1414
from Qt import QtWidgets
1515
from NodeGraphQt import BaseNode, NodeGraph
@@ -34,8 +34,11 @@ Creating Nodes
3434
node_graph.widget.show()
3535
3636
# here we create a couple nodes in the node graph.
37-
node_a = node_graph.create_node('com.chantasticvfx.MyNode', name='node a')
38-
node_b = node_graph.create_node('com.chantasticvfx.MyNode', name='node b', pos=[300, 100])
37+
node_a = node_graph.create_node('com.chantasticvfx.MyNode',
38+
name='node a')
39+
node_b = node_graph.create_node('com.chantasticvfx.MyNode',
40+
name='node b',
41+
pos=[300, 100])
3942
4043
app.exec_()
4144

docs/examples/ex_port.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Creating Custom Shapes
66

77
(*Implemented on* ``v0.1.1``)
88

9-
To have custom port shapes the :meth:`NodeGraphQt.BaseNode.add_input` and
10-
:meth:`NodeGraphQt.BaseNode.add_output` functions now have a ``painter_func``
9+
To have custom port shapes the :meth:`BaseNode.add_input` and
10+
:meth:`BaseNode.add_output` functions now have a ``painter_func``
1111
argument where you specify you custom port painter function.
1212

1313
.. image:: ../_images/custom_ports.png
@@ -136,4 +136,4 @@ And here's another example function for drawing a Square port.
136136
painter.setBrush(color)
137137
painter.drawRect(rect)
138138
139-
painter.restore()
139+
painter.restore()

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NodeGraphQt documentation.
1111
----
1212

1313
.. toctree::
14-
:caption: API Reference
14+
:caption: API
1515
:name: apitoc
1616
:maxdepth: 2
1717

docs/nodes/Port.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Port
33

44
.. autoclass:: NodeGraphQt.Port
55
:members:
6-
:exclude-members: model
6+
:exclude-members: model, view

0 commit comments

Comments
 (0)