Skip to content

Commit b7312b4

Browse files
committed
sphinx docs update.
1 parent 3bb21a3 commit b7312b4

File tree

18 files changed

+87
-36
lines changed

18 files changed

+87
-36
lines changed

.github/workflows/sphinx_doc_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
release:
66
types:
77
- published
8-
# push:
9-
# branches:
10-
# - main
8+
push:
9+
branches:
10+
- main
1111

1212
env:
1313
# environment variables.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ applications.
1414

1515
## Install
1616

17-
NodeGraphQt is avaliable on The Python Package Index (PyPI) [here](https://pypi.org/project/NodeGraphQt) so it can be installed with:
17+
NodeGraphQt is available on The Python Package Index (PyPI) [here](https://pypi.org/project/NodeGraphQt) so it can be installed with:
1818
```
1919
pip install NodeGraphQt
2020
```

docs/_static/pygments.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ td.lineos {
1111
-moz-box-shadow: none;
1212
}
1313
.hll {
14-
background-color: #233150:
14+
background-color: #233150;
1515
display: block;
1616
}
17-
.code { background: #232629; !important }
17+
.code {
18+
background: #232629; !important;
19+
}
1820
.highlight pre {
1921
background: #0b0d0f !important;
20-
border-radius: 10px !important;
22+
padding-left: 18px;
2123
}
2224
.highlight pre {
2325
color: #2fb37a;
24-
border: 0px;
25-
border-radius: 0px;
26+
border: 1px solid #1c2a38;
27+
border-radius: 10px;
2628
-webkit-box-shadow: none;
2729
-moz-box-shadow: none;
2830
}

docs/_templates/toc.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{%- if meta is mapping %}
2+
{%- if "hide-rtoc" not in meta %}
3+
{#- Template for the on-page TOC -#}
4+
5+
<aside id="right-sidebar" class="hidden text-sm xl:block">
6+
<div class="sticky top-16 -mt-10 max-h-[calc(var(--vh)-4rem)] overflow-y-auto pt-6 space-y-2">
7+
{%- block toc_before %}{%- endblock -%}
8+
<p class="font-medium">Page Contents</p>
9+
{{ toc }}
10+
{%- block toc_after %}{%- endblock -%}
11+
</div>
12+
</aside>
13+
{%- endif %}
14+
{%- endif %}

docs/conf.py

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
import sys
1717
from datetime import datetime
1818

19+
# make NodeGraphQt module available.
1920
base_path = os.path.abspath('.')
2021
root_path = os.path.split(base_path)[0]
2122
sys.path.insert(0, root_path)
2223

24+
# required for the theme template.
25+
sys.path.insert(0, os.path.abspath('_themes'))
26+
2327
import NodeGraphQt
2428

2529
# -- Project information -----------------------------------------------------
@@ -52,6 +56,8 @@
5256
'sphinx.ext.inheritance_diagram',
5357
'sphinx.ext.intersphinx',
5458
'sphinx.ext.napoleon',
59+
# theme template related
60+
'sphinxawesome_theme'
5561
]
5662

5763
intersphinx_mapping = {
@@ -90,7 +96,7 @@
9096
'''.format(release)
9197

9298
# Add any paths that contain templates here, relative to this directory.
93-
# templates_path = ['_templates']
99+
templates_path = ['_templates']
94100

95101
# The suffix(es) of source filenames.
96102
# You can specify multiple suffix as a list of string:
@@ -129,10 +135,6 @@
129135

130136
# The theme to use for HTML and HTML Help pages. See the documentation for
131137
# a list of builtin themes.
132-
#
133-
134-
sys.path.insert(0, os.path.abspath('_themes'))
135-
extensions += ['sphinxawesome_theme']
136138

137139
html_theme = 'sphinxawesome_theme'
138140
html_theme_path = ['_themes']
@@ -154,11 +156,14 @@
154156
html_theme_options = {
155157
# "logo_light": "_images/logo.png",
156158
# "logo_dark": "_images/logo.png"
157-
# # Add your theme options. For example:
158-
# 'show_breadcrumbs': True,
159-
# 'main_nav_links': {
160-
# 'About': '/about',
161-
# }
159+
'main_nav_links': {
160+
'Source': 'https://github.com/jchanvfx/NodeGraphQt',
161+
'Issues': 'https://github.com/jchanvfx/NodeGraphQt/issues',
162+
'Releases': 'https://github.com/jchanvfx/NodeGraphQt/releases',
163+
},
164+
'show_scrolltop': True,
165+
'show_prev_next': True,
166+
'awesome_external_links': True,
162167
}
163168

164169
# Add any paths that contain custom static files (such as style sheets) here,
@@ -189,19 +194,6 @@
189194
htmlhelp_basename = 'NodeGraphQTdoc'
190195

191196

192-
# -- Options for LaTeX output ------------------------------------------------
193-
194-
latex_elements = {}
195-
196-
# Grouping the document tree into LaTeX files. List of tuples
197-
# (source start file, target name, title,
198-
# author, documentclass [howto, manual, or own class]).
199-
latex_documents = [
200-
(master_doc, 'NodeGraphQT.tex', 'NodeGraphQt Documentation',
201-
author, 'manual'),
202-
]
203-
204-
205197
# -- Options for manual page output ------------------------------------------
206198

207199
# One entry per manual page. List of tuples

docs/custom_widgets.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:hide-rtoc:
2+
13
Built-in Widgets
24
################
35

docs/graph.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:hide-rtoc:
2+
13
Graphs
24
######
35

docs/host_apps/_index_apps.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Host Application Examples
77
.. toctree::
88
:name: appstoc
99
:maxdepth: 2
10+
:titlesonly:
1011

1112
ex_app_nuke
1213
ex_app_silhouette

docs/index.rst

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,42 @@ NodeGraphQt |version_str|
22
#########################
33

44
.. image:: _images/logo.png
5+
:align: center
56

67
NodeGraphQt a node graph UI framework written in python that can be implemented
78
and re-purposed into applications supporting PySide2.
89

910
.. image:: _images/screenshot.png
10-
:width: 95%
1111

12-
|
13-
| Source: https://github.com/jchanvfx/NodeGraphQt
14-
| Issue Tracker: https://github.com/jchanvfx/NodeGraphQt/issues
12+
Install
13+
*******
14+
15+
NodeGraphQt is available from the `The Python Package Index (PyPI) <https://pypi.org/project/NodeGraphQt/>`_ so
16+
you can install via ``pip``.
17+
18+
.. code-block::
19+
20+
pip install NodeGraphQt
21+
22+
or alternatively you can download the source `here <https://github.com/jchanvfx/NodeGraphQt/archive/refs/heads/main.zip>`_.
23+
24+
Getting Started
25+
***************
26+
27+
To get started see the `basic_example.py <https://github.com/jchanvfx/NodeGraphQt/blob/main/examples/basic_example.py>`_
28+
script or checkout the :ref:`General Overview` section.
1529

1630
----
1731

32+
| Source: https://github.com/jchanvfx/NodeGraphQt
33+
| Issues: https://github.com/jchanvfx/NodeGraphQt/issues
34+
1835
.. toctree::
36+
:hidden:
1937
:caption: API Reference
2038
:name: apitoc
2139
:maxdepth: 2
40+
:titlesonly:
2241

2342
constants
2443
graph
@@ -27,6 +46,7 @@ and re-purposed into applications supporting PySide2.
2746
menu
2847

2948
.. toctree::
49+
:hidden:
3050
:caption: Widgets
3151
:name: wdgtstoc
3252
:maxdepth: 1
@@ -35,6 +55,7 @@ and re-purposed into applications supporting PySide2.
3555
node_widgets
3656

3757
.. toctree::
58+
:hidden:
3859
:caption: Examples
3960
:name: exmplstoc
4061
:maxdepth: 1

docs/menu.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:hide-rtoc:
2+
13
Menus
24
#####
35

0 commit comments

Comments
 (0)