DOCS: Fixes to the add rtype procedures (#2187)

Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
Paul Dee 2023-03-17 04:05:16 +01:00 committed by GitHub
parent feecdd73d8
commit 2796c36a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,3 +251,32 @@ Add a new Markdown file to `documentation/functions/domain`. Copy an existing fi
- `parameter_types`: an object with parameter names as keys and TypeScript type names as values. Check out existing record documentation if youre not sure to put for a parameter. Note that this isnt displayed on the website, its only used to generate the `.d.ts` file.
The rest of the file is the documentation. You can use Markdown syntax to format the text.
Add the new file `FOO.md` to the documentation table of contents [`documentation/SUMMARY.md`](SUMMARY.md#domain-modifiers), and/or to the [`Service Provider specific`](SUMMARY.md#service-provider-specific) section if you made a record specific to a provider, and to the [`Record Modifiers`](SUMMARY.md#record-modifiers) section if you created any `*_BUILDER` or `*_HELPER` or similar functions for the new record type:
{% code title="documentation/SUMMARY.md" %}
```diff
...
* Domain Modifiers
...
* [DnsProvider](functions/domain/DnsProvider.md)
+ * [FOO](functions/domain/FOO.md)
* [FRAME](functions/domain/FRAME.md)
...
* Service Provider specific
...
* ClouDNS
* [CLOUDNS_WR](functions/domain/CLOUDNS_WR.md)
+ * ASDF
+ * [NINJA_RECORD](function/domain/FOO_NINJA.md)
* NS1
* [NS1_URLFWD](functions/domain/NS1_URLFWD.md)
...
* Record Modifiers
...
* [DMARC_BUILDER](functions/record/DMARC_BUILDER.md)
+ * [FOO_HELPER](functions/record/FOO_HELPER.md)
* [SPF_BUILDER](functions/record/SPF_BUILDER.md)
...
```
{% endcode %}