diff --git a/conda/meta.yaml b/conda/meta.yaml
index 1467f96cf8b1bca8cedf6c3f05725bb840c74f4c..c6fcbf51ca9c50f54833122b0408681ba5ed16da 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -129,6 +129,9 @@ test:
     - coverage
     - sphinx
     - sphinx_rtd_theme
+    - sphinxcontrib-programoutput
+    - graphviz
+    - font-ttf-dejavu-sans-mono
 
 about:
   home: https://www.idiap.ch/software/bob/
diff --git a/doc/_static/style.css b/doc/_static/style.css
new file mode 100644
index 0000000000000000000000000000000000000000..b07bdb1b51a79acbb63d2a9b62860153ebf3741b
--- /dev/null
+++ b/doc/_static/style.css
@@ -0,0 +1,3 @@
+.wy-nav-content {
+    max-width: none;
+}
diff --git a/doc/_templates/config.rst b/doc/_templates/config.rst
new file mode 100644
index 0000000000000000000000000000000000000000..a287392f705f1c10adec86c2e2e5a1b0b1c9cb24
--- /dev/null
+++ b/doc/_templates/config.rst
@@ -0,0 +1,2 @@
+{% include "autosummary/module.rst" %}
+.. literalinclude:: ../../../../{{ fullname.replace(".", "/") }}.py
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e44f4a314727bea575cba269197f9a44584cf85
--- /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 %}