Skip to content

Conversation

@Janhvibabani
Copy link
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

Signed-off-by: JANHVI BABANI <114232474+Janhvibabani@users.noreply.github.com>
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
@kubestellar-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kproche for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@netlify
Copy link

netlify bot commented Jan 29, 2026

Deploy Preview for kubestellar-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 589b223
🔍 Latest deploy log https://app.netlify.com/projects/kubestellar-docs/deploys/697b7ab289a7ff0008657f9c
😎 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
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

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

}
} else if (entry.isFile() && (entry.name.endsWith('.md') || entry.name.endsWith('.mdx'))) {
files.push(relativePath)
files.push(relativePath.replace(/\\/g, '/'))
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Consider documenting this cross-platform path normalization with a brief inline comment. While the fix correctly addresses the Windows path separator issue described in issue #914, a comment would help future maintainers understand why this normalization is necessary. For example: "// Normalize to forward slashes for cross-platform consistency"

Suggested change
files.push(relativePath.replace(/\\/g, '/'))
files.push(relativePath.replace(/\\/g, '/')) // Normalize to forward slashes for cross-platform consistency

Copilot uses AI. Check for mistakes.
@Janhvibabani
Copy link
Contributor Author

cc @oksaumya

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

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. frontend needs-ok-to-test Indicates a PR that requires an org member to verify it 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

1 participant