diff options
Diffstat (limited to 'alabaster-lite')
-rw-r--r-- | alabaster-lite/404.html | 10 | ||||
-rw-r--r-- | alabaster-lite/__init__.py | 0 | ||||
-rw-r--r-- | alabaster-lite/config.html | 13 | ||||
-rw-r--r-- | alabaster-lite/css/alabaster.css | 1176 | ||||
-rw-r--r-- | alabaster-lite/inc/homepage_nav.html | 19 | ||||
-rw-r--r-- | alabaster-lite/main.html | 63 | ||||
-rw-r--r-- | alabaster-lite/mkdocs_theme.yml | 7 | ||||
-rw-r--r-- | alabaster-lite/sidebars/about.html | 16 | ||||
-rw-r--r-- | alabaster-lite/sidebars/navigation.html | 50 | ||||
-rw-r--r-- | alabaster-lite/sidebars/related.html | 15 | ||||
-rw-r--r-- | alabaster-lite/sidebars/toc.html | 28 |
11 files changed, 1397 insertions, 0 deletions
diff --git a/alabaster-lite/404.html b/alabaster-lite/404.html new file mode 100644 index 0000000..a1d1269 --- /dev/null +++ b/alabaster-lite/404.html @@ -0,0 +1,10 @@ +{% extends "main.html" %} + +{% block content %} + <h1>Page not found: 404 error</h1> + + <p> + There is nothing here. + </p> + +{% endblock %} diff --git a/alabaster-lite/__init__.py b/alabaster-lite/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/alabaster-lite/__init__.py diff --git a/alabaster-lite/config.html b/alabaster-lite/config.html new file mode 100644 index 0000000..51f1871 --- /dev/null +++ b/alabaster-lite/config.html @@ -0,0 +1,13 @@ +{% set c = config %} +{% set e = config.extra %} +{% set theme = { + "logo": e.logo | default(false), + "logo_title": e.logo_title | default(c.site_name), + "logo_name": e.logo_name | default(false), + "include_toc": e.include_toc | default(true), + "extra_nav_links": e.extra_nav_links | default({}), + "show_powered_by": e.show_powered_by | default(true), + "sidebars": e.sidebars | default(["about", "toc"]), + "homepage_nav": e.homepage_nav | default(true), + "homepage_sidebars": e.homepage_sidebars | default(["about"]), +}%} diff --git a/alabaster-lite/css/alabaster.css b/alabaster-lite/css/alabaster.css new file mode 100644 index 0000000..b792580 --- /dev/null +++ b/alabaster-lite/css/alabaster.css @@ -0,0 +1,1176 @@ +/* This file used to import a css called basic.css, but the latter is fused into L584 now */ + +/* -- page layout ----------------------------------------------------------- */ + +body { + font-family: "Noto Sans", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; + font-size: 18px; + background-color: white; + color: #000; + margin: 0; + padding: 0; +} + +div.document { + width: 940px; + margin: 30px auto 0 auto; +} + +div.documentwrapper { + float: left; + width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 220px; +} + +div.sphinxsidebar { + width: 220px; +} + +hr { + border: 1px solid #B1B4B6; +} + +div.body { + background-color: #ffffff; + color: #3E4349; + padding: 0 30px 0 30px; +} + +div.body > .section { + text-align: left; +} + +div.footer { + width: 940px; + margin: 20px auto 30px auto; + font-size: 14px; + color: #888; + text-align: right; +} + +div.footer a { + color: #888; +} + + +div.relations { + display: none; +} + + +div.sphinxsidebar a { + color: #444; + text-decoration: none; + border-bottom: 1px dotted #999; +} + +div.sphinxsidebar a:hover { + border-bottom: 1px solid #999; +} + +div.sphinxsidebar { + font-size: 14px; + line-height: 1.5; +} + +div.sphinxsidebarwrapper { + padding: 18px 10px; + margin-right: 18px; +} + +div.sphinxsidebarwrapper p.logo { + padding: 0; + margin: -10px 0 0 0px; + text-align: center; +} + +div.sphinxsidebarwrapper h1.logo { + margin-top: -10px; + text-align: center; + margin-bottom: 5px; + text-align: left; +} + +div.sphinxsidebarwrapper h1.logo-name { + margin-top: 0px; +} + +div.sphinxsidebarwrapper p.blurb { + margin-top: 0; + font-style: normal; +} + +div.sphinxsidebar h3, +div.sphinxsidebar h4 { + color: #444; + font-size: 24px; + font-weight: normal; + margin: 0 0 5px 0; + padding: 0; +} + +div.sphinxsidebar h4 { + font-size: 20px; +} + +div.sphinxsidebar h3 a { + color: #444; +} + +div.sphinxsidebar p.logo a, +div.sphinxsidebar h3 a, +div.sphinxsidebar p.logo a:hover, +div.sphinxsidebar h3 a:hover { + border: none; +} + +div.sphinxsidebar p { + color: #555; + margin: 10px 0; +} + +div.sphinxsidebar ul { + margin: 10px 0; + padding: 0; + color: #000; +} + +div.sphinxsidebar ul li.toctree-l1 > a { + font-size: 120%; +} + +div.sphinxsidebar ul li.toctree-l2 > a { + font-size: 110%; +} + +div.sphinxsidebar input { + border: 1px solid #CCC; + font-family: "Noto Sans", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; + font-size: 1em; +} + +div.sphinxsidebar hr { + border: none; + height: 1px; + color: #AAA; + background: #AAA; + + text-align: left; + margin-left: 0; + width: 50%; +} + +/* -- body styles ----------------------------------------------------------- */ + +a { + color: #004B6B; + text-decoration: underline; +} + +a:hover { + color: #6D4100; + text-decoration: underline; +} + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: "Noto Sans", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; + font-weight: normal; + margin: 30px 0px 10px 0px; + padding: 0; +} + +div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } +div.body h2 { font-size: 180%; } +div.body h3 { font-size: 150%; } +div.body h4 { font-size: 130%; } +div.body h5 { font-size: 100%; } +div.body h6 { font-size: 100%; } + +a.headerlink { + color: #DDD; + padding: 0 4px; + text-decoration: none; +} + +a.headerlink:hover { + color: #444; + background: #EAEAEA; +} + +div.body p, div.body dd, div.body li { + line-height: 1.4em; +} + +div.admonition { + margin: 20px 0px; + padding: 10px 30px; + background-color: #FCC; + border: 1px solid #FAA; +} + +div.admonition tt.xref, div.admonition a tt { + border-bottom: 1px solid #fafafa; +} + +dd div.admonition { + margin-left: -60px; + padding-left: 60px; +} + +div.admonition p.admonition-title { + font-family: "Noto Sans", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; + font-weight: normal; + font-size: 24px; + margin: 0 0 10px 0; + padding: 0; + line-height: 1; +} + +div.admonition p.last { + margin-bottom: 0; +} + +div.highlight { + background-color: white; +} + +dt:target, .highlight { + background: #FAF3E8; +} + +div.note { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.seealso { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.topic { + background-color: #eee; +} + +p.admonition-title { + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +pre, tt, code { + font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace; + font-size: 0.9em; +} + +.hll { + background-color: #FFC; + margin: 0 -12px; + padding: 0 12px; + display: block; +} + +tt.descname, tt.descclassname, code.descname, code.descclassname { + font-size: 0.95em; +} + +tt.descname, code.descname { + padding-right: 0.08em; +} + +img.screenshot { + -moz-box-shadow: 2px 2px 4px #eee; + -webkit-box-shadow: 2px 2px 4px #eee; + box-shadow: 2px 2px 4px #eee; +} + +table.docutils { + border: 1px solid #888; + -moz-box-shadow: 2px 2px 4px #eee; + -webkit-box-shadow: 2px 2px 4px #eee; + box-shadow: 2px 2px 4px #eee; +} + +table.docutils td, table.docutils th { + border: 1px solid #888; + padding: 0.25em 0.7em; +} + +table.field-list, table.footnote { + border: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +table.footnote { + margin: 15px 0; + width: 100%; + border: 1px solid #EEE; + background: #FDFDFD; + font-size: 0.9em; +} + +table.footnote + table.footnote { + margin-top: -15px; + border-top: none; +} + +table.field-list th { + padding: 0 0.8em 0 0; +} + +table.field-list td { + padding: 0; +} + +table.field-list p { + margin-bottom: 0.8em; +} + +table.footnote td.label { + width: 0px; + padding: 0.3em 0 0.3em 0.5em; +} + +table.footnote td { + padding: 0.3em 0.5em; +} + +dl { + margin: 0; + padding: 0; +} + +dl dd { + margin-left: 30px; +} + +blockquote { + margin: 0 0 0 30px; + padding: 0; +} + +ul, ol { + margin: 10px 0 10px 30px; + padding: 0; +} + +pre { + background: #EEE; + padding: 7px 30px; + margin: 15px 0px; + line-height: 1.3em; +} + +dl pre, blockquote pre, li pre { + margin-left: 0; + padding-left: 30px; +} + +dl dl pre { + margin-left: -90px; + padding-left: 90px; +} + +tt, code { + background-color: #ecf0f3; + color: #222; + /* padding: 1px 2px; */ +} + +tt.xref, code.xref, a tt { + background-color: #FBFBFB; + border-bottom: 1px solid white; +} + +a.reference { + text-decoration: none; + border-bottom: 1px dotted #004B6B; +} + +a.reference:hover { + border-bottom: 1px solid #6D4100; +} + +a.footnote-reference { + text-decoration: none; + font-size: 0.7em; + vertical-align: top; + border-bottom: 1px dotted #004B6B; +} + +a.footnote-reference:hover { + border-bottom: 1px solid #6D4100; +} + +a:hover tt, a:hover code { + background: #EEE; +} + +@media screen and (max-width: 870px) { + + div.sphinxsidebar { + display: none; + } + + div.document { + width: 100%; + } + + div.documentwrapper { + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + } + + div.bodywrapper { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + margin-left: 0; + } + + ul { + margin-left: 0; + } + + .document { + width: auto; + } + + .footer { + display: inline; + } + + .bodywrapper { + margin: 0; + } + + .footer { + width: auto; + } + + .github { + display: none; + } + + + +} + + + +@media screen and (max-width: 875px) { + + body { + margin: 0; + padding: 20px 30px; + } + + div.documentwrapper { + float: none; + background: white; + } + + div.sphinxsidebar { + display: block; + float: none; + width: 102.5%; + margin: 50px -30px -20px -30px; + padding: 10px 20px; + background: #333; + color: #FFF; + } + + div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, + div.sphinxsidebar h3 a { + color: white; + } + + div.sphinxsidebar a { + color: #AAA; + } + + div.sphinxsidebar p.logo { + display: none; + } + + div.document { + width: 100%; + margin: 0; + } + + div.bodywrapper { + margin: 0; + } + + div.body { + min-height: 0; + padding: 0; + } + + .rtd_doc_footer { + display: none; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .footer { + width: auto; + } + + .github { + display: none; + } +} + + +/* misc. */ + +.revsys-inline { + display: none!important; +} + +/* Make nested-list/multi-paragraph items look better in Releases changelog + * pages. Without this, docutils' magical list fuckery causes inconsistent + * formatting between different release sub-lists. + */ +div#changelog > div.section > ul > li > p:only-child { + margin-bottom: 0; +} + +/* Hide fugly table cell borders in ..bibliography:: directive output */ +table.docutils.citation, table.docutils.citation td, table.docutils.citation th { + border: none; + /* Below needed in some edge cases; if not applied, bottom shadows appear */ + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +/* Copied from an override css */ +nav li.active:not(.inactive) > a { + border-bottom: 1px solid #000; + color: #000; +} + +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox input[type="text"] { + width: 170px; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + width: 30px; +} + +img { + border: 0; + max-width: 100%; +} + +/* -- 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, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption: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 caption span.caption-number { + font-style: italic; +} + +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; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number { + font-style: italic; +} + +/* -- 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; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.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; +} + +div.code-block-caption { + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +div.code-block-caption + div > div.highlight > pre { + margin-top: 0; +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.literal-block-wrapper { + padding: 1em 1em 0; +} + +div.literal-block-wrapper div.highlight { + margin: 0; +} + +code.descname { + background-color: transparent; + font-weight: bold; + font-size: 1.2em; +} + +code.descclassname { + background-color: transparent; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + 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; + } +} + +@media (prefers-color-scheme: dark) { + body { + color: white; + background-color: #19202b; + } + + div.body { + color: white; + background-color: #19202b; + padding-bottom: 24px; + } + + div.sphinxsidebar h3, + div.sphinxsidebar h3 a, + div.sphinxsidebar h4, + div.sphinxsidebar p, + div.sphinxsidebar a, + div.sphinxsidebar ul { + color: #bbb; + } + + a { + color: #7b91be; + } + + a:hover { + color: #9bb1de; + } + + tt, code { + background-color: #202836; + color: white; + } + + pre { + background-color: #202836; + border: 1px solid white; + border-radius: 8px; + } +} diff --git a/alabaster-lite/inc/homepage_nav.html b/alabaster-lite/inc/homepage_nav.html new file mode 100644 index 0000000..ed2edfa --- /dev/null +++ b/alabaster-lite/inc/homepage_nav.html @@ -0,0 +1,19 @@ +<h2>Navigation</h2> + +{% macro nav_tree(nav) -%} + <ul> + {% for nav_item in nav %} + {% if not nav_item.children %} + <li> + <a href="{{ nav_item.url }}">{{ nav_item.title }}</a> + </li> + {% else %} + <li> + {{ nav_item.title }} + {{ nav_tree(nav_item.children) }} + </li> + {% endif %} + {% endfor %} + </ul> +{%- endmacro %} +{{ nav_tree(nav) }} diff --git a/alabaster-lite/main.html b/alabaster-lite/main.html new file mode 100644 index 0000000..c503f46 --- /dev/null +++ b/alabaster-lite/main.html @@ -0,0 +1,63 @@ +{% from "config.html" import theme with context %} +<!DOCTYPE html> +<html> +<head> + {% block head %} + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + + <title>{% if page.title %}{{ page.title }} — {% endif %}{{ config.site_name }}</title> + + <link rel="stylesheet" href="{{ base_url }}/css/alabaster.css" type="text/css"> + + {% for path in extra_css %} + <link href="{{ path }}" rel="stylesheet"> + {% endfor %} + + <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9"> + + {% block extrahead %}{% endblock %} + {% endblock %} +</head> +<body> + + <div class="document"> + <div class="documentwrapper"> + <div class="bodywrapper"> + <div class="body" role="main"> + {% block content %} + {{ page.content }} + {% if page.is_homepage and theme.homepage_nav %} + {% include "inc/homepage_nav.html" %} + {% endif %} + {% endblock %} + </div> + </div> + </div> + <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> + <div class="sphinxsidebarwrapper"> + {% if page.is_homepage %} + {% for sidebar in theme.homepage_sidebars %} + {% include "sidebars/%s.html" % sidebar %} + {% endfor %} + {% else %} + {% for sidebar in theme.sidebars %} + {% include "sidebars/%s.html" % sidebar %} + {% endfor %} + {% endif %} + </div> + </div> + <div class="clearer"></div> + </div> + + {% block footer %} + <div class="footer"> + CC BY-NC 4.0 | feedback >> fkfd@macaw.me + </div> + {% endblock %} + + <!-- + MkDocs version : {{ mkdocs_version }} + Docs Build Date UTC : {{ build_date_utc }} + --> +</body> +</html> diff --git a/alabaster-lite/mkdocs_theme.yml b/alabaster-lite/mkdocs_theme.yml new file mode 100644 index 0000000..01e9f6a --- /dev/null +++ b/alabaster-lite/mkdocs_theme.yml @@ -0,0 +1,7 @@ +# Config options for 'alabaster' theme + +static_templates: + - 404.html + +include_search_page: false +search_index_only: false diff --git a/alabaster-lite/sidebars/about.html b/alabaster-lite/sidebars/about.html new file mode 100644 index 0000000..674dab4 --- /dev/null +++ b/alabaster-lite/sidebars/about.html @@ -0,0 +1,16 @@ +{% if theme.logo %} + <p class="logo"> + <a href="{{nav.homepage.url|url}}"> + <img class="logo" src="{{base_url}}/{{theme.logo}}" title="{{theme.logo_title}}"> + </a> + </p> + {% if theme.logo_name %} + <h1 class="logo">{{ config.site_name }}</h1> + {% endif %} +{% else %} + <h1 class="logo"><a href="{{nav.homepage.url|url}}">{{ config.site_name }}</a></h1> +{% endif %} + +{% if config.site_description %} + <p class="blurb">{{ config.site_description }}</p> +{% endif %} diff --git a/alabaster-lite/sidebars/navigation.html b/alabaster-lite/sidebars/navigation.html new file mode 100644 index 0000000..3d609b0 --- /dev/null +++ b/alabaster-lite/sidebars/navigation.html @@ -0,0 +1,50 @@ +{% macro _toc_tree_inner(toc) -%} + <ul> + {% for toc_item in toc %} + <li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} + </ul> +{%- endmacro %} + +{% macro toc_tree(toc) -%} + {# This ignores H1s #} + {% for toc_item in toc %} + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} +{%- endmacro %} + +{% macro nav_tree(nav) -%} + <ul> + {% for nav_item in nav %} + {% if not nav_item.children %} + <li> + <a href="{{ nav_item.url }}">{{ nav_item.title }}</a> + </li> + {% if nav_item == page %} + {{ toc_tree(page.toc) }} + {% endif %} + {% else %} + <li> + {{ nav_item.title }} + {{ nav_tree(nav_item.children) }} + </li> + {% endif %} + {% endfor %} + </ul> +{%- endmacro %} + +<h3>Navigation</h3> + +<nav> + {{ nav_tree(nav) }} + + {% if theme.extra_nav_links %} + <hr> + <ul> + {% for text, uri in theme.extra_nav_links.items() %} + <li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li> + {% endfor %} + </ul> + {% endif %} +</nav> diff --git a/alabaster-lite/sidebars/related.html b/alabaster-lite/sidebars/related.html new file mode 100644 index 0000000..f49e019 --- /dev/null +++ b/alabaster-lite/sidebars/related.html @@ -0,0 +1,15 @@ +{% if page.previous_page or page.next_page %} + <h3>Related Topics</h3> + <ul> + {% if page.previous_page %} + <li>Previous: <a href="{{page.previous_page.url|url}}" title="previous chapter"> + {{page.previous_page.title}} + </a></li> + {% endif %} + {% if page.next_page %} + <li>Next: <a href="{{page.next_page.url|url}}" title="next chapter"> + {{page.next_page.title}} + </a></li> + {% endif %} + </ul> +{% endif %} diff --git a/alabaster-lite/sidebars/toc.html b/alabaster-lite/sidebars/toc.html new file mode 100644 index 0000000..cce0f4a --- /dev/null +++ b/alabaster-lite/sidebars/toc.html @@ -0,0 +1,28 @@ +{% macro _toc_tree_inner(toc) -%} + <ul> + {% for toc_item in toc %} + <li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} + </ul> +{%- endmacro %} + +{% macro toc_tree(toc) -%} + {# This ignores H1s #} + {% for toc_item in toc %} + {{ _toc_tree_inner(toc_item.children) }} + {% endfor %} +{%- endmacro %} + +<nav> + {{ toc_tree(page.toc) }} + + {% if theme.extra_nav_links %} + <hr> + <ul> + {% for text, uri in theme.extra_nav_links.items() %} + <li class="toctree-l1"><a href="{{ uri }}">{{ text }}</a></li> + {% endfor %} + </ul> + {% endif %} +</nav> |