Skip to content

fix: use absolute paths for calendar and blog links, add htmltest config#2088

Open
TerryHowe wants to merge 2 commits into
helm:mainfrom
TerryHowe:fix/broken-links
Open

fix: use absolute paths for calendar and blog links, add htmltest config#2088
TerryHowe wants to merge 2 commits into
helm:mainfrom
TerryHowe:fix/broken-links

Conversation

@TerryHowe
Copy link
Copy Markdown
Contributor

Summary

  • Fix href="calendar/release"href="/calendar/release" in HomeCommunity component — the relative path breaks on all non-English locale pages (e.g. from /ja/, the link resolves to /ja/calendar/release which has no Netlify redirect; only /calendar/release is redirected to Google Calendar)
  • Fix href="blog/helm-dco"href="/blog/helm-dco" — same relative path issue across all i18n locale homepages
  • Add .htmltest.yml to configure bin/htmltest for this project, eliminating ~383K false-positive errors from htmltest while keeping meaningful checks:
    • IgnoreDirectoryMissingTrailingSlash: true — Docusaurus builds directory-based URLs; Netlify handles trailing-slash redirects natively, so these are not real broken links
    • CheckInternalHash: false — suppresses false positives from href="#" mobile nav toggles; Docusaurus already validates real anchor links at build time via onBrokenLinks: "throw"
    • IgnoreURLs: ["^(/[a-z]+)?/404$"] — Docusaurus builds only one global 404.html; locale-specific 404 pages (/de/404, /ja/404, etc.) in the language switcher do not exist as files but are handled at the CDN/server level

Test plan

  • bin/htmltest --skip-external passes with 0 errors after rebuilding (the two link fixes require a rebuild to reflect in the built HTML)
  • Verify /calendar/release still redirects to Google Calendar on the deployed preview
  • Verify /blog/helm-dco page loads correctly from all locale homepages

🤖 Generated with Claude Code

The calendar/release and blog/helm-dco hrefs were relative, causing
broken links on all non-English locale pages (e.g. /ja/calendar/release
has no Netlify redirect, only /calendar/release does).

Also add .htmltest.yml to configure htmltest for this project:
- IgnoreDirectoryMissingTrailingSlash: suppresses false positives from
  Docusaurus building directory-based URLs (Netlify handles trailing
  slash redirects natively)
- CheckInternalHash: false: skips empty hash (#) nav toggle links;
  Docusaurus already validates real anchor links via onBrokenLinks
- IgnoreURLs: skips locale-specific 404 pages that Docusaurus does
  not generate (only one global 404.html is built)

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
…an locale

Add Docusaurus {#anchor-id} explicit IDs to Russian translation headings so
that links using English anchor names resolve correctly:

- release_policy.md: Мажорные релизы → {#major-releases}
- charts.md: Файл Chart.yaml → {#the-chartyaml-file}
- charts.md: Файлы Schema → {#schema-files}
- advanced.md: Бэкенды хранения → {#storage-backends}
- quickstart.md: Инициализация репозитория чартов Helm → {#initialize-a-helm-chart-repository}
- examples.mdx: Драйвер → {#driver}
- charts_hooks.md: Политики удаления хуков → {#hook-deletion-policies}
- chart_repository.md: Сервер репозитория ChartMuseum → {#chartmuseum-repository-server}

Fixes Docusaurus broken anchor warnings during build.

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant