Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote branch 'justinlilly/14083_modindex' into community_redux

  • Loading branch information...
commit 65e227a6bfe90b2df3f31bbf565d174b8f4c48b5 2 parents 688eed5 + 5284cb3
@jacobian jacobian authored
View
17 django_website/docs/templates/docs/modindex.html
@@ -1,17 +0,0 @@
-{% extends "docs/doc.html" %}
-
-{% block title %}Module Index | Django Documentation{% endblock %}
-{% block toc-wrapper %}{% endblock %}
-{% block current-page-title %}Module Index{% endblock %}
-
-{% block body %}
- <h1>Module Index</h1>
-
- <dl>
- {% for modname, collapse, cgroup, indent, fname, synops, pform, dep in doc.modindexentries %}
- <dt><a href="{{ fname }}"><tt class="literal xref">{{ modname }}</tt></a></dt>
- <dd>{{ synops }}</dd>
- {% endfor %}
- </dl>
-
-{% endblock %}
View
33 django_website/docs/templates/docs/py-modindex.html
@@ -0,0 +1,33 @@
+{% extends "docs/doc.html" %}
+
+{% block title %}Module Index | Django Documentation{% endblock %}
+{% block toc-wrapper %}{% endblock %}
+{% block current-page-title %}Module Index{% endblock %}
+
+{% block body %}
+<h1>Module Index</h1>
+
+<ul class="jump_links">
+ {% for letter, objects in doc.content %}
+ <a href="#{{ letter }}"><strong>{{ letter }}</strong></a>{% if not forloop.last %} | {% endif %}
+ {% endfor %}
+</ul>
+
+{% for letter, objects in doc.content %}
+<h3><a name="{{ letter }}">{{ letter|upper }}</a></h5>
+<ul>
+ {% for module_name, subtype, docname, path, platforms, qualifier, synopsis in objects %}
+ {% if docname %}
+ <li>
+ <a href="../{{ docname }}"><tt class="literal xref">{{ module_name }}</tt></a>
+ {% if synopsis %}
+ <span class="synopsis"><br />{{ synopsis }}</span>
+ {% endif %}
+ </li>
+ {% endif %}
+
+ {% endfor %}
+</ul>
+{% endfor %}
+
+{% endblock %}
View
4 media/css/docs/docs.css
@@ -2,4 +2,6 @@
#docs-search form { font-size: 92%; margin: 0; padding: 1em 1em 0; white-space: nowrap; }
form.search ul { list-style: none; margin: 0; padding: 0; }
form.search li { display: inline; padding-right: 1em; }
-form.search .query { width: 18em; }
+form.search .query { width: 18em; }
+#content-main .jump_links { font-size: 1.2em; margin-left: 0px; }
+.synopsis { padding-left: 10px; color: #222;}
Please sign in to comment.
Something went wrong with that request. Please try again.