Skip to content

Update stale docs.viam.com links to canonical URLs - #1300

Merged
Naveed Jooma (njooma) merged 2 commits into
viamrobotics:mainfrom
jeremyrose-viam:fix/stale-docs-viam-com-links
Nov 3, 2026
Merged

Naveed Jooma (njooma) merged 2 commits into
viamrobotics:mainfrom
jeremyrose-viam:fix/stale-docs-viam-com-links

Conversation

@jeremyrose-viam

@jeremyrose-viam Jeremy Rose (jeremyrose-viam) commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What

Repoints docs.viam.com links in docstrings and the README that resolve only via redirect/alias to their canonical current URL. 315 links across 31 files — 278 drop a /dev/ prefix, 24 drop an /appendix/ prefix, 12 are /operate/-path moves, plus 1 one-off page move. No code changes — every touched line is a docstring or README prose. Where a link had a #anchor, it's preserved whenever that anchor is still valid on the destination page (verified live), and dropped only where the destination genuinely lacks it.

Why

The docs site moved its reference pages out from under /dev/... to their current paths in an April 2026 restructure (viamrobotics/docs#4963), leaving the old paths as alias/redirect stubs; later content moves (/appendix/, /operate/) account for the rest. A nightly org-wide link checker (viamrobotics/docs#5170) has been flagging these as stale ever since — they still work for readers today via redirect, just no longer point at the canonical URL.

How

Mechanical find/replace, no semantic changes. Each destination URL came from the docs site's own link-checker script (check_org_docs_links.py), which already verified it resolves live (HTTP 200, not another redirect). Note: that checker's own stale-redirect classification doesn't check anchor validity when the path also changes, so its reported destination always drops the anchor — I separately verified each anchor against the live page and restored it where still valid, rather than relying on the checker's output as-is.

Validation

Ran the pinned toolchain directly (uv run make lint, make typecheck, ruff format --check) against this branch: all pass. A link-checker run against this branch drops viam-python-sdk's docs.viam.com findings from 315 → 0.

Refs viamrobotics/docs#5170

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!

component function
base is_moving
board gpio_pin_by_name
button push
genericcomponent do_command
camera get_images
encoder get_position
motor is_moving
sensor get_readings
servo get_position
switch get_position
arm get_end_position
gantry get_lengths
gripper is_moving
movement_sensor get_linear_acceleration
input_controller get_controls
pose_tracker get_poses
power_sensor get_power
motion get_pose
vision get_properties
mlmodel metadata
genericservice do_command
slam get_point_cloud_map
audio_in get_properties
audio_out get_properties

@viambot

viambot commented Oct 23, 2026

Copy link
Copy Markdown
Member

👋 Thanks for requesting a review from the team!

We aim to review PRs within one business day. If this is urgent
or blocking you, please reach out in #team-sdk and
we'll prioritize it.

Mechanical find/replace: repoint docs.viam.com links that resolve only
via redirect/alias (mostly the /dev/ prefix dropped in the docs site's
April 2026 restructure) to their canonical current URL. Preserves the
original #anchor whenever it's still valid on the destination page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Several stale links resolved to their canonical page but dropped a
still-useful #anchor because the checker couldn't verify anchor
validity across a path change. Restored anchors that genuinely exist
(gripper is_moving -> ismoving, data-client's renamed
UpdateBoundingBox method) and repointed three module-guide links that
had fallen back to the wrong page in the restructure (upload/add-a-
resource content now lives on deploy-a-module, not write-a-driver-
module; namespace creation is documented under module-reference's
organization-namespace section).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@njooma
Naveed Jooma (njooma) merged commit 49e71f9 into viamrobotics:main Nov 3, 2026
12 of 14 checks passed
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.

4 participants