Skip to content

🐛fix: normalize file paths for cross-platform compatibility#917

Merged
kubestellar-prow[bot] merged 1 commit intokubestellar:mainfrom
Janhvibabani:fix/normalize-windows-path
Feb 3, 2026
Merged

🐛fix: normalize file paths for cross-platform compatibility#917
kubestellar-prow[bot] merged 1 commit intokubestellar:mainfrom
Janhvibabani:fix/normalize-windows-path

Conversation

@Janhvibabani
Copy link
Copy Markdown
Contributor

@Janhvibabani Janhvibabani commented Jan 29, 2026

📌 Fixes

Fixes #914


📝 Summary of Changes

This PR normalizes collected file paths to use forward slashes (/) to ensure
consistent, cross-platform behavior across Windows, Linux, and macOS.

Previously, Windows-style backslashes (\) could lead to inconsistent page
resolution and OS-specific build behavior.


Changes Made

  • Normalized relativePath to use forward slashes before pushing it to the
    collected files list
  • Ensured consistent path handling across Windows and Unix-based systems
  • Improved determinism of _meta.json page resolution during build

Checklist

Please ensure the following before submitting your PR:

  • I have reviewed the project's contribution guidelines.
  • I have written unit tests for the changes (if applicable).
  • I have updated the documentation (if applicable).
  • I have tested the changes locally and ensured they work as expected.
  • My code follows the project's coding standards.

Screenshots or Logs (if applicable)


👀 Reviewer Notes

Add any special notes for the reviewer here

Copilot AI review requested due to automatic review settings January 29, 2026 15:20
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jan 29, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 29, 2026

Deploy Preview for kubestellar-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 55a035f
🔍 Latest deploy log https://app.netlify.com/projects/kubestellar-docs/deploys/6981977b2416f800081658e1
😎 Deploy Preview https://deploy-preview-917--kubestellar-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow kubestellar-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 29, 2026
@kubestellar-prow kubestellar-prow Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 29, 2026
@github-actions github-actions Bot added the pages label Jan 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Welcome to KubeStellar! 🚀 Thank you for submitting this Pull Request.

Before your PR can be merged, please ensure:

DCO Sign-off - All commits must be signed off with git commit -s to certify the Developer Certificate of Origin

PR Title - Must start with an emoji: ✨ (feature), 🐛 (bug fix), 📖 (docs), 🌱 (infra/tests), ⚠️ (breaking change)

Getting Started with KubeStellar:

Contributor Resources:


🌟 Help KubeStellar Grow - We Need Adopters!

Our roadmap is driven entirely by adopter feedback. Whether you're using KubeStellar yourself or know someone who could benefit from multi-cluster Kubernetes:

📋 Take our Multi-Cluster Survey - Share your use cases and help shape our direction!


A maintainer will review your PR soon. Feel free to ask questions in the comments or on Slack!

@kubestellar-prow
Copy link
Copy Markdown

Hi @Janhvibabani. Thanks for your PR.

I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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 fixes a cross-platform compatibility issue where Windows-style backslashes in file paths caused build failures due to path mismatch during _meta validation. The fix normalizes all collected file paths to use forward slashes, ensuring consistent behavior across Windows, Linux, and macOS.

Changes:

  • Normalized relativePath to use forward slashes in the getAllDocFiles function by replacing backslashes with forward slashes

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

Comment thread src/app/docs/page-map.ts
@Janhvibabani
Copy link
Copy Markdown
Contributor Author

cc @oksaumya

Signed-off-by: JANHVI BABANI <114232474+Janhvibabani@users.noreply.github.com>
@Janhvibabani Janhvibabani force-pushed the fix/normalize-windows-path branch from 589b223 to 55a035f Compare February 3, 2026 06:36
@Janhvibabani
Copy link
Copy Markdown
Contributor Author

@oksaumya i have addressed copilots suggestions of adding comments, can you review the PR it has been pending for many days.

@oksaumya
Copy link
Copy Markdown
Member

oksaumya commented Feb 3, 2026

/ok-to-test

@kubestellar-prow kubestellar-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 3, 2026
@oksaumya
Copy link
Copy Markdown
Member

oksaumya commented Feb 3, 2026

/lgtm

@kubestellar-prow kubestellar-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Feb 3, 2026
@kubestellar-prow
Copy link
Copy Markdown

LGTM label has been added.

DetailsGit tree hash: 975f637b13c55283a3c365c53e5637786145eb51

@oksaumya
Copy link
Copy Markdown
Member

oksaumya commented Feb 3, 2026

/approve

@kubestellar-prow
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oksaumya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2026
@kubestellar-prow kubestellar-prow Bot merged commit 0af03e4 into kubestellar:main Feb 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. frontend lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. pages size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Page map validation fails on Windows due to path separator mismatch

3 participants