René's URL Explorer Experiment


Title: [BUG] Docs content build fails on Windows: page paths use backslashes · Issue #10066 · simstudioai/sim · GitHub

Open Graph Title: [BUG] Docs content build fails on Windows: page paths use backslashes · Issue #10066 · simstudioai/sim

X Title: [BUG] Docs content build fails on Windows: page paths use backslashes · Issue #10066 · simstudioai/sim

Description: Describe the bug On Windows, bun run content:generate in apps/docs (and so bun run type-check, and the repo's pre-push hook) fails with: error: Navigation /meta.json references missing page ./introduction/index error: script "content:gen...

Open Graph Description: Describe the bug On Windows, bun run content:generate in apps/docs (and so bun run type-check, and the repo's pre-push hook) fails with: error: Navigation /meta.json references missing page ./intro...

X Description: Describe the bug On Windows, bun run content:generate in apps/docs (and so bun run type-check, and the repo's pre-push hook) fails with: error: Navigation /meta.json references missing page ./i...

Opengraph URL: https://github.com/simstudioai/sim/issues/10066

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Docs content build fails on Windows: page paths use backslashes","articleBody":"**Describe the bug**\n\nOn Windows, `bun run content:generate` in `apps/docs` (and so `bun run type-check`, and the repo's pre-push hook) fails with:\n\n```\nerror: Navigation /meta.json references missing page ./introduction/index\nerror: script \"content:generate\" exited with code 1\n```\n\n`apps/docs/content/docs/introduction/index.mdx` exists. The cause is in `apps/docs/scripts/compile-content.ts` (line 214 on `staging`):\n\n```ts\nconst relative = path.relative(CONTENT_ROOT, file)\n```\n\nOn Windows, `path.relative` returns `introduction\\index.mdx`. Everything derived from `relative` keeps the backslashes, including the page URL: the `/(^|\\/)index$/` replace doesn't match, so the page becomes `/introduction\\index`. The navigation builder then looks up `meta.json` entries like `./introduction/index` with `/`, finds nothing, and throws.\n\nBecause the pre-push hook runs `type-check` across every workspace, this blocks every push from a Windows machine, whatever the change.\n\n**To Reproduce**\n\n1. On Windows, clone the repo and run `bun install` (Node 24).\n2. `cd apps/docs`\n3. `bun run content:generate`\n4. See the `references missing page ./introduction/index` error.\n\n**Expected behavior**\n\nThe content build behaves the same on Windows as on macOS/Linux.\n\n**Proposed fix**\n\nNormalize the separator once, where `relative` is created:\n\n```ts\nconst relative = path.relative(CONTENT_ROOT, file).split(path.sep).join('/')\n```\n\nI tested this locally on Windows: unpatched, it fails as above; patched, `content:generate` completes (`Catalog ready: 829 pages`). On macOS/Linux `path.sep` is already `/`, so it's a no-op there. Happy to open a PR.\n\n**Screenshots**\n\nTerminal output from `apps/docs`, `bun run content:generate`:\n\n\u003cdetails>\n\u003csummary>Before (unpatched): fails\u003c/summary>\n\n```\n[2026-11-15T02:52:38.022Z] [INFO] [DocsContent] Compiled 500 authored pages\nerror: Navigation /meta.json references missing page ./introduction/index\nerror: script \"content:generate\" exited with code 1\n```\n\u003c/details>\n\n\u003cdetails>\n\u003csummary>After (with the one-line fix): succeeds\u003c/summary>\n\n```\n[2026-11-15T02:53:53.178Z] [INFO] [DocsContent] Compiled 450 authored pages\n[2026-11-15T02:53:53.774Z] [INFO] [DocsContent] Compiled 500 authored pages\n[2026-11-15T02:54:00.902Z] [INFO] [DocsLlmsFullAsset] Generated full documentation static asset\n[2026-11-15T02:54:01.109Z] [INFO] [DocsContent] Catalog ready: 829 pages (510 recompiled), 41999291 bytes\n```\n\u003c/details>\n\n**Additional context**\n\n- Windows 11, Bun 1.4.4, Node 24.22.3, `staging` at `eaed9a110f`.\n- Same class of issue as #9400, which normalizes separators in two `scripts/check-*.ts` audits. This one is in the docs build and isn't covered there.\n- Found while running the local gate for #10065.\n","author":{"url":"https://github.com/mofopeadegoke","@type":"Person","name":"mofopeadegoke"},"datePublished":"2026-11-15T03:14:24Z","url":"https://github.com/simstudioai/sim/issues/10066"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f444e54b-9e1d-74cf-c7a2-fa1d4ba34ba7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9346:15FC93:CBB0B2:11DBC1A:6AFB81C5
html-safe-noncef12ff3392963f32e4872627f1ce3dd19c405baab21f429a685b586446689e09e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzQ2OjE1RkM5MzpDQkIwQjI6MTFEQkMxQTo2QUZCODFDNSIsInZpc2l0b3JfaWQiOiI3MzYxMzE1Mzk4Njk3NTgzMDQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3942381efeefe9712f9d29ec1033c3c923343830c62f0808bebcabb978487bcc
hovercard-subject-tagissue:6399402393
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/10066/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0e9023323e4b7a166af647d445ccf11de21511dbc751219c8b10c4a529f98dfa/simstudioai/sim/issues/10066
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e9023323e4b7a166af647d445ccf11de21511dbc751219c8b10c4a529f98dfa/simstudioai/sim/issues/10066
og:image:altDescribe the bug On Windows, bun run content:generate in apps/docs (and so bun run type-check, and the repo's pre-push hook) fails with: error: Navigation /meta.json references missing page ./intro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemofopeadegoke
hostnamegithub.com
expected-hostnamegithub.com
Noneef32892d4269fb87b55e81cc4ba8d86e0f16aa28446ffbf46cba8be5179ab188
turbo-cache-controlno-preview
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebc3703b4dcbe820d1284ef63c88b001c850be25e
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/simstudioai/sim/issues/10066#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F10066
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F10066
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/issues/10066
Reloadhttps://github.com/simstudioai/sim/issues/10066
Reloadhttps://github.com/simstudioai/sim/issues/10066
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
https://github.com/simstudioai/sim
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/10066
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/10066
[BUG] Docs content build fails on Windows: page paths use backslasheshttps://github.com/simstudioai/sim/issues/10066#top
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/mofopeadegoke
mofopeadegokehttps://github.com/mofopeadegoke
on Nov 15, 2026https://github.com/simstudioai/sim/issues/10066#issue-6399402393
fix(scripts): normalize Windows path separators in validation scripts #9400https://github.com/simstudioai/sim/pull/9400
improvement(variables): focus the new variable's name field after adding it #10065https://github.com/simstudioai/sim/pull/10065
mofopeadegokehttps://github.com/mofopeadegoke
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 15, 2026https://github.com/simstudioai/sim/issues/10066#event-36167689342
waleedlatif1https://github.com/waleedlatif1
on Nov 15, 2026https://github.com/simstudioai/sim/issues/10066#event-36216293483
fix(docs): normalize path separators in the content build on Windows (#…https://github.com/simstudioai/sim/commit/3c2c3e61840b256009f5c668734f4b665f0f0d94
#…https://github.com/simstudioai/sim/pull/10067
https://docs.github.com/articles/closing-issues-via-commit-messages
3c2c3e6https://github.com/simstudioai/sim/commit/3c2c3e61840b256009f5c668734f4b665f0f0d94
mofopeadegokehttps://github.com/mofopeadegoke
completedhttps://github.com/simstudioai/sim/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 15, 2026https://github.com/simstudioai/sim/issues/10066#event-36216869496
Sign up for freehttps://github.com/signup?return_to=https://github.com/simstudioai/sim/issues/10066
Sign in to commenthttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/10066
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.