Skip to content

Commit 191e0fb

Browse files
committed
updated docs template
1 parent a5fdef5 commit 191e0fb

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.github/workflows/sphinx_doc_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# environment variables.
1111
SOURCE_BRANCH: main
12-
GH_PAGES_BRANCH: gh-pages
12+
PAGES_BRANCH: gh-pages
1313

1414
jobs:
1515
docs-build:
@@ -44,7 +44,7 @@ jobs:
4444
# Merge the "main" branch to the "gh-pages" branch.
4545
- name: Update "gh-pages" branch
4646
run: |
47-
git checkout $GH_PAGES_BRANCH
47+
git checkout $PAGES_BRANCH
4848
git merge origin/$SOURCE_BRANCH
4949
# Build the sphinx api documentation.
5050
- name: Run Sphinx Build
@@ -55,4 +55,4 @@ jobs:
5555
git ls-files --others --exclude-standard
5656
git add ./api
5757
git commit -m "github action: auto build api docs"
58-
git push origin $GH_PAGES_BRANCH
58+
git push origin $PAGES_BRANCH

docs/_images/favicon.png

-14.8 KB
Loading

docs/_images/logo.png

235 Bytes
Loading

docs/_templates/sidebar_toc.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<nav class="table w-full min-w-full my-6 lg:my-8">
2+
<code style="font-size: 0.65rem;">Release - v{{ release }}</code>
3+
{%- if theme_globaltoc_includehidden|tobool %}
4+
{{ toctree(titles_only=true, collapse=False, includehidden=true) }}
5+
{%- else %}
6+
{{ toctree(titles_only=true, collapse=False) }}
7+
{%- endif %}
8+
</nav>

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
# It should be a Windows-style icon file (.ico), which is 16x16 or 32x32
132132
# pixels large. Default: None.
133133
html_favicon = '_images/favicon.png'
134-
html_logo = '_images/favicon.png'
134+
html_logo = None
135135

136136
# The theme to use for HTML and HTML Help pages. See the documentation for
137137
# a list of builtin themes.
@@ -154,8 +154,8 @@
154154
# documentation.
155155
html_title = 'NodeGraphQt'
156156
html_theme_options = {
157-
# "logo_light": "_images/logo.png",
158-
# "logo_dark": "_images/logo.png"
157+
'logo_light': '_images/favicon.png',
158+
'logo_dark': '_images/favicon.png',
159159
'main_nav_links': {
160160
'Source': 'https://github.com/jchanvfx/NodeGraphQt',
161161
'Issues': 'https://github.com/jchanvfx/NodeGraphQt/issues',

0 commit comments

Comments
 (0)