diff options
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | doc/_static/style.css | 3 | ||||
-rw-r--r-- | doc/_templates/layout.html | 4 | ||||
-rw-r--r-- | doc/conf.py | 5 |
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) |