1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
stackexchange-dnscontrol/docs/_includes/table-of-contents.md
Jeffrey Cafferata 67bbbb3596 DOCS: Fix DSL table of contents (#1783)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-10-30 13:57:22 -04:00

29 lines
992 B
Markdown

<a href="#{{include.html-anchor}}">
<strong>{{include.title}}</strong>
</a>
{% if include.provider-jsId != nill %}
for
<a href="{{ site.github.url }}/providers/{{include.provider-jsId | downcase}}">
<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>