Skip to content

Case studies: a draft of Bootstrap's conversion (not published) - #40

Merged
ndbroadbent merged 2 commits into
mainfrom
docs/case-study-bootstrap
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
docs/case-study-bootstrap

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

A draft case study of Bootstrap, and the place case studies live. It's a template for the next ones. Nothing is published: a study with draft: true is built by the dev server only, and pnpm --dir docs build leaves it out (checked: dist/ has no case-studies/).

The page (docs/src/content/case-studies/bootstrap.md) covers:

The numbers come from cigen replay built with #28's glob matching, using exactly this config. They're identical to the earlier run with the pre-#28 config, and so is --no-expiry.

The plumbing:

  • A caseStudies content collection: title, description, project, repository, full commit, date studied, and draft.
  • The /case-studies/<name>/ route, a single-column layout (.docs--single).
  • tests/docs_examples.rs reads the case studies too, drafts included. A mutation check (a misspelled key in the config) fails it.
  • docs/README.md describes the layout and the template, and the STATUS tests line is updated.

Before publishing (an HTML comment at the top of the page):

Nothing went to Bootstrap: no fork, no issue, no comment.

Screenshots at 1440 and 390 px showed no overflow. task ci passes.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ver only

A caseStudies collection and a /case-studies/<name>/ route. A study with draft: true is
built by the dev server only, so a production build never publishes it. The Bootstrap study
is the template: what the project's CI runs, the whole config (tested by docs_examples, which
now reads the case studies too), the replay estimate with its method and assumptions, what
the conversion found, and what modules would change.
@ndbroadbent
ndbroadbent merged commit b0f88fc into main Dec 4, 2026
8 checks passed
ndbroadbent added a commit that referenced this pull request Dec 4, 2026
… file the docs test reads is one

tests/docs_examples.rs reads the case studies since #40, but .cigen's test job didn't list them,
so a broken case study alone would have skipped the test that checks it. A new test expands the
job's inputs and requires every file the docs test reads to be among them.
ndbroadbent added a commit that referenced this pull request Dec 4, 2026
… file the docs test reads is one

tests/docs_examples.rs reads the case studies since #40, but .cigen's test job didn't list them,
so a broken case study alone would have skipped the test that checks it. A new test expands the
job's inputs and requires every file the docs test reads to be among them.
ndbroadbent added a commit that referenced this pull request Dec 4, 2026
Make the case studies inputs of cigen's own test job (false skip from #40)
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.

1 participant