New documentation style go match Flask and Werkzeug better
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parent 53278a3 · Browse files · 28 files·+524 added−586 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
28 files+524 added−586 removed
- other:+524 added−586 removed
Provenance
- Commit
988a04c- Tree
effccf2- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
53278a3
28 files changed+524 added−586 removed
deleted:docs/_static/darkmetal.pngbinary
A binary file, deleted.
deleted:docs/_static/headerbg.pngbinary
A binary file, deleted.
deleted:docs/_static/implementation.pngbinary
A binary file, deleted.
added:docs/_static/jinja-small.pngbinary
A binary file, added.
deleted:docs/_static/jinja.js-26 removed
1234567891011121314151617181920212223242526$(function() {
var toc = $('#toc').show(), items = $('#toc > ul').hide();
$('#toc h3') .click(function() { if (items.is(':visible')) { items.animate({ height: 'hide', opacity: 'hide' }, 300, function() { toc.removeClass('expandedtoc'); }); } else { items.animate({ height: 'show', opacity: 'show' }, 400); toc.addClass('expandedtoc'); } });
});deleted:docs/_static/jinjabanner.pngbinary
A binary file, deleted.
deleted:docs/_static/metal.pngbinary
A binary file, deleted.
deleted:docs/_static/navigation.pngbinary
A binary file, deleted.
deleted:docs/_static/note.pngbinary
A binary file, deleted.
deleted:docs/_static/print.css-5 removed
12345div.header, div.relnav, #toc { display: none; }#contentwrapper { padding: 0; margin: 0; border: none; }body { color: black; background-color: white; }div.footer { border-top: 1px solid #888; color: #888; margin-top: 1cm; }div.footer a { text-decoration: none; }deleted:docs/_static/style.css-390 removed
1-body {2- background-color: #222;3- margin: 0;4- padding: 0;5- font-family: 'Georgia', serif;6- font-size: 15px;7- color: #eee;8-}9-10-div.footer {11- border-top: 1px solid #111;12- padding: 8px;13- font-size: 11px;14- text-align: center;15- letter-spacing: 0.5px;16-}17-18-div.footer a {19- color: #eee;20-}21-22-div.header {23- margin: 0 -15px 0 -15px;24- background: url(headerbg.png) repeat-x;25- border-top: 6px solid #D20000;26-}27-28-div.relnav {29- border-bottom: 1px solid #111;30- background: url(navigation.png);31- margin: 0 -15px 0 -15px;32- padding: 2px 20px 0 28px;33- line-height: 25px;34- color: #aaa;35- font-size: 12px;36- text-align: center;37-}38-39-div.relnav a {40- color: #eee;41- font-weight: bold;42- text-decoration: none;43-}44-45-div.relnav a:hover {46- text-decoration: underline;47-}48-49-#content {50- background-color: white;51- color: #111;52- border-bottom: 1px solid black;53- background: url(watermark.png) center 0;54- padding: 0 15px 0 15px;55- margin: 0;56-}57-58-h1 {59- margin: 0;60- padding: 15px 0 0 0;61-}62-63-h1.heading {64- margin: 0;65- padding: 0;66- height: 80px;67-}68-69-h1.heading:hover {70- background: #222;71-}72-73-h1.heading a {74- background: url(jinjabanner.png) no-repeat center 0;75- display: block;76- width: 100%;77- height: 80px;78-}79-80-h1.heading a:focus {81- -moz-outline: none;82- outline: none;83-}84-85-h1.heading span {86- display: none;87-}88-89-#jinjalogo {90- background-image: url(jinjalogo.png);91- background-repeat: no-repeat;92- width: 400px;93- height: 160px;94-}95-96-#contentwrapper {97- max-width: 680px;98- padding: 0 18px 20px 18px;99- margin: 0 auto 0 auto;100- border-right: 1px solid #eee;101- border-left: 1px solid #eee;102- background: url(watermark_blur.png) center -114px;103-}104-105-#contentwrapper h2,106-#contentwrapper h2 a {107- color: #222;108- font-size: 24px;109- margin: 20px 0 0 0;110-}111-112-#contentwrapper h3,113-#contentwrapper h3 a {114- color: #b41717;115- font-size: 20px;116- margin: 20px 0 0 0;117-}118-119-table.docutils {120- border-collapse: collapse;121- border: 2px solid #aaa;122- margin: 0.5em 1.5em 0.5em 1.5em;123-}124-125-table.docutils td {126- padding: 2px;127- border: 1px solid #ddd;128-}129-130-p, li, dd, dt, blockquote {131- color: #333;132-}133-134-blockquote {135- margin: 10px 0 10px 20px;136-}137-138-p {139- line-height: 20px;140- margin-bottom: 0;141- margin-top: 10px;142-}143-144-hr {145- border-top: 1px solid #ccc;146- border-bottom: 0;147- border-right: 0;148- border-left: 0;149- margin-bottom: 10px;150- margin-top: 20px;151-}152-153-dl {154- margin-left: 10px;155-}156-157-li, dt {158- margin-top: 5px;159-}160-161-dt {162- font-weight: bold;163- color: #000;164-}165-166-dd {167- margin-top: 10px;168- line-height: 20px;169-}170-171-th {172- text-align: left;173- padding: 3px;174- background-color: #f2f2f2;175-}176-177-a {178- color: #b41717;179-}180-181-a:hover {182- color: #444;183-}184-185-pre {186- background: #ededed url(metal.png);187- border-top: 1px solid #ccc;188- border-bottom: 1px solid #ccc;189- padding: 5px;190- font-size: 13px;191- font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;192-}193-194-tt {195- font-size: 13px;196- font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;197- color: black;198- padding: 1px 2px 1px 2px;199- background-color: #fafafa;200- border-bottom: 1px solid #eee;201-}202-203-a.reference:hover tt {204- border-bottom-color: #aaa;205-}206-207-cite {208- /* abusing <cite>, it's generated by ReST for `x` */209- font-size: 13px;210- font-family: 'Bitstream Vera Sans Mono', 'Monaco', monospace;211- font-weight: bold;212- font-style: normal;213-}214-215-div.admonition {216- margin: 10px 0 10px 0;217- padding: 10px 10px 10px 60px;218- border: 1px solid #ccc;219-}220-221-div.admonition p.admonition-title {222- background-color: #b41717;223- color: white;224- margin: -10px -10px 10px -60px;225- padding: 4px 10px 4px 10px;226- font-weight: bold;227- font-size: 15px;228-}229-230-div.admonition p.admonition-title a {231- color: white!important;232-}233-234-div.admonition-note {235- background: url(note.png) no-repeat 10px 40px;236-}237-238-div.admonition-implementation {239- background: url(implementation.png) no-repeat 10px 40px;240-}241-242-a.headerlink {243- color: #B4B4B4!important;244- font-size: 0.8em;245- padding: 0 4px 0 4px;246- text-decoration: none!important;247- visibility: hidden;248-}249-250-h1:hover > a.headerlink,251-h2:hover > a.headerlink,252-h3:hover > a.headerlink,253-h4:hover > a.headerlink,254-h5:hover > a.headerlink,255-h6:hover > a.headerlink,256-dt:hover > a.headerlink,257-dt:hover > a.headerlink {258- visibility: visible;259-}260-261-a.headerlink:hover {262- background-color: #B4B4B4;263- color: #F0F0F0!important;264-}265-266-table.indextable {267- width: 100%;268-}269-270-table.indextable td {271- vertical-align: top;272- width: 50%;273-}274-275-table.indextable dl dd {276- font-size: 11px;277-}278-279-table.indextable dl dd a {280- color: #000;281-}282-283-dl.function dt,284-dl.class dt,285-dl.exception dt,286-dl.method dt,287-dl.attribute dt {288- font-weight: normal;289-}290-291-dt .descname {292- font-weight: bold;293- margin-right: 4px;294-}295-296-dt .descname, dt .descclassname {297- padding: 0;298- background: transparent;299- border-bottom: 1px solid #111;300-}301-302-dt .descclassname {303- margin-left: 2px;304-}305-306-dl dt big {307- font-size: 100%;308-}309-310-ul.search {311- margin: 10px 0 0 30px;312- padding: 0;313-}314-315-ul.search li {316- margin: 10px 0 0 0;317- padding: 0;318-}319-320-ul.search div.context {321- font-size: 12px;322- padding: 4px 0 0 20px;323- color: #888;324-}325-326-span.highlight {327- background-color: #eee;328- border: 1px solid #ccc;329-}330-331-#toc {332- margin: 0 -17px 0 -17px;333- display: none;334-}335-336-#toc h3 {337- float: right;338- margin: 5px 5px 0 0;339- padding: 0;340- font-size: 12px;341- color: #777;342-}343-344-#toc h3:hover {345- color: #333;346- cursor: pointer;347-}348-349-.expandedtoc {350- background: #222 url(darkmetal.png);351- border-bottom: 1px solid #111;352- outline-bottom: 1px solid #000;353- padding: 5px;354-}355-356-.expandedtoc h3 {357- color: #aaa;358- margin: 0!important;359-}360-361-.expandedtoc h3:hover {362- color: white!important;363-}364-365-#tod h3:hover {366- color: white;367-}368-369-#toc a {370- color: #ddd;371- text-decoration: none;372-}373-374-#toc a:hover {375- color: white;376- text-decoration: underline;377-}378-379-#toc ul {380- margin: 5px 0 12px 17px;381- padding: 0 7px 0 7px;382-}383-384-#toc ul ul {385- margin-bottom: 0;386-}387-388-#toc ul li {389- margin: 2px 0 0 0;390-}deleted:docs/_static/watermark_blur.pngbinary
A binary file, deleted.
deleted:docs/_static/watermark.pngbinary
A binary file, deleted.
deleted:docs/_templates/.ignore
deleted:docs/_templates/genindex.html-36 removed
123456789101112131415161718192021222324252627282930313233343536{% extends "layout.html" %}{% set title = 'Index' %}{% block body %}
<h1 id="index">Index</h1>
{% for key, dummy in genindexentries -%} <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %} {%- endfor %} <hr>
{% for key, entries in genindexentries %} <h2 id="{{ key }}">{{ key }}</h2> <table class="indextable"><tr> {%- for column in entries|slice(2) if column %} <td><dl> {%- for entryname, (links, subitems) in column %} <dt>{% if links %}<a href="{{ links[0] }}">{{ entryname|e }}</a> {% for link in links[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor %} {%- else %}{{ entryname|e }}{% endif %}</dt> {%- if subitems %} <dd><dl> {%- for subentryname, subentrylinks in subitems %} <dt><a href="{{ subentrylinks[0] }}">{{ subentryname|e }}</a> {%- for link in subentrylinks[1:] %}, <a href="{{ link }}">[Link]</a>{% endfor -%} </dt> {%- endfor %} </dl></dd> {%- endif -%} {%- endfor %} </dl></td> {%- endfor %} </tr></table> {% endfor %}
{% endblock %}deleted:docs/_templates/layout.html-77 removed
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Jinja2 Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css"> <link rel="stylesheet" href="{{ pathto('_static/print.css', 1) }}" type="text/css" media="print"> <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css"> {%- if builder != 'htmlhelp' %} <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '{{ pathto("", 1) }}', VERSION: '{{ release }}' }; </script> <script type="text/javascript" src="{{ pathto('_static/jquery.js', 1) }}"></script> <script type="text/javascript" src="{{ pathto('_static/interface.js', 1) }}"></script> <script type="text/javascript" src="{{ pathto('_static/doctools.js', 1) }}"></script> <script type="text/javascript" src="{{ pathto('_static/jinja.js', 1) }}"></script> {%- endif %} {%- if use_opensearch and builder != 'htmlhelp' %} <link rel="search" type="application/opensearchdescription+xml" title="Search within {{ docstitle }}" href="{{ pathto('_static/opensearch.xml', 1) }}"> {%- endif %} {%- if hasdoc('about') %} <link rel="author" title="About these documents" href="{{ pathto('about') }}"> {%- endif %} <link rel="contents" title="Global table of contents" href="{{ pathto('contents') }}"> <link rel="index" title="Global index" href="{{ pathto('genindex') }}"> <link rel="search" title="Search" href="{{ pathto('search') }}"> {%- if hasdoc('copyright') %} <link rel="copyright" title="Copyright" href="{{ pathto('copyright') }}"> {%- endif %} <link rel="top" title="{{ docstitle }}" href="{{ pathto('index') }}"> {%- if parents %} <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}"> {%- endif %} {%- if next %} <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}"> {%- endif %} {%- if prev %} <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}"> {%- endif %} {% block extrahead %}{% endblock %} </head> <body> <div id="content"> <div class="header"> <h1 class="heading"><a href="{{ pathto('index') }}" title="back to the documentation overview"><span>Jinja</span></a></h1> </div> <div class="relnav"> {%- if prev %} <a href="{{ prev.link|e }}">« {{ prev.title }}</a> | {%- endif %} <a href="{{ pathto(current_page_name) if current_page_name else '#' }}">{{ title }}</a> {%- if next %} | <a href="{{ next.link|e }}">{{ next.title }} »</a> {%- endif %} </div> <div id="contentwrapper"> {%- if display_toc %} <div id="toc"> <h3>Table Of Contents</h3> {{ toc }} </div> {%- endif %} {% block body %}{% endblock %} </div> </div> <div class="footer"> © Copyright 2010 by the <a href="http://pocoo.org/">Pocoo Team</a>, documentation generated by <a href="http://sphinx.pocoo.org/">Sphinx</a> </div> </body></html>deleted:docs/_templates/opensearch.xml-9 removed
1-<?xml version="1.0" encoding="UTF-8"?>2-<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">3- <ShortName>{{ project }}</ShortName>4- <Description>Search {{ docstitle }}</Description>5- <InputEncoding>utf-8</InputEncoding>6- <Url type="text/html" method="get"7- template="{{ use_opensearch }}/{{ pathto('search') }}?q={searchTerms}&check_keywords=yes&area=default"/>8- <LongName>{{ docstitle }}</LongName>9-</OpenSearchDescription>deleted:docs/_templates/page.html-4 removed
1234{% extends 'layout.html' %}{% block body %} {{ body }}{% endblock %}deleted:docs/_templates/search.html-35 removed
1234567891011121314151617181920212223242526272829303132333435{% extends "layout.html" %}{% set title = 'Search' %}{% block extrahead %} <script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>{% endblock %}{% block body %} <h1 id="search-documentation">Search</h1> <p> From here you can search these documents. Enter your search words into the box below and click "search". Note that the search function will automatically search for all of the words. Pages containing less words won't appear in the result list. </p> <form action="" method="get"><p> <input type="text" name="q" value=""> <input type="submit" value="search"> </p></form> {% if search_performed %} <h2>Search Results</h2> {% if not search_results %} <p>Your search did not match any results.</p> {% endif %} {% endif %} <div id="search-results"> {% if search_results %} <ul> {% for href, caption, context in search_results %} <li><a href="{{ pathto(item.href) }}">{{ caption }}</a> <div class="context">{{ context|e }}</div> </li> {% endfor %} </ul> {% endif %} </div>{% endblock %}added:docs/_templates/sidebarintro.html+20 added
1+<h3>About Jinja2</h3>2+<p>3+ Jinja2 is a full featured template engine for Python. It has full unicode4+ support, an optional integrated sandboxed execution environment, widely used5+ and BSD licensed.6+</p>7+<h3>Other Formats</h3>8+<p>9+ You can download the documentation in other formats as well:10+</p>11+<ul>12+ <li><a href="http://jinja.pocoo.org/docs/jinja-docs.pdf">as PDF</a>13+ <li><a href="http://jinja.pocoo.org/docs/jinja-docs.zip">as zipped HTML</a>14+</ul>15+<h3>Useful Links</h3>16+<ul>17+ <li><a href="http://jinja.pocoo.org/">The Jinja2 Website</a></li>18+ <li><a href="http://pypi.python.org/pypi/Jinja2">Jinja2 @ PyPI</a></li>19+ <li><a href="http://github.com/mitsuhiko/jinja2">Jinja2 @ github</a></li>20+</ul>added:docs/_templates/sidebarlogo.html+3 added
1+<p class="logo"><a href="{{ pathto(master_doc) }}">2+ <img class="logo" src="{{ pathto('_static/jinja-small.png', 1) }}" alt="Logo"/>3+</a></p>added:docs/_themes/jinja/static/jinja.css_t+394 added
1+/*2+ * flasky.css_t3+ * ~~~~~~~~~~~~4+ *5+ * :copyright: Copyright 2010 by Armin Ronacher.6+ * :license: Flask Design License, see LICENSE for details.7+ */8+9+{% set page_width = '940px' %}10+{% set sidebar_width = '220px' %}11+{% set font_family = 'Georgia, serif' %}12+{% set header_font_family = font_family %}13+ 14+@import url("basic.css");15+ 16+/* -- page layout ----------------------------------------------------------- */17+ 18+body {19+ font-family: {{ font_family }};20+ font-size: 17px;21+ background-color: white;22+ color: #000;23+ margin: 0;24+ padding: 0;25+}26+27+div.document {28+ width: {{ page_width }};29+ margin: 30px auto 0 auto;30+}31+32+div.documentwrapper {33+ float: left;34+ width: 100%;35+}36+37+div.bodywrapper {38+ margin: 0 0 0 {{ sidebar_width }};39+}40+41+div.sphinxsidebar {42+ width: {{ sidebar_width }};43+}44+45+hr {46+ border: 1px solid #B1B4B6;47+}48+ 49+div.body {50+ background-color: #ffffff;51+ color: #3E4349;52+ padding: 0 30px 0 30px;53+}54+55+img.floatingflask {56+ padding: 0 0 10px 10px;57+ float: right;58+}59+ 60+div.footer {61+ width: {{ page_width }};62+ margin: 20px auto 30px auto;63+ font-size: 14px;64+ color: #888;65+ text-align: right;66+}67+68+div.footer a {69+ color: #888;70+}71+72+div.related {73+ display: none;74+}75+ 76+div.sphinxsidebar a {77+ color: #444;78+ text-decoration: none;79+ border-bottom: 1px dotted #999;80+}81+82+div.sphinxsidebar a:hover {83+ border-bottom: 1px solid #999;84+}85+ 86+div.sphinxsidebar {87+ font-size: 15px;88+ line-height: 1.5;89+}90+91+div.sphinxsidebarwrapper {92+ padding: 18px 10px;93+}94+95+div.sphinxsidebarwrapper p.logo {96+ padding: 0 0 20px 0;97+ margin: 0;98+ text-align: center;99+}100+ 101+div.sphinxsidebar h3,102+div.sphinxsidebar h4 {103+ font-family: {{ font_family }};104+ color: #444;105+ font-size: 24px;106+ font-weight: normal;107+ margin: 0 0 5px 0;108+ padding: 0;109+}110+111+div.sphinxsidebar h4 {112+ font-size: 20px;113+}114+ 115+div.sphinxsidebar h3 a {116+ color: #444;117+}118+119+div.sphinxsidebar p.logo a,120+div.sphinxsidebar h3 a,121+div.sphinxsidebar p.logo a:hover,122+div.sphinxsidebar h3 a:hover {123+ border: none;124+}125+ 126+div.sphinxsidebar p {127+ color: #555;128+ margin: 10px 0;129+}130+131+div.sphinxsidebar ul {132+ margin: 10px 0;133+ padding: 0;134+ color: #000;135+}136+ 137+div.sphinxsidebar input {138+ border: 1px solid #ccc;139+ font-family: {{ font_family }};140+ font-size: 14px;141+}142+143+div.sphinxsidebar form.search input[name="q"] {144+ width: 130px;145+}146+ 147+/* -- body styles ----------------------------------------------------------- */148+ 149+a {150+ color: #aa0000;151+ text-decoration: underline;152+}153+ 154+a:hover {155+ color: #dd0000;156+ text-decoration: underline;157+}158+ 159+div.body h1,160+div.body h2,161+div.body h3,162+div.body h4,163+div.body h5,164+div.body h6 {165+ font-family: {{ header_font_family }};166+ font-weight: normal;167+ margin: 30px 0px 10px 0px;168+ padding: 0;169+ color: black;170+}171+ 172+div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }173+div.body h2 { font-size: 180%; }174+div.body h3 { font-size: 150%; }175+div.body h4 { font-size: 130%; }176+div.body h5 { font-size: 100%; }177+div.body h6 { font-size: 100%; }178+ 179+a.headerlink {180+ color: #ddd;181+ padding: 0 4px;182+ text-decoration: none;183+}184+ 185+a.headerlink:hover {186+ color: #444;187+ background: #eaeaea;188+}189+ 190+div.body p, div.body dd, div.body li {191+ line-height: 1.4em;192+}193+194+div.admonition {195+ background: #fafafa;196+ margin: 20px -30px;197+ padding: 10px 30px;198+ border-top: 1px solid #ccc;199+ border-bottom: 1px solid #ccc;200+}201+202+div.admonition tt.xref, div.admonition a tt {203+ border-bottom: 1px solid #fafafa;204+}205+206+dd div.admonition {207+ margin-left: -60px;208+ padding-left: 60px;209+}210+211+div.admonition p.admonition-title {212+ font-family: {{ font_family }};213+ font-weight: normal;214+ font-size: 24px;215+ margin: 0 0 10px 0;216+ padding: 0;217+ line-height: 1;218+}219+220+div.admonition p.last {221+ margin-bottom: 0;222+}223+224+div.highlight {225+ background-color: white;226+}227+228+dt:target, .highlight {229+ background: #FAF3E8;230+}231+232+div.note {233+ background-color: #eee;234+ border: 1px solid #ccc;235+}236+ 237+div.seealso {238+ background-color: #ffc;239+ border: 1px solid #ff6;240+}241+ 242+div.topic {243+ background-color: #eee;244+}245+ 246+p.admonition-title {247+ display: inline;248+}249+ 250+p.admonition-title:after {251+ content: ":";252+}253+254+pre, tt {255+ font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;256+ font-size: 0.9em;257+}258+259+img.screenshot {260+}261+262+tt.descname, tt.descclassname {263+ font-size: 0.95em;264+}265+266+tt.descname {267+ padding-right: 0.08em;268+}269+270+img.screenshot {271+ -moz-box-shadow: 2px 2px 4px #eee;272+ -webkit-box-shadow: 2px 2px 4px #eee;273+ box-shadow: 2px 2px 4px #eee;274+}275+276+table.docutils {277+ border: 1px solid #888;278+ -moz-box-shadow: 2px 2px 4px #eee;279+ -webkit-box-shadow: 2px 2px 4px #eee;280+ box-shadow: 2px 2px 4px #eee;281+}282+283+table.docutils td, table.docutils th {284+ border: 1px solid #888;285+ padding: 0.25em 0.7em;286+}287+288+table.field-list, table.footnote {289+ border: none;290+ -moz-box-shadow: none;291+ -webkit-box-shadow: none;292+ box-shadow: none;293+}294+295+table.footnote {296+ margin: 15px 0;297+ width: 100%;298+ border: 1px solid #eee;299+ background: #fdfdfd;300+ font-size: 0.9em;301+}302+303+table.footnote + table.footnote {304+ margin-top: -15px;305+ border-top: none;306+}307+308+table.field-list th {309+ padding: 0 0.8em 0 0;310+}311+312+table.field-list td {313+ padding: 0;314+}315+316+table.footnote td.label {317+ width: 0px;318+ padding: 0.3em 0 0.3em 0.5em;319+}320+321+table.footnote td {322+ padding: 0.3em 0.5em;323+}324+325+dl {326+ margin: 0;327+ padding: 0;328+}329+330+dl dd {331+ margin-left: 30px;332+}333+334+blockquote {335+ margin: 0 0 0 30px;336+ padding: 0;337+}338+339+ul, ol {340+ margin: 10px 0 10px 30px;341+ padding: 0;342+}343+ 344+pre {345+ background: #eee;346+ padding: 7px 30px;347+ margin: 15px -30px;348+ line-height: 1.3em;349+}350+351+dl pre, blockquote pre, li pre {352+ margin-left: -60px;353+ padding-left: 60px;354+}355+356+dl dl pre {357+ margin-left: -90px;358+ padding-left: 90px;359+}360+ 361+tt {362+ background-color: #E8EFF0;363+ color: #222;364+ /* padding: 1px 2px; */365+}366+367+tt.xref, a tt {368+ background-color: #E8EFF0;369+ border-bottom: 1px solid white;370+}371+372+a.reference {373+ text-decoration: none;374+ border-bottom: 1px dotted #bb0000;375+}376+377+a.reference:hover {378+ border-bottom: 1px solid #dd0000;379+}380+381+a.footnote-reference {382+ text-decoration: none;383+ font-size: 0.7em;384+ vertical-align: top;385+ border-bottom: 1px dotted #bb0000;386+}387+388+a.footnote-reference:hover {389+ border-bottom: 1px solid #dd0000;390+}391+392+a:hover tt {393+ background: #EEE;394+}added:docs/_themes/jinja/layout.html+8 added
1+{%- extends "basic/layout.html" %}2+{%- block relbar2 %}{% endblock %}3+{%- block footer %}4+ <div class="footer">5+ © Copyright {{ copyright }}.6+ Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.7+ </div>8+{%- endblock %}added:docs/_themes/jinja/relations.html+19 added
1+<h3>Related Topics</h3>2+<ul>3+ <li><a href="{{ pathto(master_doc) }}">Documentation overview</a><ul>4+ {%- for parent in parents %}5+ <li><a href="{{ parent.link|e }}">{{ parent.title }}</a><ul>6+ {%- endfor %}7+ {%- if prev %}8+ <li>Previous: <a href="{{ prev.link|e }}" title="{{ _('previous chapter')9+ }}">{{ prev.title }}</a></li>10+ {%- endif %}11+ {%- if next %}12+ <li>Next: <a href="{{ next.link|e }}" title="{{ _('next chapter')13+ }}">{{ next.title }}</a></li>14+ {%- endif %}15+ {%- for parent in parents %}16+ </ul></li>17+ {%- endfor %}18+ </ul></li>19+</ul>added:docs/_themes/jinja/theme.conf+3 added
1+[theme]2+inherit = basic3+stylesheet = jinja.cssadded:docs/_themes/LICENSE+37 added
1+Copyright (c) 2010 by Armin Ronacher.2+3+Some rights reserved.4+5+Redistribution and use in source and binary forms of the theme, with or6+without modification, are permitted provided that the following conditions7+are met:8+9+* Redistributions of source code must retain the above copyright10+ notice, this list of conditions and the following disclaimer.11+12+* Redistributions in binary form must reproduce the above13+ copyright notice, this list of conditions and the following14+ disclaimer in the documentation and/or other materials provided15+ with the distribution.16+17+* The names of the contributors may not be used to endorse or18+ promote products derived from this software without specific19+ prior written permission.20+21+We kindly ask you to only use these themes in an unmodified manner just22+for Flask and Flask-related products, not for unrelated projects. If you23+like the visual style and want to use it for your own projects, please24+consider making some larger changes to the themes (such as changing25+font faces, sizes, colors or margins).26+27+THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"28+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE29+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE30+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE31+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR32+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF33+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS34+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN35+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)36+ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE37+POSSIBILITY OF SUCH DAMAGE.added:docs/_themes/README+31 added
1+Flask Sphinx Styles2+===================3+4+This repository contains sphinx styles for Flask and Flask related5+projects. To use this style in your Sphinx documentation, follow6+this guide:7+8+1. put this folder as _themes into your docs folder. Alternatively9+ you can also use git submodules to check out the contents there.10+2. add this to your conf.py:11+12+ sys.path.append(os.path.abspath('_themes'))13+ html_theme_path = ['_themes']14+ html_theme = 'flask'15+16+The following themes exist:17+18+- 'flask' - the standard flask documentation theme for large19+ projects20+- 'flask_small' - small one-page theme. Intended to be used by21+ very small addon libraries for flask.22+23+The following options exist for the flask_small theme:24+25+ [options]26+ index_logo = '' filename of a picture in _static27+ to be used as replacement for the28+ h1 in the index.rst file.29+ index_logo_height = 120px height of the index logo30+ github_fork = '' repository name on github for the31+ "fork me" badgemodified:docs/conf.py+9 added-4 removed
71 unmodified lines72 73 # Options for HTML output74 # -----------------------75 76-# The style sheet to use for HTML and HTML Help pages. A file of that name77-# must exist either in Sphinx' static/ path, or in one of the custom paths78-# given in html_static_path.79-html_style = 'style.css'76+html_theme = 'jinja'77+html_theme_path = ['_themes']78 79 # The name for this set of Sphinx documents. If None, it defaults to80 # "<project> v<release> documentation".81 #html_title = None54 unmodified lines136 #latex_appendices = []137 138 # If false, no module index is generated.139 latex_use_modindex = False140+141+html_sidebars = {142+ 'index': ['sidebarlogo.html', 'sidebarintro.html', 'sourcelink.html',143+ 'searchbox.html'],144+ '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',145+ 'sourcelink.html', 'searchbox.html']146+}