From ea00b982b55b868f4d32a5f237d47166233d8d58 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 29 Mar 2018 15:47:51 +0200 Subject: 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. --- .gitlab-ci.yml | 2 +- doc/_static/style.css | 3 +++ doc/_templates/layout.html | 4 ++++ doc/conf.py | 5 ++++- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 doc/_static/style.css create mode 100644 doc/_templates/layout.html 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 %} + +{% 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) -- cgit v1.2.3