Skip to content
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

fix(docs): simplify examples #968

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

jameskimmel
Copy link
Contributor

No description provided.

Copy link
Member

@peterthomassen peterthomassen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks a lot better! :-) Some comments inline.

You do not need to close and re-create the pull request when you make changes. You can force-push to your branch, and the PR will update automatically.

@@ -172,12 +172,9 @@ affiliated with the respective account (see :ref:`manage-tokens` for details.)
stand-in for an IPv6 address. Replace those (including the ``<`` and ``>``)
with your respective values.

**Examples with headers** (recommended)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use some kind of subheading (not a regular paragraph)


curl "https://update.dedyn.io/?hostname=<your domain>&myipv4=1.2.3.4&myipv6=fd08::1234" \
--header "Authorization: Token <your token secret>"

**Examples without headers** (not recommended)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use some kind of subheading (not a regular paragraph)


Basic authentication with automatic IP detection (IPv4 **or** IPv6)::

curl --user <your domain>:<your token secret> https://update.dedyn.io/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent correctly like in examples above. Also applies to examples below.


Basic authentication with forced use of IPv4 (while preserving the IPv6 address from the DNS)::

curl --ipv4 --user <your domain>:<your token secret> "https://update.dedyn.io/&myipv6=preserve"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quoting from #956 (review):

  • Please make sure that all examples work
  • Please make sure that all examples are technically correct

Have you tested this?

The first query parameter should be indicated with ?, not with &. (The quotes can then also go away, they are also needed because Linux command lines have special treatment for &.)

docs/dyndns/update-api.rst Outdated Show resolved Hide resolved
Copy link
Member

@peterthomassen peterthomassen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see inline for nits and rendering issues.

When you're done, please squash and re-request review. Thanks :-)

@peterthomassen peterthomassen marked this pull request as draft September 16, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants