Skip to content

fix: use docs site paths for command reference See also links - #642

Open
lukegalbraithrussell wants to merge 3 commits into
mainfrom
docs-reference-links
Open

fix: use docs site paths for command reference See also links#642
lukegalbraithrussell wants to merge 3 commits into
mainfrom
docs-reference-links

Conversation

@lukegalbraithrussell

@lukegalbraithrusselllukegalbraithrussell commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

The generated command reference "See also" links pointed to bare slugs (e.g. slack_app_delete) that do not properly resolve on the docs site, thus dead-linking.

This changes docgen to emit absolute docs site paths (/tools/slack-cli/reference/commands/<name>/), matching the link convention already used in the hand-authored reference docs (e.g. docs/reference/experiments.md).

Changes

  • Added a commandsDocsURLPath constant and commandDocsURL() helper in cmd/docgen/docgen.go.
  • Applied it to both the parent and child links in the "See also" section.
  • Regenerated all command reference files via slack docgen ./docs/reference.

🤖 Generated with Claude Code

The generated command reference "See also" links pointed to bare slugs
(e.g. slack_app_delete) that do not resolve on the docs site. Emit
absolute docs site paths (/tools/slack-cli/reference/commands/<name>/)
matching the convention used in the hand-authored reference docs.
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecovBot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.33%. Comparing base (b5982b9) to head (791f695).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #642 +/- ##
==========================================
+ Coverage 72.26% 72.33% +0.07% 
==========================================
Files 238 238 Lines 20072 20072 ==========================================
+ Hits 14505 14520 +15 + Misses 4298 4280 -18 - Partials 1269 1272 +3 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zimegzimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lukegalbraithrussell Thanks immense for catching this 🤓

Before merging it'd be great to add a few tests to prevent regressing on this logic but no blocker!

@zimegzimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented docs M-T: Documentation work only semver:patch Use on pull requests to describe the release version increment labels Aug 19, 2026
@zimegzimeg added this to the Next Release milestone Aug 19, 2026
Add Test_commandDocsURL for the link helper and Test_genMarkdownCommand
to guard that the "See also" section emits docs site paths for both the
parent and child links rather than bare slugs.
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@lukegalbraithrussell

Copy link
Copy Markdown
ContributorAuthor

@zimeg Added some unit tests!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documenteddocsM-T: Documentation work onlysemver:patchUse on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lukegalbraithrussell@zimeg@haleychaas