Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge remote branch 'justinlilly/14083_modindex' into community_redux

  • Loading branch information...
commit 65e227a6bfe90b2df3f31bbf565d174b8f4c48b5 2 parents 688eed5 + 5284cb3
Jacob Kaplan-Moss authored February 01, 2011
17  django_website/docs/templates/docs/modindex.html
... ...
@@ -1,17 +0,0 @@
1  
-{% extends "docs/doc.html" %}
2  
-
3  
-{% block title %}Module Index | Django Documentation{% endblock %}
4  
-{% block toc-wrapper %}{% endblock %}
5  
-{% block current-page-title %}Module Index{% endblock %}
6  
-
7  
-{% block body %}
8  
-  <h1>Module Index</h1>
9  
-
10  
-  <dl>
11  
-  {% for modname, collapse, cgroup, indent, fname, synops, pform, dep in doc.modindexentries %}
12  
-    <dt><a href="{{ fname }}"><tt class="literal xref">{{ modname }}</tt></a></dt>
13  
-    <dd>{{ synops }}</dd>
14  
-  {% endfor %}
15  
-  </dl>
16  
-
17  
-{% endblock %}
33  django_website/docs/templates/docs/py-modindex.html
... ...
@@ -0,0 +1,33 @@
  1
+{% extends "docs/doc.html" %}
  2
+
  3
+{% block title %}Module Index | Django Documentation{% endblock %}
  4
+{% block toc-wrapper %}{% endblock %}
  5
+{% block current-page-title %}Module Index{% endblock %}
  6
+
  7
+{% block body %}
  8
+<h1>Module Index</h1>
  9
+
  10
+<ul class="jump_links">
  11
+    {% for letter, objects in doc.content %}
  12
+    <a href="#{{ letter }}"><strong>{{ letter }}</strong></a>{% if not forloop.last %} | {% endif %}
  13
+    {% endfor %}
  14
+</ul>
  15
+
  16
+{% for letter, objects in doc.content %}
  17
+<h3><a name="{{ letter }}">{{ letter|upper }}</a></h5>
  18
+<ul>
  19
+    {% for module_name, subtype, docname, path, platforms, qualifier, synopsis in objects %}
  20
+    {% if docname %}
  21
+    <li>
  22
+        <a href="../{{ docname }}"><tt class="literal xref">{{ module_name }}</tt></a>
  23
+        {% if synopsis %}
  24
+        <span class="synopsis"><br />{{ synopsis }}</span>
  25
+        {% endif %}
  26
+    </li>
  27
+    {% endif %}
  28
+
  29
+    {% endfor %}
  30
+</ul>
  31
+{% endfor %}
  32
+
  33
+{% endblock %}
4  media/css/docs/docs.css
@@ -2,4 +2,6 @@
2 2
 #docs-search form { font-size: 92%; margin: 0; padding: 1em 1em 0; white-space: nowrap; }
3 3
 form.search ul { list-style: none; margin: 0; padding: 0; }
4 4
 form.search li { display: inline; padding-right: 1em; }
5  
-form.search .query { width: 18em; }
  5
+form.search .query { width: 18em; }
  6
+#content-main .jump_links { font-size: 1.2em; margin-left: 0px; }
  7
+.synopsis { padding-left: 10px; color: #222;}

0 notes on commit 65e227a

Please sign in to comment.
Something went wrong with that request. Please try again.