|
16 | 16 | import sys |
17 | 17 | from datetime import datetime |
18 | 18 |
|
| 19 | +# make NodeGraphQt module available. |
19 | 20 | base_path = os.path.abspath('.') |
20 | 21 | root_path = os.path.split(base_path)[0] |
21 | 22 | sys.path.insert(0, root_path) |
22 | 23 |
|
| 24 | +# required for the theme template. |
| 25 | +sys.path.insert(0, os.path.abspath('_themes')) |
| 26 | + |
23 | 27 | import NodeGraphQt |
24 | 28 |
|
25 | 29 | # -- Project information ----------------------------------------------------- |
|
52 | 56 | 'sphinx.ext.inheritance_diagram', |
53 | 57 | 'sphinx.ext.intersphinx', |
54 | 58 | 'sphinx.ext.napoleon', |
| 59 | + # theme template related |
| 60 | + 'sphinxawesome_theme' |
55 | 61 | ] |
56 | 62 |
|
57 | 63 | intersphinx_mapping = { |
|
90 | 96 | '''.format(release) |
91 | 97 |
|
92 | 98 | # Add any paths that contain templates here, relative to this directory. |
93 | | -# templates_path = ['_templates'] |
| 99 | +templates_path = ['_templates'] |
94 | 100 |
|
95 | 101 | # The suffix(es) of source filenames. |
96 | 102 | # You can specify multiple suffix as a list of string: |
|
129 | 135 |
|
130 | 136 | # The theme to use for HTML and HTML Help pages. See the documentation for |
131 | 137 | # a list of builtin themes. |
132 | | -# |
133 | | - |
134 | | -sys.path.insert(0, os.path.abspath('_themes')) |
135 | | -extensions += ['sphinxawesome_theme'] |
136 | 138 |
|
137 | 139 | html_theme = 'sphinxawesome_theme' |
138 | 140 | html_theme_path = ['_themes'] |
|
154 | 156 | html_theme_options = { |
155 | 157 | # "logo_light": "_images/logo.png", |
156 | 158 | # "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, |
162 | 167 | } |
163 | 168 |
|
164 | 169 | # Add any paths that contain custom static files (such as style sheets) here, |
|
189 | 194 | htmlhelp_basename = 'NodeGraphQTdoc' |
190 | 195 |
|
191 | 196 |
|
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 | | - |
205 | 197 | # -- Options for manual page output ------------------------------------------ |
206 | 198 |
|
207 | 199 | # One entry per manual page. List of tuples |
|
0 commit comments