mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
DOCS: Automatically make a table of contents (TOC) (#1778)
This commit is contained in:
committed by
GitHub
parent
b3e684326a
commit
fd42485d7d
28
docs/_includes/table-of-contents.md
Normal file
28
docs/_includes/table-of-contents.md
Normal file
@@ -0,0 +1,28 @@
|
||||
<a href="#{{include.html-anchor}}">
|
||||
<strong>{{include.title}}</strong>
|
||||
</a>
|
||||
{% if include.provider-jsId != nill %}
|
||||
for
|
||||
<a href="/providers/{{include.provider-jsId}}">
|
||||
<strong>
|
||||
{{include.provider-name}}
|
||||
</strong>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% for function in site.functions %}
|
||||
{% if function.path contains include.docs-functions-dir %}
|
||||
{% if include.docs-functions-dir == "domain" %}
|
||||
{% if include.provider-jsId == nill and function.provider == nill %}
|
||||
<li><a href="#{{function.name}}">{{function.name}}</a></li>
|
||||
{% endif %}
|
||||
{% if include.provider-jsId != nill and function.provider == include.provider-jsId %}
|
||||
<li><a href="#{{function.name}}">{{function.name}}</a></li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<li><a href="#{{function.name}}">{{function.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
Reference in New Issue
Block a user