Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some small documentation style fixes

--HG--
branch : trunk
  • Loading branch information...
commit 6b44952f776c2122c5bc9545a48db472cf3b8c57 1 parent 9d472df
@mitsuhiko authored
View
32 docs/_static/style.css
@@ -8,7 +8,8 @@ body {
}
div.footer {
- padding: 5px;
+ padding: 8px;
+ font-size: 11px;
text-align: center;
}
@@ -111,7 +112,7 @@ p, li, dd, dt, blockquote {
}
p {
- line-height: 150%;
+ line-height: 20px;
margin-bottom: 0;
margin-top: 10px;
text-align: justify;
@@ -136,6 +137,12 @@ li, dt {
dt {
font-weight: bold;
+ color: #000;
+}
+
+dd {
+ margin-top: 10px;
+ line-height: 20px;
}
th {
@@ -254,3 +261,24 @@ table.indextable td {
vertical-align: top;
width: 50%;
}
+
+table.indextable dl dd {
+ font-size: 11px;
+}
+
+table.indextable dl dd a {
+ color: #000;
+}
+
+dl.function dt,
+dl.class dt {
+ font-weight: normal;
+}
+
+dt .descname {
+ font-weight: bold;
+}
+
+dl dt big {
+ font-size: 100%;
+}
View
64 docs/_templates/genindex.html
@@ -2,43 +2,35 @@
{% title = 'Index' %}
{% block body %}
- <h1 id="index">Index</h1>
+ <h1 id="index">Index</h1>
- {% for key, dummy in genindexentries -%}
- <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
- {%- endfor %}
+ {% for key, dummy in genindexentries -%}
+ <a href="#{{ key }}"><strong>{{ key }}</strong></a> {% if not loop.last %}| {% endif %}
+ {%- endfor %}
+ <hr>
- <hr />
-
- {% for key, entries in genindexentries %}
-<h2 id="{{ key }}">{{ key }}</h2>
-<table class="indextable"><tr><td>
-<dl>
-{%- breakat = genindexcounts[loop.index0] // 2 %}
-{%- numcols = 1 %}
-{%- numitems = 0 %}
-{% for entryname, (links, subitems) in entries %}
-<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 -%}
-{%- numitems = numitems + 1 + len(subitems) -%}
-{%- if numcols < 2 and numitems > breakat -%}
-{%- numcols = numcols+1 -%}
-</dl></td><td><dl>
-{%- endif -%}
-{%- endfor %}
-</dl></td></tr></table>
-{% endfor %}
+ {% 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>
+ {%- endif %}{% endfor %}
+ </tr></table>
+ {% endfor %}
{% endblock %}
View
27 docs/_templates/layout.html
@@ -3,8 +3,8 @@
<head>
<title>Jinja2 Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
- <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
+ <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css">
+ <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css">
{%- if builder != 'htmlhelp' %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
@@ -19,26 +19,26 @@
{%- if use_opensearch and builder != 'htmlhelp' %}
<link rel="search" type="application/opensearchdescription+xml"
title="Search within {{ docstitle }}"
- href="{{ pathto('_static/opensearch.xml', 1) }}"/>
+ href="{{ pathto('_static/opensearch.xml', 1) }}">
{%- endif %}
{%- if hasdoc('about') %}
- <link rel="author" title="About these documents" href="{{ pathto('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') }}" />
+ <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') }}" />
+ <link rel="copyright" title="Copyright" href="{{ pathto('copyright') }}">
{%- endif %}
- <link rel="top" title="{{ docstitle }}" href="{{ pathto('index') }}" />
+ <link rel="top" title="{{ docstitle }}" href="{{ pathto('index') }}">
{%- if parents %}
- <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
+ <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 }}" />
+ <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 }}" />
+ <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}">
{%- endif %}
</head>
<body>
@@ -66,7 +66,8 @@ <h1 class="heading"><a href="{{ pathto('index') }}"><span>Jinja</span></a></h1>
</div>
</div>
<div class="footer">
- © Copyright 2008 by the <a href="http://pocoo.org/">Pocoo Team</a>.
+ © Copyright 2008 by the <a href="http://pocoo.org/">Pocoo Team</a>,
+ documentation generated by <a href="http://sphinx.pocoo.org/">Sphinx</a>
</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.