Skip to content

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

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

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

Conversation

@lukegalbraithrussell

@lukegalbraithrussell lukegalbraithrussell 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>
@lukegalbraithrussell
lukegalbraithrussell requested review from a team as code owners August 19, 2026 16:02
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.36%. Comparing base (b5982b9) to head (350abf2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #642      +/-   ##
==========================================
+ Coverage   72.26%   72.36%   +0.09%     
==========================================
  Files         238      238              
  Lines       20072    20072              
==========================================
+ Hits        14505    14525      +20     
+ Misses       4298     4277      -21     
- Partials     1269     1270       +1     

☔ 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.

@zimeg zimeg 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!

@zimeg zimeg 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
@zimeg zimeg 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
Contributor Author

@zimeg Added some unit tests!

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants