Skip to content

fix(docs): remove /docs/ prefix from internal server installation links#855

Open
tmchow wants to merge 1 commit intokeploy:mainfrom
tmchow:fix/3649-broken-anchors-server-prefix
Open

fix(docs): remove /docs/ prefix from internal server installation links#855
tmchow wants to merge 1 commit intokeploy:mainfrom
tmchow:fix/3649-broken-anchors-server-prefix

Conversation

@tmchow
Copy link
Copy Markdown

@tmchow tmchow commented May 4, 2026

What has changed?

Replaces /docs/server/installation/ with /server/installation/ in 16 internal Markdown links across versioned_docs/version-2.0.0/, version-3.0.0/, and version-4.0.0/. Inside Docusaurus versioned docs, internal links resolve through the active version's namespace, so the /docs/ prefix is wrong and surfaces as broken-anchor warnings during npm run build.

External links to https://keploy.io/docs/server/... are intentionally left alone because those resolve against the deployed site, where the /docs/ segment is part of the public URL.

Refs keploy/keploy#3649 (the issue lives in keploy/keploy because keploy/docs does not use issues; #3649 below is the keploy/keploy issue number, not a keploy/docs reference).

Refs #3649

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Documentation update (if none of the other choices apply).

How Has This Been Tested?

grep -rn '](\/docs\/server\/' versioned_docs --include='*.md' returns no matches after the change, where it returned 16 before. The 4 remaining /docs/server/ references are all https://keploy.io/... external URLs and are unchanged.

prettier --check against the touched files passes; the version-3.0.0/installation/windows.md hunk includes a single blank-line removal that prettier auto-applied while writing my edits, which keeps the file in compliance with the project's prettier config rather than fighting it.

I have not been able to run a full npm run build here because the dev server install pulls a large dependency tree, but the file-level link rewrite is mechanical and covers exactly the broken-anchor pattern listed in the issue.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Thank you and congratulations 🎉 for opening your very first pull request in keploy

Copy link
Copy Markdown
Contributor

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 updates versioned documentation links so internal installation-guide links no longer include an extra /docs/ prefix, aligning them with the repo’s Docusaurus routing setup for docs pages.

Changes:

  • Replaces /docs/server/installation/ with /server/installation/ in versioned docs for v2.0.0, v3.0.0, and v4.0.0.
  • Updates both “What’s Next?” and “Back to Installation Guide” links in the affected installation/native setup pages.
  • Includes a small formatting-only blank-line cleanup in versioned_docs/version-3.0.0/installation/windows.md.

Reviewed changes

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

Show a summary per file
File Description
versioned_docs/version-4.0.0/keploy-explained/windows-wsl.md Fixes internal follow-up links after the Windows WSL setup guide.
versioned_docs/version-4.0.0/keploy-explained/mac-linux.md Fixes internal follow-up links after the macOS/Linux VM setup guide.
versioned_docs/version-4.0.0/installation/windows.md Fixes the “Start Capturing Test Cases” link in the Windows install doc.
versioned_docs/version-4.0.0/installation/macos.md Fixes the “Start Capturing Test Cases” link in the macOS install doc.
versioned_docs/version-4.0.0/installation/linux.md Fixes the “Start Capturing Test Cases” link in the Linux install doc.
versioned_docs/version-3.0.0/keploy-explained/windows-wsl.md Fixes internal follow-up links after the Windows WSL setup guide for v3 docs.
versioned_docs/version-3.0.0/keploy-explained/mac-linux.md Fixes internal follow-up links after the macOS/Linux VM setup guide for v3 docs.
versioned_docs/version-3.0.0/installation/windows.md Fixes the install-guide link and includes a formatting-only blank-line removal.
versioned_docs/version-3.0.0/installation/macos.md Fixes the “Start Capturing Test Cases” link in the macOS install doc for v3.
versioned_docs/version-3.0.0/installation/linux.md Fixes the “Start Capturing Test Cases” link in the Linux install doc for v3.
versioned_docs/version-2.0.0/keploy-explained/mac-linux.md Fixes internal follow-up links after the macOS/Linux VM setup guide for v2 docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Refs keploy/keploy#3649.

Docusaurus internal links inside versioned docs route via /<route>, not
/docs/<route>. The 16 internal links to /docs/server/installation/
break when Docusaurus resolves them, which surfaces as the broken-anchor
warnings reported in the issue. Replacing with /server/installation/
makes the links resolve to the correct page in each version namespace.

External keploy.io URLs that legitimately include /docs/ in the
path are left alone.

Signed-off-by: Trevin Chow <trevin@trevinchow.com>
@tmchow tmchow force-pushed the fix/3649-broken-anchors-server-prefix branch from 0b1fd65 to 164d5d3 Compare May 5, 2026 21:34
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.

2 participants