mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
adding docs again
This commit is contained in:
28
docs/js.md
Normal file
28
docs/js.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
# 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 consturct a
|
||||
[DNSConfig](https://godoc.org/github.com/StackExchange/dnscontrol#DNSConfig) object that will be passed to the go backend and operated on.
|
||||
|
||||
{% include funcList.md title="Top Level Functions" dir="global" %}
|
||||
|
||||
{% include funcList.md title="Domain Modifiers" dir="domain" %}
|
||||
|
||||
{% include funcList.md title="Record Modifiers" dir="record" %}
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
var f = function(){
|
||||
$("div.panel").removeClass("panel-success")
|
||||
var jmp = window.location.hash;
|
||||
if(jmp){
|
||||
$("div"+jmp).addClass("panel-success")
|
||||
}
|
||||
}
|
||||
f();
|
||||
$(window).on('hashchange',f);
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user