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
e744125d
Commit
e744125d
authored
10 years ago
by
Owen Arnold
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/feature/9595_global_doctest_cleanup'
parents
b769a676
2be07a8e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/docs/source/conf.py
+17
-0
17 additions, 0 deletions
Code/Mantid/docs/source/conf.py
with
17 additions
and
0 deletions
Code/Mantid/docs/source/conf.py
+
17
−
0
View file @
e744125d
...
...
@@ -17,6 +17,8 @@ sys.path.insert(0, os.path.abspath('../sphinxext'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions
=
[
# we use pngmath over mathjax so that the the offline help isn't reliant on
# anything external and we don't need to include the large mathjax package
'
sphinx.ext.pngmath
'
,
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.intersphinx
'
,
...
...
@@ -56,6 +58,21 @@ doctest_global_setup = """
from mantid.simpleapi import *
"""
# Run this after each test group has executed
doctest_global_cleanup
=
"""
from mantid.api import FrameworkManager
FrameworkManager.Instance().clear()
"""
# -- Options for pngmath --------------------------------------------------
# Load the preview package into latex
pngmath_latex_preamble
=
r
'
\usepackage[active]{preview}
'
# Ensures that the vertical alignment of equations is correct.
# See http://sphinx-doc.org/ext/math.html#confval-pngmath_use_preview
pngmath_use_preview
=
True
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
...
...
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