File tree 6 files changed +15
-10
lines changed
6 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ docs/build
9
9
# _static
10
10
# _templates
11
11
# docs/
12
+ ogs5py /_version.py
Original file line number Diff line number Diff line change 21
21
# pip install sphinx_rtd_theme
22
22
# is needed in order to build the documentation
23
23
import datetime
24
- import os
25
- import sys
26
-
27
- sys .path .insert (0 , os .path .abspath ("../../" ))
28
24
from ogs5py import __version__ as ver
29
25
30
26
@@ -173,7 +169,9 @@ def setup(app):
173
169
174
170
# Output file base name for HTML help builder.
175
171
htmlhelp_basename = "ogs5pydoc"
176
-
172
+ # logos for the page
173
+ html_logo = "pics/OGS_150.png"
174
+ html_favicon = "pics/OGS.ico"
177
175
178
176
# -- Options for LaTeX output ---------------------------------------------
179
177
# latex_engine = 'lualatex'
Original file line number Diff line number Diff line change 125
125
PCS_TYP
126
126
PRIM_VAR_BY_PCS
127
127
"""
128
- from ogs5py ._version import __version__
129
128
from ogs5py .ogs import OGS
130
129
from ogs5py .fileclasses import (
131
130
ASC ,
173
172
)
174
173
from ogs5py .tools .vtk_viewer import show_vtk
175
174
175
+ try :
176
+ from ogs5py ._version import __version__
177
+ except ImportError : # pragma: nocover
178
+ # package is not installed
179
+ __version__ = "0.0.0.dev0"
180
+
176
181
# indentation of subkeywords
177
182
SUB_IND = " "
178
183
"""str: Indentation of subkeys."""
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 31
31
is_skey ,
32
32
find_key_in_list ,
33
33
)
34
- from ogs5py ._version import __version__ as version
34
+ try :
35
+ from ogs5py ._version import __version__ as version
36
+ except ImportError : # pragma: nocover
37
+ # package is not installed
38
+ version = "0.0.0.dev0"
35
39
36
40
# current working directory
37
41
CWD = os .getcwd ()
You can’t perform that action at this time.
0 commit comments