Skip to content

site: adopt the shared Powderworks docs plumbing - #31

Open
zmaril wants to merge 2 commits into
mainfrom
site-powderworks-theme
Open

site: adopt the shared Powderworks docs plumbing#31
zmaril wants to merge 2 commits into
mainfrom
site-powderworks-theme

Conversation

@zmaril

@zmaril zmaril commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

site: adopt the shared Powderworks reading system

Update after visual review: the fleet theme's paper-and-flame palette reads as a certain AI lab's website, so the theme import is dropped — straitjacket.dev keeps its previous neutral dark look, with two small local rules styling the package's nav markup.

What this PR now ships is the invisible half of the shared foundation:

  • installs @thepowerworks/fumadocs from github:PowderworksCode/docs (docs repo flattened to a single-package root for git installs; trustedDependencies runs its prepare)
  • src/lib/site.ts declares the site via definePowderworksSite; nav mark/title/GitHub URL come from the package
  • provider, search dialog, MDX components, and i18n wiring are the package's behind thin local wrappers

Try it

cd site && bun install && bun run dev   # http://localhost:3000

Build clean, 57/57 tests, self-scan clean.

🤖 Generated with Claude Code

straitjacket.dev was the only fleet site not wearing the family
clothes. It now installs @thepowderworks/fumadocs directly from
github:PowderworksCode/docs and uses its config, i18n wiring,
provider, MDX components, search dialog, nav builder, and theme.

- src/lib/site.ts declares the site to definePowderworksSite; nav
  title, mark, and GitHub link come from the package.
- Provider, search dialog, and MDX components are the package's;
  straitjacket keeps only thin local wrappers.
- global.css imports the shared theme after the fumadocs preset, so
  pages render in the powderworks paper-and-ink palette with the
  project accent extension points available.
- trustedDependencies runs the package prepare script so a git install
  produces dist/.

Dark-only rendering stays as it was; flipping to system preference is
one prop on PowderworksProvider when wanted.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 22, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
straitjacket c8562e1 Commit Preview URL

Branch Preview URL
Aug 22 2026, 02:21 PM

The powderworks theme's warm paper and flame orange read as a well-
known AI-lab aesthetic, which is not this site. The theme import is
gone, so pages render in fumadocs neutral exactly as before the
adoption; only two small nav-title rules stay local to style the
package's markup classes.

What remains from the shared package is everything invisible: site
config, i18n wiring, provider, search dialog, MDX components, and the
nav builder.
@zmaril zmaril changed the title site: adopt the shared Powderworks reading system site: adopt the shared Powderworks docs plumbing Aug 22, 2026
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