Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c92765af
Commit
c92765af
authored
10 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fill in the version string in the Sphinx config
Refs #9624
parent
f080956d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/docs/source/conf.py
+9
-2
9 additions, 2 deletions
Code/Mantid/docs/source/conf.py
with
9 additions
and
2 deletions
Code/Mantid/docs/source/conf.py
+
9
−
2
View file @
c92765af
...
...
@@ -6,6 +6,12 @@ import sys
import
os
import
sphinx_bootstrap_theme
# mantid must be importable
try
:
import
mantid
except
ImportError
:
sys
.
exit
(
"
Cannot import mantid module. Check Python path.
"
)
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
...
...
@@ -55,10 +61,11 @@ copyright = u'2014, Mantid'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
version_str
=
mantid
.
__version__
# The short X.Y version.
version
=
'
0.01
'
version
=
"
.
"
.
join
(
version_str
.
split
(
"
.
"
)[:
2
])
# The full version, including alpha/beta/rc tags.
release
=
'
0.01
'
release
=
version_str
# The name of the Pygments (syntax highlighting) style to use.
pygments_style
=
'
sphinx
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment