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

docs: refactoring and cleanup #1658

Merged
merged 13 commits into from
Jun 16, 2022
Merged

docs: refactoring and cleanup #1658

merged 13 commits into from
Jun 16, 2022

Conversation

dmke
Copy link
Member

@dmke dmke commented Jun 15, 2022

I just wanted to add a small section about being a good netizen (for #1656), but ended up splitting the CLI usage examples into easier digestible parts.

By doing so usage/cli/examples/ would have been gone, and direct links (think: bookmarks) would yield a 404 Not Found error. Github Pages doesn't allow redirects (apart from ugly hacks involving <meta http-equiv="refresh" content="0; URL=...">), so I've kept the examples page as a landing page, but hidden from the main menu. Users following a direct link can use it reorient themselves.

Screenshot

image

I've also updated, changed, harmonized and reshuffled a lot of things:

  • Markdown links now use Hugo's cross reference helpers to resolve the target ([text](usage/cli#port-usage)[text]({{< ref "usage/cli" >}})).

  • dns/softlayer/ was redundant and I have removed it. I assumed this was overseen when refactoring PR Add DNS Provider for IBM Cloud (SoftLayer) #1487.

  • the CLI examples now consistently use long-form flags (--email instead of -m)

  • example email addresses are now consistent (you@example.com)

  • usage/dns/manual/ looked borked, I've recreated the example

  • I've added a link to Github discussions to the sidebar

  • the main body width is now constricted to max. 72em. I'm using a high-resolution, wide-screen monitor and now the text is not thinned over the whole screen. For resolutions less than ~1400px not much will change

    Screenshot

    maxwidth

  • The generated DNS provider files have now some meta data in their frontmatter. Using this meta data, I have reformatted the provider listing on dns/#dns-providers:

    Screenshot

    image

For easier comparison, I've uploaded the generated site to https://mm.dmke.org/lego/

dmke added 2 commits June 15, 2022 23:29
- use Hugo `ref` helper to resolve cross-links
- delete a renaming fragment (from go-acme#1487)
- replace placeholder email addresses (foo@bar.com → you@example.com)
- split examples into multiple pages
- restructure content a bit
- flesh out some sections
- add a section about load spikes (cf. go-acme#1656)
dmke added 6 commits June 16, 2022 20:54
Also use "you@example.com" instead of various other example
email addresses.
- hoist meta data into (generated) frontmatter
- use a custom Hugo shortcode to render DNS providers in
  tabular form
Splitting the content in multiple sub-sites broke links.
By keeping it hidden, this site serves as a soft-redirect
landing page.

The user won't immediately find the information an external
site might have hyperlinkes, but a short summary of gives
the user a fast overview on where to continue.
@dmke
Copy link
Member Author

dmke commented Jun 16, 2022

I'm now satisfied with the result and I have updated the PR description.

I tried to keep the commits small, but changes on the internal/dnsdocs/dns.md.tmpl inevitably produced also changes on the docs/content/dns/zz_*.md (who would've thunk?)

@dmke dmke marked this pull request as ready for review June 16, 2022 20:43
docs/layouts/shortcodes/tableofdnsproviders.html Outdated Show resolved Hide resolved
internal/dnsdocs/dns.md.tmpl Outdated Show resolved Hide resolved
Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

Great job, the doc lacked a bit of love, it's great that you took the time to improve it.

@ldez ldez merged commit 85f616f into go-acme:master Jun 16, 2022
@ldez ldez added this to the v4.8 milestone Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants