Skip to content

[codex] Set up monorepo foundation#1276

Merged
jderochervlk merged 2 commits intomasterfrom
vlk/monorepo-foundation
Apr 28, 2026
Merged

[codex] Set up monorepo foundation#1276
jderochervlk merged 2 commits intomasterfrom
vlk/monorepo-foundation

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

@jderochervlk jderochervlk commented Apr 27, 2026

Context

This is the foundation PR for splitting the existing docs site into a monorepo before adding the separate interactive guide site. It keeps the current docs app behavior intact while moving it under apps/docs and making root scripts delegate to the docs workspace.

The branch has been refreshed onto current master as a single commit.

Summary

  • Add a Yarn workspace root with apps/* and packages/*, and move the existing site package to apps/docs as @rescript-lang/docs.
  • Move the docs app, source, content, scripts, tests, assets, functions, and config files under apps/docs with mostly pure renames.
  • Update root scripts, Makefile, ignore/format config, generated-script paths, source/edit links, and deployment workflows for the new docs workspace location.
  • Carry the latest master docs/content/test updates into the apps/docs layout, including the 2026 retreat recap assets, new partner/logo assets, and landing-page snapshot coverage.
  • Keep this PR limited to monorepo structure; it does not add guide content or a guide app yet.

Validation

  • yarn install --immutable
  • yarn build:res
  • yarn ci:format
  • yarn build:scripts
  • yarn build:update-index
  • yarn workspace @rescript-lang/docs ci:format
  • yarn build
  • git diff --check origin/master...HEAD

Known test caveat

timeout 180s yarn test timed out while testing examples in apps/docs/markdown-pages/docs/manual/array-and-list.mdx. The full yarn test still does not complete in this checkout. This appears separate from the monorepo production build path, which exits 0.

Move the docs site into apps/docs as a Yarn workspace and keep root commands delegating to the docs workspace.

Integrate the latest master content, assets, and landing-page test updates into the workspace layout.
@github-actions
Copy link
Copy Markdown

Cloudflare deployment

Deployement ID: ea97cfd5-43f4-46a5-a712-cfd96be03b05
Deployment Environment: preview

⛅️ wrangler 4.63.0 (update available 4.86.0)
─────────────────────────────────────────────
✨ Compiled Worker successfully
Uploading... (8040/8042)
Uploading... (8041/8042)
Uploading... (8042/8042)
✨ Success! Uploaded 2 files (8040 already uploaded) (2.27 sec)

✨ Uploading _redirects
✨ Uploading Functions bundle
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://ea97cfd5.rescript-lang.pages.dev
✨ Deployment alias URL: https://vlk-monorepo-foundation.rescript-lang.pages.dev

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 103ada5de0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/docs/rescript.json
@jderochervlk jderochervlk merged commit a11341c into master Apr 28, 2026
6 checks passed
@jderochervlk jderochervlk deleted the vlk/monorepo-foundation branch April 28, 2026 15:24
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