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;
|
padding: 0.4rem 0.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.doc.doc-object.doc-class .doc.doc-heading {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
|
@ -86,15 +86,19 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for toc_item in page.toc %}
|
{% for toc_item in page.toc %}
|
||||||
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
{% if not toc_item.url.startswith('#rest_framework.') %}
|
||||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
||||||
</li>
|
|
||||||
|
|
||||||
{% for toc_item in toc_item.children %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||||
</li>
|
</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 %}
|
{% endfor %}
|
||||||
|
|
||||||
<div class="promo">
|
<div class="promo">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user