Trying to fix the stylesheet on RTD again
This commit is contained in:
parent
8bef18c2a8
commit
619548d8e3
1 changed files with 6 additions and 8 deletions
14
docs/conf.py
14
docs/conf.py
|
|
@ -103,9 +103,9 @@ pygments_style = 'sphinx'
|
|||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
|
||||
if not on_rtd: # only import and set the theme if we're building docs locally
|
||||
import sphinx_rtd_theme
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
import sphinx_rtd_theme
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
|
|
@ -139,11 +139,9 @@ if not on_rtd: # only import and set the theme if we're building docs locally
|
|||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
html_context = {
|
||||
'css_files': [
|
||||
'_static/theme_overrides.css', # overrides for wide tables in RTD theme
|
||||
],
|
||||
}
|
||||
|
||||
def setup(app):
|
||||
app.add_stylesheet("theme_overrides.css")
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
|
|
|
|||
Loading…
Reference in a new issue