diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-03-29 15:47:51 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-03-29 15:47:51 +0200 |
commit | ea00b982b55b868f4d32a5f237d47166233d8d58 (patch) | |
tree | 7fe7e6b732a2cbbd624798d249a81f23739188b5 /doc | |
parent | 79711a8110593c6166ee5bee6b87915490b3d874 (diff) | |
download | rumba-ea00b982b55b868f4d32a5f237d47166233d8d58.tar.gz rumba-ea00b982b55b868f4d32a5f237d47166233d8d58.zip |
doc: Change theme to Read the Docs
This changes the theme and uses a custom css to make sure the body is
spread for the entire width.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/_static/style.css | 3 | ||||
-rw-r--r-- | doc/_templates/layout.html | 4 | ||||
-rw-r--r-- | doc/conf.py | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/doc/_static/style.css b/doc/_static/style.css new file mode 100644 index 0000000..b07bdb1 --- /dev/null +++ b/doc/_static/style.css @@ -0,0 +1,3 @@ +.wy-nav-content { + max-width: none; +} diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html new file mode 100644 index 0000000..3e44f4a --- /dev/null +++ b/doc/_templates/layout.html @@ -0,0 +1,4 @@ +{% extends "!layout.html" %} +{% block extrahead %} + <link href="{{ pathto("_static/style.css", True) }}" rel="stylesheet" type="text/css"> +{% endblock %} diff --git a/doc/conf.py b/doc/conf.py index 988dbf7..4ae4ea4 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,6 +1,6 @@ from datetime import datetime -html_theme = "agogo" +html_theme = "sphinx_rtd_theme" extensions = [] project = 'Rumba' @@ -17,6 +17,9 @@ autodoc_default_flags = ['members'] autoclass_content = 'both' +html_static_path = ['_static'] +templates_path = ['_templates'] + _locals = {} with open('../rumba/_version.py') as fp: exec(fp.read(), None, _locals) |