aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-03-29 15:47:51 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-03-29 15:47:51 +0200
commitea00b982b55b868f4d32a5f237d47166233d8d58 (patch)
tree7fe7e6b732a2cbbd624798d249a81f23739188b5
parent79711a8110593c6166ee5bee6b87915490b3d874 (diff)
downloadrumba-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.
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--doc/_static/style.css3
-rw-r--r--doc/_templates/layout.html4
-rw-r--r--doc/conf.py5
4 files changed, 12 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 746475a..313ad89 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ irati-test:
pages:
stage: deploy
script:
- - pip install sphinx
+ - pip install sphinx sphinx_rtd_theme
- sphinx-build doc/ public/
artifacts:
paths:
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)