|
18 | 18 | import subprocess |
19 | 19 | from sphinx.ext.apidoc import main |
20 | 20 |
|
| 21 | +import pyiron_workflow |
| 22 | + |
21 | 23 | # If extensions (or modules to document with autodoc) are in another directory, |
22 | 24 | # add these directories to sys.path here. If the directory is relative to the |
23 | 25 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
48 | 50 | # Add any paths that contain templates here, relative to this directory. |
49 | 51 | templates_path = ['_templates'] |
50 | 52 |
|
| 53 | +nbsphinx_thumbnails = { |
| 54 | + 'source/notebooks/example': "_static/pyiron-logo-dark.png", |
| 55 | +} |
| 56 | + |
51 | 57 | # The suffix of source filenames. |
52 | 58 | source_suffix = { |
53 | 59 | '.rst': 'restructuredtext', |
|
62 | 68 |
|
63 | 69 | # General information about the project. |
64 | 70 | project = u'pyiron_workflow' |
65 | | -copyright = u'2021, Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department ' \ |
| 71 | +copyright = u'2024, Max-Planck-Institut für Nachhaltige Materialien GmbH - Computational Materials Design (CM) Department ' \ |
66 | 72 | u'All rights reserved' |
67 | 73 |
|
68 | 74 | # The version info for the project you're documenting, acts as replacement for |
69 | 75 | # |version| and |release|, also used in various other places throughout the |
70 | 76 | # built documents. |
71 | 77 | # |
72 | 78 | # The short X.Y version. |
73 | | -version_full = subprocess.check_output( |
74 | | - "python -c 'import versioneer; print(versioneer.get_version())'", |
75 | | - cwd=os.path.join(os.path.curdir, '..'), |
76 | | - universal_newlines=True, |
77 | | - shell=True |
78 | | -) |
79 | | -version_full = version_full.split('\n')[0] |
80 | | -version = '.'.join(version_full.split('.')[0:2]) |
| 79 | +version_full = pyiron_workflow.__version__ |
| 80 | +version = '.'.join(version_full.split('.')[:2]) |
81 | 81 | # The full version, including alpha/beta/rc tags. |
82 | 82 | release = version_full |
83 | 83 |
|
|
240 | 240 | # author, documentclass [howto, manual, or own class]). |
241 | 241 | latex_documents = [ |
242 | 242 | ('index', 'pyiron_workflow.tex', u'pyiron_workflow Documentation', |
243 | | - u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department', 'manual'), |
| 243 | + u'Max-Planck-Institut für Nachhaltige Materialien GmbH - Computational Materials Design (CM) Department', 'manual'), |
244 | 244 | ] |
245 | 245 |
|
246 | 246 | # The name of an image file (relative to this directory) to place at the top of |
|
272 | 272 | ('index', |
273 | 273 | 'pyiron_workflow', |
274 | 274 | u'pyiron_workflow Documentation', |
275 | | - [u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department'], 1) |
| 275 | + [u'Max-Planck-Institut für Nachhaltige Materialien GmbH - Computational Materials Design (CM) Department'], 1) |
276 | 276 | ] |
277 | 277 |
|
278 | 278 | # If true, show URL addresses after external links. |
|
288 | 288 | ('index', |
289 | 289 | 'pyiron_workflow', |
290 | 290 | u'pyiron_workflow Documentation', |
291 | | - u'Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department', |
| 291 | + u'Max-Planck-Institut für Nachhaltige Materialien GmbH - Computational Materials Design (CM) Department', |
292 | 292 | 'pyiron_workflow', |
293 | 293 | 'Graph-based workflow management.', |
294 | 294 | 'Miscellaneous'), |
|
0 commit comments