Skip to content

Fix rotted external links and migrate the link-check skip marker - #2666

Merged
chalin merged 3 commits into
docsy:mainfrom
chalin:chalin-m24-docsy-link-rot-2026-0626
Jun 26, 2026
Merged

chalin merged 3 commits into
docsy:mainfrom
chalin:chalin-m24-docsy-link-rot-2026-0626

Conversation

@chalin

@chalin chalin commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to the Lychee switch (#2665), landing the parked content fixes plus two small cleanups it unblocks.

  • Fix external links broken by upstream restructures (Hugo docs IA reorg, theme move under theme/, Google SEO and Mermaid relocations).
  • Remove the temporary content-rot exclude block from lychee.toml, now that those externals are fixed (it only existed to keep CI green until this lands).
  • Migrate the link-check skip marker from ?no-link-check to ?link-check=no — key=value form, clearer and extensible, matching the convention used on opentelemetry.io; the four content markers and the lychee.toml exclude regex are swapped together so the opt-out keeps working.

Verified: full online link check is 0 errors; check:format and check:markdown clean.

chalin added 3 commits June 26, 2026 16:55
A full Lychee run over the built site surfaced broken external links that
htmltest had masked with stale `refcache.json` entries. Fix them at the source:

- Hugo moved the theme under `theme/`, so repoint
  `github.com/google/docsy/blob|tree/main/{layouts,assets,i18n,go.mod}` links to
  `.../main/theme/...` (one `tree`-to-`blob` correction for a file link).
- Hugo restructured its documentation IA: update gohugo.io links whose anchors
  were renamed or whose pages moved (for example `/getting-started/installing/`
  to `/installation/`, `/variables/site/` to `/methods/site/`), linking
  page-level where a section no longer has a 1:1 anchor.
- Update the Google SEO starter guide link (`beginner/` to `fundamentals/`, drop
  a malformed `?hl=en/` parameter) and the Mermaid configuration link (dead
  docsify page to `mermaid.js.org`).
The preceding commit fixes the externals that upstream restructures had broken, so the temporary exclude block that masked them (added with the Lychee switch to keep CI green) is no longer needed.
Standardize on the key=value skip marker ?link-check=no (clearer and extensible) over the older ?no-link-check, matching the convention used on opentelemetry.io. Swap the four content markers and the lychee.toml exclude regex together so the opt-out keeps working.
@chalin chalin added this to the 0.16.0 milestone Jun 26, 2026
@chalin
chalin merged commit 93948e6 into docsy:main Jun 26, 2026
16 checks passed
@chalin
chalin deleted the chalin-m24-docsy-link-rot-2026-0626 branch June 26, 2026 21:08
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.

1 participant