From 6702e7412828729c7a5df776d014f25deabf2274 Mon Sep 17 00:00:00 2001
From: bnewbold
Date: Wed, 27 Aug 2014 23:12:09 -0400
Subject: docs: initial rambutan theme
Still needs bundled fonts and polish.
---
docs/source/_better_theme/__init__.py | 3 +
docs/source/_better_theme/layout.html | 95 +++++
docs/source/_better_theme/relbar.html | 52 +++
docs/source/_better_theme/searchbox.html | 11 +
docs/source/_better_theme/static/better.css_t | 324 +++++++++++++++
.../source/_better_theme/static/better_basic.css_t | 455 +++++++++++++++++++++
docs/source/_better_theme/theme.conf | 28 ++
docs/source/_static/img/round_logo_32x32.ico | Bin 4286 -> 0 bytes
docs/source/_static/img/round_logo_60x60.png | Bin 5552 -> 0 bytes
docs/source/_static/leaflabs-docs.css | 1 -
docs/source/_static/rambutan-docs.css | 132 ++++++
docs/source/_templates/indexcontent.html | 6 +-
docs/source/_templates/layout.html | 11 -
docs/source/conf.py | 35 +-
14 files changed, 1113 insertions(+), 40 deletions(-)
create mode 100644 docs/source/_better_theme/__init__.py
create mode 100644 docs/source/_better_theme/layout.html
create mode 100644 docs/source/_better_theme/relbar.html
create mode 100644 docs/source/_better_theme/searchbox.html
create mode 100644 docs/source/_better_theme/static/better.css_t
create mode 100644 docs/source/_better_theme/static/better_basic.css_t
create mode 100644 docs/source/_better_theme/theme.conf
delete mode 100644 docs/source/_static/img/round_logo_32x32.ico
delete mode 100644 docs/source/_static/img/round_logo_60x60.png
delete mode 100644 docs/source/_static/leaflabs-docs.css
create mode 100644 docs/source/_static/rambutan-docs.css
delete mode 100644 docs/source/_templates/layout.html
(limited to 'docs/source')
diff --git a/docs/source/_better_theme/__init__.py b/docs/source/_better_theme/__init__.py
new file mode 100644
index 0000000..010d4ac
--- /dev/null
+++ b/docs/source/_better_theme/__init__.py
@@ -0,0 +1,3 @@
+import os
+better_theme_path = os.path.split(os.path.dirname(__file__))[0]
+__version__ = '0.1.5'
diff --git a/docs/source/_better_theme/layout.html b/docs/source/_better_theme/layout.html
new file mode 100644
index 0000000..31c6675
--- /dev/null
+++ b/docs/source/_better_theme/layout.html
@@ -0,0 +1,95 @@
+{%- extends "basic/layout.html" %}
+{%- from "relbar.html" import relbar_top with context %}
+{%- from "relbar.html" import relbar_bottom with context %}
+
+{#- ### head ### -#}
+
+{%- block extrahead %}
+
+ {#- make mobile reasonable #}
+
+
+ {%- for css_file in theme_cssfiles %}
+ {%- if css_file.startswith('http') %}
+
+ {%- else %}
+
+ {%- endif %}
+ {%- endfor %}
+
+ {%- for js_file in theme_scriptfiles %}
+
+ {%- endfor %}
+
+ {%- if theme_inlinecss %}
+
+ {%- endif %}
+
+ {%- block userhead %}
+ {%- endblock %}
+{%- endblock %}
+
+{#- ### content ### -#}
+
+{%- block header %}
+ {%- if theme_showheader|tobool %}
+
+ {%- endif %}
+{%- endblock %}
+
+{%- block relbar1 -%}{{ relbar_top() }}{%- endblock -%}
+{%- block relbar2 -%}{{ relbar_bottom() }}{%- endblock -%}
+
+{%- block footer %}
+
+
+ {% if theme_ga_ua %}
+
+ {% endif %}
+{%- endblock %}
diff --git a/docs/source/_better_theme/relbar.html b/docs/source/_better_theme/relbar.html
new file mode 100644
index 0000000..6dc8b46
--- /dev/null
+++ b/docs/source/_better_theme/relbar.html
@@ -0,0 +1,52 @@
+{%- macro rellink_markup() %}
+
+
+
+{%- endmacro %}
+
+{%- macro breadcrumbs_markup() %}
+
+
+ {%- block rootrellink %}
+ {{ shorttitle|e }}
+ {%- endblock %}
+ {%- for parent in parents %}
+
+ {{ parent.title }}
+
+ {%- endfor %}
+ {%- block relbaritems %} {% endblock %}
+
+
+{%- endmacro %}
+
+{%- macro relbar_top() %}
+ {%- if theme_showrelbartop|tobool %}
+
+ {{- rellink_markup () }}
+ {{- breadcrumbs_markup() }}
+
+ {%- endif %}
+{%- endmacro %}
+
+{%- macro relbar_bottom() %}
+ {%- if theme_showrelbarbottom|tobool %}
+
+ {{- rellink_markup () }}
+ {{- breadcrumbs_markup() }}
+
+ {%- endif %}
+{%- endmacro %}
diff --git a/docs/source/_better_theme/searchbox.html b/docs/source/_better_theme/searchbox.html
new file mode 100644
index 0000000..f761ce8
--- /dev/null
+++ b/docs/source/_better_theme/searchbox.html
@@ -0,0 +1,11 @@
+{%- if pagename != "search" %}
+
+
+{%- endif %}
diff --git a/docs/source/_better_theme/static/better.css_t b/docs/source/_better_theme/static/better.css_t
new file mode 100644
index 0000000..a697182
--- /dev/null
+++ b/docs/source/_better_theme/static/better.css_t
@@ -0,0 +1,324 @@
+@import url("better_basic.css");
+
+{% set theme_headtextcolor = theme_headtextcolor or theme_textcolor %}
+{% set theme_footertextcolor = theme_footertextcolor or theme_textcolor %}
+
+/* main styles */
+
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: 100%;
+ color: {{ theme_textcolor }};
+ margin: 0;
+ padding: 0;
+ line-height: 135%;
+}
+
+a {
+ color: #008;
+ text-decoration: none;
+}
+
+a:visited {
+ color: #208;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a.toc-backref {
+ color: {{ theme_headtextcolor }};
+}
+
+p {
+ margin: 1rem 0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ margin-top: 1em;
+ margin-bottom: 0.5em;
+ color: {{ theme_headtextcolor }};
+ line-height: 135%;
+}
+
+.body .section:first-child > :first-child,
+.sphinxsidebarwrapper > :first-child,
+.sphinxsidebar .search:first-child
+{
+ margin-top: 1rem;
+}
+
+h1 { font-size: 1.5rem; font-weight: bold; }
+h2 { font-size: 1.5rem; font-weight: normal; }
+h3 { font-size: 1.25rem; font-weight: bold; }
+h4 { font-size: 1.25rem; font-weight: normal; }
+h5 { font-size: 1rem; font-weight: bold; }
+h6 { font-size: 1rem; font-weight: normal; }
+
+/* page-level layout of containers */
+
+header#pageheader, footer#pagefooter, .related, .document {
+ width: 100%;
+ max-width: 60rem;
+ margin: auto;
+}
+
+.documentwrapper {
+ float: left;
+ width: 100%;
+}
+
+.bodywrapper {
+ {% if theme_rightsidebar|tobool -%}
+ margin: 0 {{ theme_sidebarwidth }} 0 0;
+ {%- else -%}
+ margin: 0 0 0 {{ theme_sidebarwidth }};
+ {%- endif %}
+}
+
+footer#pagefooter, footer#pagefooter a {
+ color: {{ theme_footertextcolor }};
+}
+
+
+footer#pagefooter {
+ padding-top: 2rem;
+ padding-bottom: 2rem;
+ text-align: center;
+}
+
+footer#pagefooter a {
+ text-decoration: underline;
+}
+
+/* header styles */
+
+body > header h1 a, body > header h1 a:visited {
+ color: {{ theme_headtextcolor }};
+}
+
+a.headerlink {
+ font-size: 0.8em;
+ padding: 0 4px 0 4px;
+ text-decoration: none;
+}
+
+/* code styles */
+
+pre, tt {
+ background-color: #eee;
+ color: #333;
+}
+
+pre {
+ font-family: Monaco, Consolas, "Lucida Console", monospace;
+ margin: 1rem -5px;
+ padding: 5px;
+ border-left: none;
+ border-right: none;
+ font-size: 0.8rem;
+ line-height: 1rem;
+}
+
+tt {
+ padding: 0 1px 0 1px;
+ font-family: Consolas, Monaco, monospace;
+}
+
+/* API doc styles */
+
+dl.function,
+dl.class,
+dl.method,
+dl.attribute,
+dl.data,
+dl.classmethod {
+ margin-bottom: 2rem;
+}
+
+/* relbar */
+
+.related {
+ line-height: 30px;
+ width: 100%;
+ font-size: 0.9rem;
+}
+
+.related.top {
+ border-bottom: 1px solid #aaa;
+}
+
+.related.bottom {
+ border-top: 1px solid #aaa;
+}
+
+.related ul {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+}
+
+.related li {
+ display: inline;
+}
+
+nav#rellinks {
+ float: right;
+}
+
+nav#rellinks li+li:before {
+ content: "|";
+}
+
+nav#breadcrumbs li+li:before {
+ content: "\00BB";
+}
+
+/* sidebar */
+
+.sphinxsidebarwrapper {
+ padding: 0 1rem 0 0;
+}
+
+.sphinxsidebar {
+ width: {{ theme_sidebarwidth }};
+ margin-left: -100%;
+ font-size: 0.9rem;
+ {%- if theme_rightsidebar|tobool %}
+ float: right;
+ {%- else %}
+ float: left;
+ {%- endif %}
+}
+
+.sphinxsidebar h3 a {
+ color: {{ theme_headtextcolor }};
+}
+
+.sphinxsidebar p.topless {
+ margin: 5px 10px 10px 10px;
+}
+
+.sphinxsidebar ul {
+ margin: 0;
+ padding: 0;
+ margin-bottom: 1rem;
+ list-style: none;
+}
+
+.sphinxsidebar ul ul,
+.sphinxsidebar ul.want-points {
+ margin-left: 20px;
+ list-style: square;
+}
+
+.sphinxsidebar ul ul {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+.sphinxsidebar input {
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ height: 1.5rem;
+ font-size: 0.9rem;
+ margin: 0;
+
+ background-color: white;
+ border: 1px solid #ccc;
+ color: #555;
+}
+
+.sphinxsidebar .search {
+ margin-top: 2rem;
+}
+
+.sphinxsidebar .search input[type=text] {
+ {#- width: calc({{ theme_sidebarwidth }} - 5rem); #}
+ {#- width: -webkit-calc({{ theme_sidebarwidth }} - 5rem); #}
+ width: 90%;
+ display: inline-block;
+}
+
+.sphinxsidebar .search input[type=submit] {
+ width: 4rem;
+ display: inline-block;
+}
+
+/* paragraph-level markup */
+
+.admonition p.admonition-title + p {
+ display: inline;
+}
+
+.admonition p {
+ margin-bottom: 5px;
+}
+
+.admonition pre {
+ margin-bottom: 5px;
+}
+
+.admonition ul, .admonition ol {
+ margin-bottom: 5px;
+}
+
+p.admonition-title {
+ display: inline;
+ margin-right: 0;
+}
+
+p.admonition-title:after {
+ content: ":";
+}
+
+.note {
+ background-color: #eee;
+ border: 1px solid #ccc;
+}
+
+.seealso {
+ background-color: #ffc;
+ border: 1px solid #ff6;
+}
+
+.topic {
+ background-color: #eee;
+}
+
+.warning {
+ background-color: #ffe4e4;
+ border: 1px solid #f66;
+}
+
+.warning tt {
+ background: #efc2c2;
+}
+
+.note tt {
+ background: #d6d6d6;
+}
+
+.viewcode-block:target {
+ background-color: #f4debf;
+ border-top: 1px solid #ac9;
+ border-bottom: 1px solid #ac9;
+}
+
+/* responsive styles */
+
+@media (max-width: 820px) {
+ /* kill the sidebar */
+ .bodywrapper { margin: 0; }
+ .sphinxsidebar {
+ display: none;
+ }
+ header#pageheader, footer#pagefooter, .related, .document {
+ margin: 0 1rem;
+ width: calc(100% - 2rem);
+ width: -webkit-calc(100% - 2rem);
+ }
+}
diff --git a/docs/source/_better_theme/static/better_basic.css_t b/docs/source/_better_theme/static/better_basic.css_t
new file mode 100644
index 0000000..e06e6e9
--- /dev/null
+++ b/docs/source/_better_theme/static/better_basic.css_t
@@ -0,0 +1,455 @@
+/* basic.css_t from Sphinx project modified for sphinx-better-theme */
+
+/* -- main layout ----------------------------------------------------------- */
+
+div.clearer {
+ clear: both;
+}
+
+/* -- search page ----------------------------------------------------------- */
+
+ul.search {
+ margin: 10px 0 0 20px;
+ padding: 0;
+}
+
+ul.search li {
+ padding: 5px 0 5px 20px;
+ background-image: url(file.png);
+ background-repeat: no-repeat;
+ background-position: 0 7px;
+}
+
+ul.search li a {
+ font-weight: bold;
+}
+
+ul.search li div.context {
+ color: #888;
+ margin: 2px 0 0 30px;
+ text-align: left;
+}
+
+ul.keywordmatches li.goodmatch a {
+ font-weight: bold;
+}
+
+/* -- index page ------------------------------------------------------------ */
+
+table.contentstable {
+ width: 90%;
+}
+
+table.contentstable p.biglink {
+ line-height: 150%;
+}
+
+a.biglink {
+ font-size: 1.3em;
+}
+
+span.linkdescr {
+ font-style: italic;
+ padding-top: 5px;
+ font-size: 90%;
+}
+
+/* -- general index --------------------------------------------------------- */
+
+table.indextable {
+ width: 100%;
+}
+
+table.indextable td {
+ text-align: left;
+ vertical-align: top;
+}
+
+table.indextable dl, table.indextable dd {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+table.indextable tr.pcap {
+ height: 10px;
+}
+
+table.indextable tr.cap {
+ margin-top: 10px;
+ background-color: #f2f2f2;
+}
+
+img.toggler {
+ margin-right: 3px;
+ margin-top: 3px;
+ cursor: pointer;
+}
+
+div.modindex-jumpbox {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ margin: 1em 0 1em 0;
+ padding: 0.4em;
+}
+
+div.genindex-jumpbox {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ margin: 1em 0 1em 0;
+ padding: 0.4em;
+}
+
+/* -- general body styles --------------------------------------------------- */
+
+a.headerlink {
+ visibility: hidden;
+}
+
+h1:hover > a.headerlink,
+h2:hover > a.headerlink,
+h3:hover > a.headerlink,
+h4:hover > a.headerlink,
+h5:hover > a.headerlink,
+h6:hover > a.headerlink,
+dt:hover > a.headerlink {
+ visibility: visible;
+}
+
+div.body p.caption {
+ text-align: inherit;
+}
+
+div.body td {
+ text-align: left;
+}
+
+.field-list ul {
+ padding-left: 1em;
+}
+
+.first {
+ margin-top: 0 !important;
+}
+
+p.rubric {
+ margin-top: 30px;
+ font-weight: bold;
+}
+
+img.align-left, .figure.align-left, object.align-left {
+ clear: left;
+ float: left;
+ margin-right: 1em;
+}
+
+img.align-right, .figure.align-right, object.align-right {
+ clear: right;
+ float: right;
+ margin-left: 1em;
+}
+
+img.align-center, .figure.align-center, object.align-center {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-center {
+ text-align: center;
+}
+
+.align-right {
+ text-align: right;
+}
+
+/* -- sidebars -------------------------------------------------------------- */
+
+div.sidebar {
+ margin: 0 0 0.5em 1em;
+ border: 1px solid #ddb;
+ padding: 7px 7px 0 7px;
+ background-color: #ffe;
+ width: 40%;
+ float: right;
+}
+
+p.sidebar-title {
+ font-weight: bold;
+}
+
+/* -- topics ---------------------------------------------------------------- */
+
+div.topic {
+ border: 1px solid #ccc;
+ padding: 7px 7px 0 7px;
+ margin: 10px 0 10px 0;
+}
+
+p.topic-title {
+ font-size: 1.1em;
+ font-weight: bold;
+ margin-top: 10px;
+}
+
+/* -- admonitions ----------------------------------------------------------- */
+
+div.admonition {
+ margin-top: 10px;
+ margin-bottom: 10px;
+ padding: 7px;
+}
+
+div.admonition dt {
+ font-weight: bold;
+}
+
+div.admonition dl {
+ margin-bottom: 0;
+}
+
+p.admonition-title {
+ margin: 0px 10px 5px 0px;
+ font-weight: bold;
+}
+
+div.body p.centered {
+ text-align: center;
+ margin-top: 25px;
+}
+
+/* -- tables ---------------------------------------------------------------- */
+
+table.docutils {
+ border: 0;
+ border-collapse: collapse;
+}
+
+table.docutils td, table.docutils th {
+ padding: 1px 8px 1px 5px;
+ border-top: 0;
+ border-left: 0;
+ border-right: 0;
+ border-bottom: 1px solid #aaa;
+}
+
+table.field-list td, table.field-list th {
+ border: 0 !important;
+}
+
+table.footnote td, table.footnote th {
+ border: 0 !important;
+}
+
+th {
+ text-align: left;
+ padding-right: 5px;
+}
+
+table.citation {
+ border-left: solid 1px gray;
+ margin-left: 1px;
+}
+
+table.citation td {
+ border-bottom: none;
+}
+
+/* -- other body styles ----------------------------------------------------- */
+
+ol.arabic {
+ list-style: decimal;
+}
+
+ol.loweralpha {
+ list-style: lower-alpha;
+}
+
+ol.upperalpha {
+ list-style: upper-alpha;
+}
+
+ol.lowerroman {
+ list-style: lower-roman;
+}
+
+ol.upperroman {
+ list-style: upper-roman;
+}
+
+dl {
+ margin-bottom: 15px;
+}
+
+dd p {
+ margin-top: 0px;
+}
+
+dd ul, dd table {
+ margin-bottom: 10px;
+}
+
+dd {
+ margin-top: 3px;
+ margin-bottom: 10px;
+ margin-left: 30px;
+}
+
+dt:target, .highlighted {
+ background-color: #fbe54e;
+}
+
+dl.glossary dt {
+ font-weight: bold;
+ font-size: 1.1em;
+}
+
+.field-list ul {
+ margin: 0;
+ padding-left: 1em;
+}
+
+.field-list p {
+ margin: 0;
+}
+
+.refcount {
+ color: #060;
+}
+
+.optional {
+ font-size: 1.3em;
+}
+
+.versionmodified {
+ font-style: italic;
+}
+
+.system-message {
+ background-color: #fda;
+ padding: 5px;
+ border: 3px solid red;
+}
+
+.footnote:target {
+ background-color: #ffa;
+}
+
+.line-block {
+ display: block;
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+.line-block .line-block {
+ margin-top: 0;
+ margin-bottom: 0;
+ margin-left: 1.5em;
+}
+
+.guilabel, .menuselection {
+ font-family: sans-serif;
+}
+
+.accelerator {
+ text-decoration: underline;
+}
+
+.classifier {
+ font-style: oblique;
+}
+
+abbr, acronym {
+ border-bottom: dotted 1px;
+ cursor: help;
+}
+
+/* -- code displays --------------------------------------------------------- */
+
+pre {
+ overflow: auto;
+ overflow-y: hidden; /* fixes display issues on Chrome browsers */
+}
+
+td.linenos pre {
+ padding: 5px 0px;
+ border: 0;
+ background-color: transparent;
+ color: #aaa;
+}
+
+table.highlighttable {
+ margin-left: 0.5em;
+}
+
+table.highlighttable td {
+ padding: 0 0.5em 0 0.5em;
+}
+
+tt.descname {
+ background-color: transparent;
+ font-weight: bold;
+ font-size: 1.2em;
+}
+
+tt.descclassname {
+ background-color: transparent;
+}
+
+tt.xref, a tt {
+ background-color: transparent;
+ font-weight: bold;
+}
+
+h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
+ background-color: transparent;
+}
+
+.viewcode-link {
+ float: right;
+}
+
+.viewcode-back {
+ float: right;
+ font-family: sans-serif;
+}
+
+div.viewcode-block:target {
+ margin: -1px -10px;
+ padding: 0 10px;
+}
+
+/* -- math display ---------------------------------------------------------- */
+
+img.math {
+ vertical-align: middle;
+}
+
+div.body div.math p {
+ text-align: center;
+}
+
+span.eqno {
+ float: right;
+}
+
+/* -- printout stylesheet --------------------------------------------------- */
+
+@media print {
+ div.document,
+ div.documentwrapper,
+ div.bodywrapper {
+ margin: 0 !important;
+ width: 100%;
+ }
+
+ div.sphinxsidebar,
+ div.related,
+ div.footer,
+ #top-link {
+ display: none;
+ }
+}
diff --git a/docs/source/_better_theme/theme.conf b/docs/source/_better_theme/theme.conf
new file mode 100644
index 0000000..32bf173
--- /dev/null
+++ b/docs/source/_better_theme/theme.conf
@@ -0,0 +1,28 @@
+[theme]
+inherit = basic
+stylesheet = better.css
+pygments_style = sphinx
+
+[options]
+rightsidebar = false
+inlinecss =
+cssfiles =
+scriptfiles =
+ga_ua =
+ga_domain =
+
+showrelbartop = true
+showrelbarbottom = true
+showheader = true
+linktotheme = true
+
+# css shortcuts that should decrease as the markup improves
+
+## page width is determined by CSS
+sidebarwidth = 15rem
+
+## headtextcolor (color of h* tags) and footertextcolor default to the value
+## of textcolor
+textcolor = #000000
+headtextcolor =
+footertextcolor =
diff --git a/docs/source/_static/img/round_logo_32x32.ico b/docs/source/_static/img/round_logo_32x32.ico
deleted file mode 100644
index 29fb2bf..0000000
Binary files a/docs/source/_static/img/round_logo_32x32.ico and /dev/null differ
diff --git a/docs/source/_static/img/round_logo_60x60.png b/docs/source/_static/img/round_logo_60x60.png
deleted file mode 100644
index dacd36a..0000000
Binary files a/docs/source/_static/img/round_logo_60x60.png and /dev/null differ
diff --git a/docs/source/_static/leaflabs-docs.css b/docs/source/_static/leaflabs-docs.css
deleted file mode 100644
index 18f5bcc..0000000
--- a/docs/source/_static/leaflabs-docs.css
+++ /dev/null
@@ -1 +0,0 @@
-/* Any custom CSS you want applied goes here */
diff --git a/docs/source/_static/rambutan-docs.css b/docs/source/_static/rambutan-docs.css
new file mode 100644
index 0000000..94ec845
--- /dev/null
+++ b/docs/source/_static/rambutan-docs.css
@@ -0,0 +1,132 @@
+/* Rambutan Documentation Stylesheet */
+/* Intended to be applied over the "better" theme's defaults */
+
+/* TODO: http://practicaltypography.com/rules-and-borders.html */
+
+body {
+ font-family: serif;
+ font-size: 16px;
+}
+
+.body {
+ font-size: 140%;
+ line-height: 125%;
+ color: rgb(72, 72, 72);
+}
+
+.sphinxsidebar {
+ padding-top: 6em;
+ opacity: 0.65;
+ font-size: 0.9rem;
+}
+
+.sphinxsidebar:hover {
+ opacity: 0.9;
+}
+
+.sphinxsidebar .search input {
+ padding-left: 0.25rem;
+ margin-bottom: 2em;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: #000;
+ font-family: "Helvetica", sans-serif;
+}
+
+h1 { font-size: 1.6em; font-weight: bold; }
+h2 { font-size: 1.3em; font-weight: normal; }
+h3 { font-size: 1.1em; font-weight: normal; }
+h4 { font-size: 1.0em; font-weight: normal; }
+h5 { font-size: 1.0em; font-weight: normal; }
+
+header h1 {
+ margin-top: 0.3em;
+ font-size: 1.2em;
+ opacity: 0.65;
+}
+
+header h1:hover {
+ opacity: 0.9;
+}
+
+.rubric {
+ text-align: center;
+ text-transform: uppercase;
+}
+
+a.toc-backref {
+ color: #000;
+}
+
+a.internal em {
+ font-style: normal;
+}
+
+footer#pagefooter, footer#pagefooter a {
+ color: #777;
+}
+
+.contents .topic-title {
+ font-weight: normal;
+}
+
+body > header h1 a, body > header h1 a:visited {
+ color: #000;
+ margin-left: 240px;
+ font-family: "Helvetica", sans-serif;
+ font-weight: bold;
+ text-transform: uppercase;
+ font-variant: small-caps;
+ font-weight: normal;
+}
+
+.sphinxsidebar h3 a {
+ color: #444;
+}
+
+pre, tt {
+ font-family: "Source Code Pro", "Monaco", "Consolas", "Lucida Console", monospace;
+}
+
+tt {
+ font-size: 80%;
+ background: #f4f4f4;
+}
+
+.note tt {
+ background: #ececec;
+}
+
+a tt {
+ font-weight: normal;
+}
+
+.highlight pre {
+ background-color: #FFF;
+ background-color: #333;
+ padding: 0.75em;
+ margin-bottom: 2em;
+ margin-left: 0px;
+ margin-right: 0px;
+ border-radius: 2px;
+ font-size: 0.9rem;
+ line-height: 120%;
+}
+
+div.admondition, div.topic, div.warning, div.note {
+ border-left: none;
+ border-right: none;
+}
+
+div.note, div.topic {
+ background-color: #f4f4f4;
+}
+
+.related .bottom {
+ margin-top: 2em;
+}
+
+a:hover {
+ text-decoration: none;
+}
diff --git a/docs/source/_templates/indexcontent.html b/docs/source/_templates/indexcontent.html
index b4410c3..d1bb65b 100644
--- a/docs/source/_templates/indexcontent.html
+++ b/docs/source/_templates/indexcontent.html
@@ -35,7 +35,7 @@ changes that are new in {{ release }}.
- Getting Started
+ Getting Started
- Programming
+ Programming
Language Reference
{{ content_sep }}
@@ -63,7 +63,7 @@ changes that are new in {{ release }}.
Compatibility
- Hardware and Peripherals
+ Hardware and Peripherals
STM32
{{ content_sep }}
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
deleted file mode 100644
index 2fd81ce..0000000
--- a/docs/source/_templates/layout.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "!layout.html" %}
-
-{% set css_files = css_files + ["_static/leaflabs-docs.css"] %}
-
-{% block rootrellink %}
-
-
- leaflabs.com
- ·
- {{ shorttitle }} {{ reldelim1 }}
-{% endblock %}
diff --git a/docs/source/conf.py b/docs/source/conf.py
index fe400d0..2abf0f7 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -110,41 +110,26 @@ nitpicky = True
# -- Options for HTML output --------------------------------------------------
+# Add any paths that contain custom themes here, relative to this directory.
+html_theme_path = ['.']
+
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+html_theme = '_better_theme'
# 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 = {
- ## Sidebar placement options
- #'stickysidebar' : 'true',
- 'rightsidebar' : 'true',
- #'collapsiblesidebar' : 'true',
-
- ## Color
- 'sidebarbgcolor' : '#C8C8C8',
- 'sidebarlinkcolor' : 'green',
- 'sidebartextcolor' : 'black',
- #'sidebarbtncolor' : 'black',
- 'footerbgcolor' : 'green',
- 'relbarbgcolor' : 'green',
- 'headlinkcolor' : '#000000',
- 'linkcolor' : 'green',
- #'visitedlinkcolor' : 'green',
-
- ## Font
- 'headfont' : 'Georgia',
- 'bodyfont' : 'Lucida'
+ 'showrelbartop': False,
+ 'showrelbarbottom': True,
+ 'cssfiles': ['_static/rambutan-docs.css'],
}
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = ['_static']
-
# The name for this set of Sphinx documents. If None, it defaults to
# " v documentation".
-html_title = project + ' v' + release
+#html_title = project + ' v' + release
+html_title = "librambutan Documentation"
# A shorter title for the navigation bar. Default is the same as html_title.
html_short_title = 'Index'
@@ -156,7 +141,7 @@ html_short_title = 'Index'
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
-html_favicon = '_static/img/round_logo_32x32.ico'
+#html_favicon = '_static/img/round_logo_32x32.ico'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
--
cgit v1.2.3