Skip to content

fix(docs): move generated API reference to /tools/ directory#304

Merged
polaz merged 1 commit intomainfrom
fix/#303-docs-tools-page-missing-sidebar--path-mismatch
Feb 5, 2026
Merged

fix(docs): move generated API reference to /tools/ directory#304
polaz merged 1 commit intomainfrom
fix/#303-docs-tools-page-missing-sidebar--path-mismatch

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Feb 5, 2026

Summary

  • Move generated file from docs/TOOLS.md to docs/tools/api-reference.md
  • Update sidebar link from /TOOLS to /tools/api-reference
  • Remove /TOOLS from ignoreDeadLinks (no longer needed)
  • Hide edit link for generated api-reference.md page
  • Update documentation and CLI help text references

Problem

The /TOOLS page was missing sidebar navigation because VitePress sidebar uses path prefix matching. The sidebar was defined for /tools/ but the file was at /TOOLS (root level, uppercase).

Solution

Move the generated file into the /tools/ directory so it inherits the sidebar configuration.

Closes #303

- Move generated file from docs/TOOLS.md to docs/tools/api-reference.md
- Update sidebar link from /TOOLS to /tools/api-reference
- Remove /TOOLS from ignoreDeadLinks (no longer needed)
- Hide edit link for generated api-reference.md page
- Update documentation and CLI help text references

Closes #303
Copilot AI review requested due to automatic review settings February 5, 2026 15:51
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 5, 2026

Test Coverage Report

Overall Coverage: 95.77%

Metric Percentage
Statements 95.24%
Branches 86.12%
Functions 94.35%
Lines 95.77%

View detailed coverage report

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a VitePress sidebar navigation issue where the auto-generated tool reference page at /TOOLS wasn't displaying the sidebar. The root cause was that VitePress uses path prefix matching, and the sidebar was configured for /tools/ but the file was at the root level as /TOOLS. The fix moves the generated file into the /tools/ directory with a clearer name.

Changes:

  • Move generated API reference from docs/TOOLS.md to docs/tools/api-reference.md
  • Update all documentation and CLI help references to point to the new path
  • Remove /TOOLS from VitePress ignoreDeadLinks configuration and hide edit link for the generated file

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/docs.yml Update docs build workflow to generate file at new path
README.md.in Update command examples and link to use new path
docs/.vitepress/config.mts Update sidebar link, remove dead link exception, hide edit link for generated file
docs/cli/list-tools.md Update all command examples to use new path
docs/tools/index.md.in Update documentation link and generation command
src/cli/list-tools.ts Update CLI help text and examples to reference new path

@polaz polaz merged commit 2b262b3 into main Feb 5, 2026
23 checks passed
@polaz polaz deleted the fix/#303-docs-tools-page-missing-sidebar--path-mismatch branch February 5, 2026 15:56
sw-release-bot bot pushed a commit that referenced this pull request Feb 5, 2026
## [6.58.1](v6.58.0...v6.58.1) (2026-02-05)

### Bug Fixes

* **docs:** move generated API reference to /tools/ directory ([#304](#304)) ([2b262b3](2b262b3)), closes [#303](#303)
@sw-release-bot
Copy link
Copy Markdown

sw-release-bot bot commented Feb 5, 2026

🎉 This PR is included in version 6.58.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: /TOOLS page missing sidebar — path mismatch

2 participants