Commit 874909b5 authored by Maciej Delmanowski's avatar Maciej Delmanowski

[docs] Fix custom CSS support on ReadTheDocs

parent 0c03be32
/* Override table width restrictions */
/* Source: https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html */
/* Source: https://github.com/rtfd/sphinx_rtd_theme/issues/117 */
@media screen and (min-width: 767px) {
.wy-table-responsive table td {
......
......@@ -61,12 +61,18 @@ html_context = {
'source_file_to_url_map': edit_url.get_source_file_to_url_map(
start_dir=os.path.dirname(__file__),
skip_patterns=[]
),
'css_files': [
'_static/theme_overrides.css',
]
)
}
# Add custom .css and .js files from '_static/' directory in a way compatible
# with ReadTheDocs.org deployment
# Source: https://github.com/rtfd/sphinx_rtd_theme/issues/117
def setup(app):
# app.add_javascript("custom.js")
app.add_stylesheet("theme_overrides.css")
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment