Skip to content

Commit 72f898b

Browse files
committed
Update docs/conf.py
Sphinx was just configured to wrongly use versioneer; reference the module version directly. Signed-off-by: liamhuber <liamhuber@greyhavensolutions.com>
1 parent 6bbc13c commit 72f898b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/conf.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import subprocess
1919
from sphinx.ext.apidoc import main
2020

21+
import pyiron_workflow
22+
2123
# If extensions (or modules to document with autodoc) are in another directory,
2224
# add these directories to sys.path here. If the directory is relative to the
2325
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -48,6 +50,10 @@
4850
# Add any paths that contain templates here, relative to this directory.
4951
templates_path = ['_templates']
5052

53+
nbsphinx_thumbnails = {
54+
'source/notebooks/example': "_static/pyiron-logo-dark.png",
55+
}
56+
5157
# The suffix of source filenames.
5258
source_suffix = {
5359
'.rst': 'restructuredtext',
@@ -62,22 +68,16 @@
6268

6369
# General information about the project.
6470
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 ' \
6672
u'All rights reserved'
6773

6874
# The version info for the project you're documenting, acts as replacement for
6975
# |version| and |release|, also used in various other places throughout the
7076
# built documents.
7177
#
7278
# 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])
8181
# The full version, including alpha/beta/rc tags.
8282
release = version_full
8383

@@ -240,7 +240,7 @@
240240
# author, documentclass [howto, manual, or own class]).
241241
latex_documents = [
242242
('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'),
244244
]
245245

246246
# The name of an image file (relative to this directory) to place at the top of
@@ -272,7 +272,7 @@
272272
('index',
273273
'pyiron_workflow',
274274
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)
276276
]
277277

278278
# If true, show URL addresses after external links.
@@ -288,7 +288,7 @@
288288
('index',
289289
'pyiron_workflow',
290290
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',
292292
'pyiron_workflow',
293293
'Graph-based workflow management.',
294294
'Miscellaneous'),

0 commit comments

Comments
 (0)