mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +03:00
Fix(docs): Remove useless duplicates from menu.
This commit is contained in:
parent
358db1a811
commit
93571b8e7d
|
@ -453,3 +453,6 @@ ul.sponsor {
|
|||
padding: 0.4rem 0.6rem;
|
||||
}
|
||||
|
||||
.doc.doc-object.doc-class .doc.doc-heading {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -86,15 +86,19 @@
|
|||
{% endif %}
|
||||
|
||||
{% for toc_item in page.toc %}
|
||||
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||
</li>
|
||||
|
||||
{% for toc_item in toc_item.children %}
|
||||
<li>
|
||||
{% if not toc_item.url.startswith('#rest_framework.') %}
|
||||
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% for child in toc_item.children %}
|
||||
{% if not child.url.startswith('#rest_framework.') %}
|
||||
<li>
|
||||
<a href="{{ child.url }}">{{ child.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="promo">
|
||||
|
|
Loading…
Reference in New Issue
Block a user