Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
5a6bdd01
Commit
5a6bdd01
authored
Nov 19, 2014
by
Dougal Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Highlight H1's in the TOC
parent
df33538f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
docs_theme/base.html
+15
-6
No files found.
docs_theme/base.html
View file @
5a6bdd01
...
@@ -106,12 +106,21 @@
...
@@ -106,12 +106,21 @@
<div
id=
"table-of-contents"
>
<div
id=
"table-of-contents"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{% for toc_item in toc %}
{% for toc_item in toc %}
<li
class=
"{% if loop.first %}main{% endif %} {% if toc_item.active %}main{% endif %}"
><a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
</li>
<li
class=
"main {% if toc_item.active %}main{% endif %}"
>
{% for toc_item in toc_item.children %}
<a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
<li><a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
</li>
</li>
{% endfor %} {% endfor %} {# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} {% if current_page.input_path == 'index.md' %}
{% for toc_item in toc_item.children %}
<li>
<a
href=
"{{ toc_item.url }}"
>
{{ toc_item.title }}
</a>
</li>
{% endfor %}
{% endfor %}
{# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #}
{% if current_page.input_path == 'index.md' %}
<div
class=
"promo"
>
<div
class=
"promo"
>
<hr/>
<hr/>
<script
type=
"text/javascript"
src=
"//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework"
id=
"_fusionads_js"
></script>
<script
type=
"text/javascript"
src=
"//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework"
id=
"_fusionads_js"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment