Skip to content

[Claude CI Failure] Fix all 10 broken internal /cli/ anchors after reference page split#5133

Closed
btshrewsbury-viam wants to merge 2 commits into
mainfrom
claude/ci-fix-cli-anchors-5127
Closed

[Claude CI Failure] Fix all 10 broken internal /cli/ anchors after reference page split#5133
btshrewsbury-viam wants to merge 2 commits into
mainfrom
claude/ci-fix-cli-anchors-5127

Conversation

@btshrewsbury-viam

Copy link
Copy Markdown
Collaborator

What

docs/cli/_index.md was refactored from one long page into subpages (now a landing page pointing at /cli/overview/), and the section content moved to docs/cli/reference.md. Every in-repo link that still pointed at the old /cli/# single-page structure now 404s/hash-fails, and run-htmltest-external (#5127) flags them as hash does not exist.

This retargets all 10 internal broken anchors found by a repo-wide grep for /cli/# (grep -rn '(/cli/#[^)]\+)' docs/**/*.md), across 3 files — matching the count from the full htmltest run log for 28538922239:

File Old (broken) New Note
docs/build-modules/manage-modules.md /cli/#using-the-build-subcommand /cli/reference/#using-the-build-subcommand clean retarget
docs/build-modules/manage-modules.md /cli/#using-the---org-id-and---public-namespace-arguments /cli/reference/#using-the---org-id-and---public-namespace-arguments clean retarget
docs/build-modules/manage-modules.md /cli/#using-the---platform-argument /cli/reference/#using-the---platform-argument clean retarget
docs/build-modules/manage-modules.md /cli/#using-the---version-argument /cli/reference/#using-the---version-argument clean retarget
docs/build-modules/manage-modules.md /cli/#create-an-organization-api-key /cli/reference/#organizations-api-key-create renamed section — heading is now `organizations api-key create`
docs/build-modules/manage-modules.md /cli/#upload-validation /cli/reference/#upload-validation clean retarget
docs/build-modules/manage-modules.md /cli/#module (×2) /cli/reference/#module clean retarget
docs/cli/manage-your-fleet.md /cli/#machines-alias-robots-and-machine /cli/reference/#machines-aliases-robots-robot-machine clean retarget
docs/cli/manage-data.md /cli/#data /cli/reference/#data clean retarget

Every target was verified directly against the current heading text in docs/cli/reference.md (e.g. ## \machines` (aliases `robots`, `robot`, `machine`)#machines-aliases-robots-robot-machine, ## `data`#data, ## `module`#module, ### `organizations api-key create`#organizations-api-key-create`).

Out of scope

Of the 347 errors in the full htmltest run, only these 10 are internal hash does not exist failures. The remainder (~337: external 429/404/403, one dead canonical link to a removed viam.com/post/guardian blog post, timeouts) are third-party link churn/rate-limiting outside this repo's control and are not touched by this PR.

Refs #5127 (fixes the internal-anchor class of failures in full; does not resolve the external-link failures, so intentionally not Fixes).

Verification

  • npx prettier --check on the 3 changed files: clean (prettier also normalized 4 pre-existing blank-line-before-nested-list issues in manage-modules.md, required by the CI-pinned prettier version; no prose or link text affected)
  • npx markdownlint-cli --config .markdownlint.yaml on the 3 changed files: 0 errors
  • vale binary is unavailable in this sandbox; not a concern here since no prose changed, only href targets
  • make build-prod was not run in this sandbox (Hugo submodule not reachable in this GitHub-scoped session); anchor targets were instead verified by grepping the actual current headings in docs/cli/reference.md

Generated by Claude Code

docs/cli/_index.md was refactored into subpages, with content moving to
docs/cli/reference.md. Retarget every remaining /cli/#... link to the
current /cli/reference/#... anchors, verified against the actual
headings in docs/cli/reference.md. Fixes the internal-anchor class of
run-htmltest-external failures reported in #5127.
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 0c7947b
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6a4594339cc981000898256a
😎 Deploy Preview https://deploy-preview-5133--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 44 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Jul 1, 2026
npx prettier resolves to a newer local version (3.8.1) that removes
blank lines before nested lists; CI's creyD/prettier_action pins
3.2.5, which requires them. Restore the blank lines so
prettier@3.2.5 --check passes.
btshrewsbury-viam added a commit that referenced this pull request Jul 1, 2026
PR #5133 passed a local `npx prettier --check` but failed CI's
prettier check: npx resolved an unpinned `prettier` to a newer local
version (3.8.1) that formats blank-lines-before-nested-lists
differently than the 3.2.5 that .github/workflows/prettier-lint.yml
pins. Pin the pre-PR check commands to prettier@3.2.5 in both
CLAUDE.md and the triage prompt, and add a step to the triage prompt
to verify the pushed branch's actual CI status rather than trusting
a local check alone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants