-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS: Trailing commas are no longer an issue #3248
DOCS: Trailing commas are no longer an issue #3248
Conversation
@@ -9,70 +9,6 @@ Solution: Use a "builder" to construct it for you. | |||
* [M365_BUILDER](language-reference/domain-modifiers/M365_BUILDER.md) | |||
* [SPF_BUILDER](language-reference/domain-modifiers/SPF_BUILDER.md) | |||
|
|||
# Trailing commas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem: Someone sees an old dnsconfig.js with END
and can't find it in the docs.
Suggestion:
END
You may see D()
statements written with END
at the end. For example:
{% code title="dnsconfig.js" %}
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
A("foo", "1.2.3.4"),
END);
{% endcode %}
As of DNSControl v4.15.0 these END
statements can be removed. END
is a no-op which was added for reasons that no longer matter. They can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Tom, for your feedback! I’ve incorporated it into this commit. You can preview the updated documentation here.
So is it better to not have trailing commas going forward? |
Both work. I encourage people to include the trailing comma because it makes "git diff" easier to read. Now that both work, there's no need for the "END" hack to force it to work. |
Ready for merge? |
BTW, the last I checked, the output generated by |
Looks like it only outputs the description of the END command itself:
That said, we can update the comment:
|
Sorry to rush you but I'm doing a point release today. I'm merging this. If further improvements are needed, at least doc-related PRs hit the website without waiting for a release. |
Yes, it's was ready for merge. 👍🏻 |
This pull request updates the documentation to reflect changes in v4.15.0, where
END
is no longer required in code examples, and trailing commas are no longer an issue. 🥳Fixes #3245