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
36
docs/js.md
36
docs/js.md
@ -8,6 +8,42 @@ title: JavaScript DSL
|
||||
DNSControl uses javascript as its primary input language to provide power and flexibility to configure your domains. The ultimate purpose of the javascript is to construct a
|
||||
[DNSConfig](https://godoc.org/github.com/StackExchange/dnscontrol/models#DNSConfig) object that will be passed to the go backend and operated on.
|
||||
|
||||
<table class="table-of-contents">
|
||||
<tr>
|
||||
<td>
|
||||
{% include table-of-contents.md
|
||||
docs-functions-dir="domain"
|
||||
html-anchor="domain-modifiers"
|
||||
title="Domain Modifiers"
|
||||
%}
|
||||
{% assign showProviders = 'AKAMAIEDGEDNS, AZURE_DNS, CLOUDFLAREAPI, ROUTE53' %}
|
||||
{% for provider in site.providers %}
|
||||
{% if showProviders contains provider.jsId %}
|
||||
{% include table-of-contents.md
|
||||
docs-functions-dir="domain"
|
||||
html-anchor="domain-modifiers"
|
||||
title="Domain Modifiers"
|
||||
provider-name=provider.name
|
||||
provider-jsId=provider.jsId
|
||||
%}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% include table-of-contents.md
|
||||
docs-functions-dir="global"
|
||||
html-anchor="top-level-functions"
|
||||
title="Top Level Functions"
|
||||
%}
|
||||
{% include table-of-contents.md
|
||||
docs-functions-dir="record"
|
||||
html-anchor="record-modifiers"
|
||||
title="Record Modifiers"
|
||||
%}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{% include funcList.md title="Top Level Functions" dir="global" %}
|
||||
|
||||
{% include funcList.md title="Domain Modifiers" dir="domain" %}
|
||||
|
Reference in New Issue
Block a user