From cd712237ed51f6034bdd11b6f6398eb75ebd32bb Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 17 May 2016 02:17:38 -0500
Subject: [PATCH] Switch doc theme

---
 doc/_static/akdoc.css      | 59 --------------------------------------
 doc/_templates/layout.html |  2 --
 doc/conf.py                | 35 +++++++++++-----------
 3 files changed, 16 insertions(+), 80 deletions(-)
 delete mode 100644 doc/_static/akdoc.css
 delete mode 100644 doc/_templates/layout.html

diff --git a/doc/_static/akdoc.css b/doc/_static/akdoc.css
deleted file mode 100644
index d8b61e3f..00000000
--- a/doc/_static/akdoc.css
+++ /dev/null
@@ -1,59 +0,0 @@
-pre {
-  line-height: 110%;
-}
-
-.footer {
-  background-color: #eee;
-}
-
-body > div.container {
-  margin-top:10px;
-}
-
-dd {
-  margin-left: 40px;
-}
-
-tt.descname {
-  font-size: 100%;
-}
-
-code {
-  color: rgb(51,51,51);
-}
-
-h1 {
-  padding-bottom:7px;
-  border-bottom: 1px solid #ccc;
-}
-
-h2 {
-  padding-bottom:5px;
-  border-bottom: 1px solid #ccc;
-}
-
-h3 {
-  padding-bottom:5px;
-  border-bottom: 1px solid #ccc;
-}
-
-.rubric {
-  font-size: 120%;
-  padding-bottom:1px;
-  border-bottom: 1px solid #ccc;
-}
-
-.headerlink {
-  padding-left: 1ex;
-  padding-right: 1ex;
-}
-
-a.headerlink:hover {
-  text-decoration: none;
-}
-
-blockquote p {
-  font-size: 100%;
-  font-weight: normal;
-  line-height: normal;
-};
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
deleted file mode 100644
index 400e7ec1..00000000
--- a/doc/_templates/layout.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% extends "!layout.html" %}
-{% set bootswatch_css_custom = ['_static/akdoc.css']%}
diff --git a/doc/conf.py b/doc/conf.py
index 090f7166..0a026adc 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -86,26 +86,23 @@ pygments_style = 'sphinx'
 # Options for HTML output
 # -----------------------
 
-try:
-    import sphinx_bootstrap_theme
-except:
-    from warnings import warn
-    warn("I would like to use the sphinx bootstrap theme, but can't find it.\n"
-            "'pip install sphinx_bootstrap_theme' to fix.")
-else:
-    # Activate the theme.
-    html_theme = 'bootstrap'
-    html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
-
-    # Theme options are theme-specific and customize the look and feel of a
-    # theme further.  For a list of options available for each theme, see the
-    # documentation.
-    html_theme_options = {
-            "navbar_fixed_top": "true",
-            "navbar_site_name": "Contents",
-            'bootstrap_version': '3',
-            'source_link_position': 'footer',
+html_theme = "alabaster"
+
+html_theme_options = {
+        "extra_nav_links": {
+            "🚀 Github": "https://github.com/pyopencl/pyopencl",
+            "💾 Download Releases": "https://pypi.python.org/pypi/pyopencl",
             }
+        }
+
+html_sidebars = {
+    '**': [
+        'about.html',
+        'navigation.html',
+        'relations.html',
+        'searchbox.html',
+    ]
+}
 
 # The style sheet to use for HTML and HTML Help pages. A file of that name
 # must exist either in Sphinx' static/ path, or in one of the custom paths
-- 
GitLab