Add import plugin to give it docs (#2428)

* wip: add import to make it have docs

Fake the import plugin further to give it proper docs. This should help
make it more discoverable.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Finish writing the documentation

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2019-01-06 03:41:47 +00:00
committed by Yong Tang
parent 652b9a69d8
commit fb32f7a358
2 changed files with 77 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ Comments may be started anywhere on a line.
Environment variables are supported and either the Unix or Windows form may be used: `{$ENV_VAR_1}`
or `{%ENV_VAR_2%}`.
You can use the `import` "plugin" to include parts of other files.
If CoreDNS cant find a Corefile to load it loads the following builtin one:
~~~ corefile
@@ -49,8 +51,7 @@ If CoreDNS cant find a Corefile to load it loads the following builtin one:
## Import
You can use the `import` "plugin" to include parts of other files, see <https://coredns.io/explugins/import>.
This is enabled by default.
You can use the `import` "plugin" to include parts of other files, see <https://coredns.io/plugins/import>.
## Snippets
@@ -133,3 +134,4 @@ Apache License 2.0
## See Also
The manual page for CoreDNS: coredns(1) and more documentation on <https://coredns.io>.
Also see the [*import*](https://coredns.io/plugins/import)'s documentation.