From: Armin Ronacher Date: Sun, 4 May 2008 18:48:03 +0000 (+0200) Subject: some small documentation style fixes X-Git-Tag: 2.0rc1~98 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b44952f776c2122c5bc9545a48db472cf3b8c57;p=jinja2.git some small documentation style fixes --HG-- branch : trunk --- diff --git a/docs/_static/style.css b/docs/_static/style.css index 7675bc2..536c546 100644 --- a/docs/_static/style.css +++ b/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%; +} diff --git a/docs/_templates/genindex.html b/docs/_templates/genindex.html index 2df98b6..9c09d0f 100644 --- a/docs/_templates/genindex.html +++ b/docs/_templates/genindex.html @@ -2,43 +2,35 @@ {% title = 'Index' %} {% block body %} -

Index

+

Index

- {% for key, dummy in genindexentries -%} - {{ key }} {% if not loop.last %}| {% endif %} - {%- endfor %} + {% for key, dummy in genindexentries -%} + {{ key }} {% if not loop.last %}| {% endif %} + {%- endfor %} +
-
- - {% for key, entries in genindexentries %} -

{{ key }}

-
-
-{%- breakat = genindexcounts[loop.index0] // 2 %} -{%- numcols = 1 %} -{%- numitems = 0 %} -{% for entryname, (links, subitems) in entries %} -
{%- if links -%}{{ entryname|e }} - {%- for link in links[1:] %}, [Link]{% endfor -%} - {%- else -%} -{{ entryname|e }} - {%- endif -%}
- {%- if subitems %} -
- {%- for subentryname, subentrylinks in subitems %} -
{{ subentryname|e }} - {%- for link in subentrylinks[1:] %}, [Link]{% endfor -%} -
- {%- endfor %} -
- {%- endif -%} -{%- numitems = numitems + 1 + len(subitems) -%} -{%- if numcols < 2 and numitems > breakat -%} -{%- numcols = numcols+1 -%} -
-{%- endif -%} -{%- endfor %} -
-{% endfor %} + {% for key, entries in genindexentries %} +

{{ key }}

+ + {%- for column in entries|slice(2) %}{% if column %} + + {%- endif %}{% endfor %} +
+ {%- for entryname, (links, subitems) in column %} +
{% if links %}{{ entryname|e }} + {% for link in links[1:] %}, [Link]{% endfor %} + {%- else %}{{ entryname|e }}{% endif %}
+ {%- if subitems %} +
+ {%- for subentryname, subentrylinks in subitems %} +
{{ subentryname|e }} + {%- for link in subentrylinks[1:] %}, [Link]{% endfor -%} +
+ {%- endfor %} +
+ {%- endif -%} + {%- endfor %} +
+ {% endfor %} {% endblock %} diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 83e48ae..c49ac13 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -3,8 +3,8 @@ Jinja2 Documentation - - + + {%- if builder != 'htmlhelp' %}