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
8a4f3f48
Commit
8a4f3f48
authored
6 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix custom user docs stylesheet for Sphinx > 1.6
parent
c9f8ff74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/source/_templates/layout.html
+3
-0
3 additions, 0 deletions
docs/source/_templates/layout.html
docs/source/conf.py
+13
-2
13 additions, 2 deletions
docs/source/conf.py
with
16 additions
and
2 deletions
docs/source/_templates/layout.html
+
3
−
0
View file @
8a4f3f48
...
...
@@ -49,4 +49,7 @@
{%- endblock %}
{# Custom CSS overrides #}
<!-- Overriding style sheets changed in Sphinx >=1.6.1: https://github.com/ryan-roemer/sphinx-bootstrap-theme/blob/master/README.rst#adding-custom-css
Later versions of sphinx-theme-bootstrap-theme ignore this value but we keep it so that old versions still work
-->
{% set bootswatch_css_custom = ['_static/custom.css'] %}
This diff is collapsed.
Click to expand it.
docs/source/conf.py
+
13
−
2
View file @
8a4f3f48
...
...
@@ -5,6 +5,7 @@
import
sys
import
os
from
sphinx
import
__version__
as
sphinx_version
import
sphinx_bootstrap_theme
# checked at cmake time
import
mantid
from
mantid
import
ConfigService
...
...
@@ -16,6 +17,13 @@ sys.path.insert(0, os.path.abspath(os.path.join('..', 'sphinxext')))
# -- General configuration ------------------------------------------------
if
sphinx_version
>
"
1.6
"
:
def
setup
(
app
):
"""
Called automatically by Sphinx when starting the build process
"""
app
.
add_stylesheet
(
"
custom.css
"
)
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
...
...
@@ -139,9 +147,12 @@ html_static_path = ['_static']
# directly to the root of the documentation.
#html_extra_path = []
# If true, Smart
yPant
s will be used to convert quotes and dashes to
# If true, Smart
Quote
s will be used to convert quotes and dashes to
# typographically correct entities.
html_use_smartypants
=
True
if
sphinx_version
<
"
1.7
"
:
html_use_smartypants
=
True
else
:
smartquotes
=
True
# Hide the Sphinx usage as we reference it on github instead.
html_show_sphinx
=
False
...
...
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