doc: move css overrides to template

Hopefully this should fix small fonts when docs are published on RDT.org.
This commit is contained in:
David Lechner
2020-03-18 13:51:24 -05:00
parent aa343d017f
commit e4d1547f83
2 changed files with 4 additions and 10 deletions
+4
View File
@@ -0,0 +1,4 @@
{% extends "!layout.html" %}
{% block extrahead %}
<link rel="stylesheet" href="{{ pathto("_static/css/theme_overrides.css", True) }}" type="text/css">
{% endblock %}
-10
View File
@@ -132,12 +132,6 @@ add_module_names = False # Hide module name
if ON_RTD:
html_theme = 'default'
html_context = {
'css_files': [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/contentui.css',
'_static/css/theme_overrides.css',
],
'disclaimer': _DISCLAIMER,
}
else:
@@ -145,10 +139,6 @@ else:
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_context = {
'css_files': [
'_static/contentui.css',
'_static/css/theme_overrides.css',
],
'disclaimer': _DISCLAIMER,
}