WIP: sync docs JS output from compiled examples#1255
Draft
jderochervlk wants to merge 10 commits intomasterfrom
Draft
WIP: sync docs JS output from compiled examples#1255jderochervlk wants to merge 10 commits intomasterfrom
jderochervlk wants to merge 10 commits intomasterfrom
Conversation
Collaborator
jderochervlk
commented
Apr 19, 2026
- refactor: make test-examples importable
- fix: restore test examples output
- fix: make temp examples build writable
- fix: handle spaced temp paths in test examples
- feat: warn on stale JS output blocks
Restrict CodeTab JS-output pairing to explicit res example fences so plain res snippets are not treated as runnable examples. Add a focused regression test for the pairing scanner and keep the design and implementation notes with the branch.
Describe the line-oriented --update workflow for JS Output blocks in CodeTab examples. Document missing-fence insertion, single-label CodeTab upgrades, and README updates.
Implement --update in scripts/test-examples.mjs so JS Output fences can be refreshed, filled, or inserted for eligible CodeTab examples. Add integration coverage for stale, empty, and missing JS fences plus single-label and multi-label CodeTab behavior, and document the new command in the README.
Invoke the local ReScript CLI directly instead of shelling through npm for each docs example build. Format compiler failures as cleaned ReScript errors with markdown file locations and add regression coverage for both behaviors.
Commit the updated manual MDX files produced by the JS Output sync flow. This commit includes only the tracked docs example updates and leaves unrelated code and untracked files out.
Cloudflare deploymentDeployement ID: 41986148-e65b-450d-91ae-5fa657e4d04d ⛅️ wrangler 4.63.0 (update available 4.83.0) ✨ Uploading _redirects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.