Skip to content
Myr

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

28 files+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
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
deleted:docs/_static/style.css-390 removed
1body {2 background-color: #222;3 margin: 0;4 padding: 0;5 font-family: 'Georgia', serif;6 font-size: 15px;7 color: #eee;8}910div.footer {11 border-top: 1px solid #111;12 padding: 8px;13 font-size: 11px;14 text-align: center;15 letter-spacing: 0.5px;16}1718div.footer a {19 color: #eee;20}2122div.header {23 margin: 0 -15px 0 -15px;24 background: url(headerbg.png) repeat-x;25 border-top: 6px solid #D20000;26}2728div.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}3839div.relnav a {40 color: #eee;41 font-weight: bold;42 text-decoration: none;43}4445div.relnav a:hover {46 text-decoration: underline;47}4849#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}5758h1 {59 margin: 0;60 padding: 15px 0 0 0;61}6263h1.heading {64 margin: 0;65 padding: 0;66 height: 80px;67}6869h1.heading:hover {70 background: #222;71}7273h1.heading a {74 background: url(jinjabanner.png) no-repeat center 0;75 display: block;76 width: 100%;77 height: 80px;78}7980h1.heading a:focus {81 -moz-outline: none;82 outline: none;83}8485h1.heading span {86 display: none;87}8889#jinjalogo {90 background-image: url(jinjalogo.png);91 background-repeat: no-repeat;92 width: 400px;93 height: 160px;94}9596#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}104105#contentwrapper h2,106#contentwrapper h2 a {107 color: #222;108 font-size: 24px;109 margin: 20px 0 0 0;110}111112#contentwrapper h3,113#contentwrapper h3 a {114 color: #b41717;115 font-size: 20px;116 margin: 20px 0 0 0;117}118119table.docutils {120 border-collapse: collapse;121 border: 2px solid #aaa;122 margin: 0.5em 1.5em 0.5em 1.5em;123}124125table.docutils td {126 padding: 2px;127 border: 1px solid #ddd;128}129130p, li, dd, dt, blockquote {131 color: #333;132}133134blockquote {135 margin: 10px 0 10px 20px;136}137138p {139 line-height: 20px;140 margin-bottom: 0;141 margin-top: 10px;142}143144hr {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}152153dl {154 margin-left: 10px;155}156157li, dt {158 margin-top: 5px;159}160161dt {162 font-weight: bold;163 color: #000;164}165166dd {167 margin-top: 10px;168 line-height: 20px;169}170171th {172 text-align: left;173 padding: 3px;174 background-color: #f2f2f2;175}176177a {178 color: #b41717;179}180181a:hover {182 color: #444;183}184185pre {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}193194tt {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}202203a.reference:hover tt {204 border-bottom-color: #aaa;205}206207cite {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}214215div.admonition {216 margin: 10px 0 10px 0;217 padding: 10px 10px 10px 60px;218 border: 1px solid #ccc;219}220221div.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}229230div.admonition p.admonition-title a {231 color: white!important;232}233234div.admonition-note {235 background: url(note.png) no-repeat 10px 40px;236}237238div.admonition-implementation {239 background: url(implementation.png) no-repeat 10px 40px;240}241242a.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}249250h1:hover > a.headerlink,251h2:hover > a.headerlink,252h3:hover > a.headerlink,253h4:hover > a.headerlink,254h5:hover > a.headerlink,255h6:hover > a.headerlink,256dt:hover > a.headerlink,257dt:hover > a.headerlink {258 visibility: visible;259}260261a.headerlink:hover {262 background-color: #B4B4B4;263 color: #F0F0F0!important;264}265266table.indextable {267 width: 100%;268}269270table.indextable td {271 vertical-align: top;272 width: 50%;273}274275table.indextable dl dd {276 font-size: 11px;277}278279table.indextable dl dd a {280 color: #000;281}282283dl.function dt,284dl.class dt,285dl.exception dt,286dl.method dt,287dl.attribute dt {288 font-weight: normal;289}290291dt .descname {292 font-weight: bold;293 margin-right: 4px;294}295296dt .descname, dt .descclassname {297 padding: 0;298 background: transparent;299 border-bottom: 1px solid #111;300}301302dt .descclassname {303 margin-left: 2px;304}305306dl dt big {307 font-size: 100%;308}309310ul.search {311 margin: 10px 0 0 30px;312 padding: 0;313}314315ul.search li {316 margin: 10px 0 0 0;317 padding: 0;318}319320ul.search div.context {321 font-size: 12px;322 padding: 4px 0 0 20px;323 color: #888;324}325326span.highlight {327 background-color: #eee;328 border: 1px solid #ccc;329}330331#toc {332 margin: 0 -17px 0 -17px;333 display: none;334}335336#toc h3 {337 float: right;338 margin: 5px 5px 0 0;339 padding: 0;340 font-size: 12px;341 color: #777;342}343344#toc h3:hover {345 color: #333;346 cursor: pointer;347}348349.expandedtoc {350 background: #222 url(darkmetal.png);351 border-bottom: 1px solid #111;352 outline-bottom: 1px solid #000;353 padding: 5px;354}355356.expandedtoc h3 {357 color: #aaa;358 margin: 0!important;359}360361.expandedtoc h3:hover {362 color: white!important;363}364365#tod h3:hover {366 color: white;367}368369#toc a {370 color: #ddd;371 text-decoration: none;372}373374#toc a:hover {375 color: white;376 text-decoration: underline;377}378379#toc ul {380 margin: 5px 0 12px 17px;381 padding: 0 7px 0 7px;382}383384#toc ul ul {385 margin-bottom: 0;386}387388#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
deleted:docs/_templates/layout.html-77 removed
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}&amp;check_keywords=yes&amp;area=default"/>8 <LongName>{{ docstitle }}</LongName>9</OpenSearchDescription>
deleted:docs/_templates/page.html-4 removed
deleted:docs/_templates/search.html-35 removed
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 */89{% 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 18body {19 font-family: {{ font_family }};20 font-size: 17px;21 background-color: white;22 color: #000;23 margin: 0;24 padding: 0;25}2627div.document {28 width: {{ page_width }};29 margin: 30px auto 0 auto;30}3132div.documentwrapper {33 float: left;34 width: 100%;35}3637div.bodywrapper {38 margin: 0 0 0 {{ sidebar_width }};39}4041div.sphinxsidebar {42 width: {{ sidebar_width }};43}4445hr {46 border: 1px solid #B1B4B6;47}48 49div.body {50 background-color: #ffffff;51 color: #3E4349;52 padding: 0 30px 0 30px;53}5455img.floatingflask {56 padding: 0 0 10px 10px;57 float: right;58}59 60div.footer {61 width: {{ page_width }};62 margin: 20px auto 30px auto;63 font-size: 14px;64 color: #888;65 text-align: right;66}6768div.footer a {69 color: #888;70}7172div.related {73 display: none;74}75 76div.sphinxsidebar a {77 color: #444;78 text-decoration: none;79 border-bottom: 1px dotted #999;80}8182div.sphinxsidebar a:hover {83 border-bottom: 1px solid #999;84}85 86div.sphinxsidebar {87 font-size: 15px;88 line-height: 1.5;89}9091div.sphinxsidebarwrapper {92 padding: 18px 10px;93}9495div.sphinxsidebarwrapper p.logo {96 padding: 0 0 20px 0;97 margin: 0;98 text-align: center;99}100 101div.sphinxsidebar h3,102div.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}110111div.sphinxsidebar h4 {112 font-size: 20px;113}114 115div.sphinxsidebar h3 a {116 color: #444;117}118119div.sphinxsidebar p.logo a,120div.sphinxsidebar h3 a,121div.sphinxsidebar p.logo a:hover,122div.sphinxsidebar h3 a:hover {123 border: none;124}125 126div.sphinxsidebar p {127 color: #555;128 margin: 10px 0;129}130131div.sphinxsidebar ul {132 margin: 10px 0;133 padding: 0;134 color: #000;135}136 137div.sphinxsidebar input {138 border: 1px solid #ccc;139 font-family: {{ font_family }};140 font-size: 14px;141}142143div.sphinxsidebar form.search input[name="q"] {144 width: 130px;145}146 147/* -- body styles ----------------------------------------------------------- */148 149a {150 color: #aa0000;151 text-decoration: underline;152}153 154a:hover {155 color: #dd0000;156 text-decoration: underline;157}158 159div.body h1,160div.body h2,161div.body h3,162div.body h4,163div.body h5,164div.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 172div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }173div.body h2 { font-size: 180%; }174div.body h3 { font-size: 150%; }175div.body h4 { font-size: 130%; }176div.body h5 { font-size: 100%; }177div.body h6 { font-size: 100%; }178 179a.headerlink {180 color: #ddd;181 padding: 0 4px;182 text-decoration: none;183}184 185a.headerlink:hover {186 color: #444;187 background: #eaeaea;188}189 190div.body p, div.body dd, div.body li {191 line-height: 1.4em;192}193194div.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}201202div.admonition tt.xref, div.admonition a tt {203 border-bottom: 1px solid #fafafa;204}205206dd div.admonition {207 margin-left: -60px;208 padding-left: 60px;209}210211div.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}219220div.admonition p.last {221 margin-bottom: 0;222}223224div.highlight {225 background-color: white;226}227228dt:target, .highlight {229 background: #FAF3E8;230}231232div.note {233 background-color: #eee;234 border: 1px solid #ccc;235}236 237div.seealso {238 background-color: #ffc;239 border: 1px solid #ff6;240}241 242div.topic {243 background-color: #eee;244}245 246p.admonition-title {247 display: inline;248}249 250p.admonition-title:after {251 content: ":";252}253254pre, tt {255 font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;256 font-size: 0.9em;257}258259img.screenshot {260}261262tt.descname, tt.descclassname {263 font-size: 0.95em;264}265266tt.descname {267 padding-right: 0.08em;268}269270img.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}275276table.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}282283table.docutils td, table.docutils th {284 border: 1px solid #888;285 padding: 0.25em 0.7em;286}287288table.field-list, table.footnote {289 border: none;290 -moz-box-shadow: none;291 -webkit-box-shadow: none;292 box-shadow: none;293}294295table.footnote {296 margin: 15px 0;297 width: 100%;298 border: 1px solid #eee;299 background: #fdfdfd;300 font-size: 0.9em;301}302303table.footnote + table.footnote {304 margin-top: -15px;305 border-top: none;306}307308table.field-list th {309 padding: 0 0.8em 0 0;310}311312table.field-list td {313 padding: 0;314}315316table.footnote td.label {317 width: 0px;318 padding: 0.3em 0 0.3em 0.5em;319}320321table.footnote td {322 padding: 0.3em 0.5em;323}324325dl {326 margin: 0;327 padding: 0;328}329330dl dd {331 margin-left: 30px;332}333334blockquote {335 margin: 0 0 0 30px;336 padding: 0;337}338339ul, ol {340 margin: 10px 0 10px 30px;341 padding: 0;342}343 344pre {345 background: #eee;346 padding: 7px 30px;347 margin: 15px -30px;348 line-height: 1.3em;349}350351dl pre, blockquote pre, li pre {352 margin-left: -60px;353 padding-left: 60px;354}355356dl dl pre {357 margin-left: -90px;358 padding-left: 90px;359}360 361tt {362 background-color: #E8EFF0;363 color: #222;364 /* padding: 1px 2px; */365}366367tt.xref, a tt {368 background-color: #E8EFF0;369 border-bottom: 1px solid white;370}371372a.reference {373 text-decoration: none;374 border-bottom: 1px dotted #bb0000;375}376377a.reference:hover {378 border-bottom: 1px solid #dd0000;379}380381a.footnote-reference {382 text-decoration: none;383 font-size: 0.7em;384 vertical-align: top;385 border-bottom: 1px dotted #bb0000;386}387388a.footnote-reference:hover {389 border-bottom: 1px solid #dd0000;390}391392a: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 &copy; 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]2inherit = basic3stylesheet = jinja.css
added:docs/_themes/LICENSE+37 added
1Copyright (c) 2010 by Armin Ronacher.23Some rights reserved.45Redistribution and use in source and binary forms of the theme, with or6without modification, are permitted provided that the following conditions7are met:89* Redistributions of source code must retain the above copyright10 notice, this list of conditions and the following disclaimer.1112* 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.1617* The names of the contributors may not be used to endorse or18 promote products derived from this software without specific19 prior written permission.2021We kindly ask you to only use these themes in an unmodified manner just22for Flask and Flask-related products, not for unrelated projects. If you23like the visual style and want to use it for your own projects, please24consider making some larger changes to the themes (such as changing25font faces, sizes, colors or margins).2627THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"28AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE29IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE30ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE31LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR32CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF33SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS34INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN35CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)36ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE37POSSIBILITY OF SUCH DAMAGE.
added:docs/_themes/README+31 added
1Flask Sphinx Styles2===================34This repository contains sphinx styles for Flask and Flask related5projects. To use this style in your Sphinx documentation, follow6this guide:781. put this folder as _themes into your docs folder. Alternatively9 you can also use git submodules to check out the contents there.102. add this to your conf.py:1112 sys.path.append(os.path.abspath('_themes'))13 html_theme_path = ['_themes']14 html_theme = 'flask'1516The following themes exist:1718- '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.2223The following options exist for the flask_small theme:2425 [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" badge
modified:docs/conf.py+9 added-4 removed
71 unmodified lines
7273# Options for HTML output74# -----------------------7576# 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.79html_style = 'style.css'76html_theme = 'jinja'77html_theme_path = ['_themes']7879# The name for this set of Sphinx documents. If None, it defaults to80# "<project> v<release> documentation".81#html_title = None
54 unmodified lines
136#latex_appendices = []137138# If false, no module index is generated.139latex_use_modindex = False140141html_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}