Skip to content

[docs] migrate to oxlint+oxfmt, refresh PDP/anatomy docs#289

Open
laugharn wants to merge 4 commits into
mainfrom
docs/oxlint-oxfmt-and-pdp-refresh
Open

[docs] migrate to oxlint+oxfmt, refresh PDP/anatomy docs#289
laugharn wants to merge 4 commits into
mainfrom
docs/oxlint-oxfmt-and-pdp-refresh

Conversation

@laugharn
Copy link
Copy Markdown
Contributor

Summary

  • Replace biome with oxlint + oxfmt in apps/docs, matching the template's lint setup. Wire pnpm lint to run oxlint . && oxfmt --check && tsx scripts/lint-doc-paths.ts, and register a lint task in turbo.json. Most of the diff is the one-time oxfmt sweep over the docs tree.
  • Add apps/docs/scripts/lint-doc-paths.ts: walks every ## Key files section in MDX, checks each backtick'd path resolves under apps/template/ or repo root, exits nonzero on misses. Wired into the lint chain so a future rename fails CI instead of rotting silently.
  • Refresh anatomy/pages/pdp.mdx and shopify/pdp.mdx to match the current template after the PDP variant-resolution collapse ([template] collapse PDP variant resolution into one ProductSelection #283): Cache Components instead of partialFallbacks, computeSelection in lib/product.ts, no product-detail-page.tsx, no components/product/pdp.
  • Trim Key files tables across pdp, cart, navigation, agent, and plp to the load-bearing entries; sub-components discoverable by directory.
  • Fix stale paths the new lint script flagged: lib/shopify/client.tslib/shopify/fetch.ts, lib/cart-cache.tslib/cart/server.ts, components/collections/results.tsxcollection-page.tsx.
  • Remove anatomy/pages/content.mdx: documented a marketing-pages feature that no longer ships with the template (and the enable-shopify-cms skill covers the opt-in CMS path).

Test plan

  • pnpm lint is green at the repo root (turbo runs both template:lint and docs:lint).
  • pnpm --filter docs lint:doc-paths reports ✓ 57 doc path(s) verified.
  • pnpm --filter docs build succeeds (verifies the format sweep didn't break any MDX/TSX).
  • Spot-check rendered PDP anatomy page — table renders, prose reads cleanly.
  • Sanity-check that apps/docs/biome.jsonc deletion has no fallout (no @biomejs/biome was installed or referenced in CI).

🤖 Generated with Claude Code

Match the template's lint setup, refresh PDP docs to reflect the current
template after recent refactors, and add a script that catches stale file
paths in docs Key files tables.

- Replace biome with oxlint + oxfmt; delete apps/docs/biome.jsonc, add
  matching .oxlintrc.json and .oxfmtrc.json, wire `pnpm lint` to run
  `oxlint . && oxfmt --check && tsx scripts/lint-doc-paths.ts`. Register
  a `lint` task in turbo.json.
- Format the docs tree once with oxfmt (most of the diff). Subsequent
  changes stay under the same convention as the template.
- Add `scripts/lint-doc-paths.ts`: scans every `## Key files` section,
  checks each backtick'd path resolves under apps/template/ or repo root,
  exits nonzero on misses.
- Refresh anatomy/pages/pdp.mdx and shopify/pdp.mdx to match the current
  PDP code (Cache Components instead of partialFallbacks, computeSelection
  in lib/product.ts, no product-detail-page.tsx, no components/product/pdp).
- Trim Key files tables across pdp, cart, navigation, agent, plp to the
  load-bearing entries; sub-components discoverable by directory.
- Fix stale paths the new lint script flagged: lib/shopify/client.ts →
  lib/shopify/fetch.ts, lib/cart-cache.ts → lib/cart/server.ts,
  components/collections/results.tsx → collection-page.tsx (already merged).
- Remove anatomy/pages/content.mdx: documented a marketing-pages feature
  that no longer ships with the template.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shop-docs Ready Ready Preview, Comment May 23, 2026 5:26pm
shop-template Ready Ready Preview, Comment, Open in v0 May 23, 2026 5:26pm

- Replace the rendering strategy section's code snippet with prose
  explaining Cache Components + ISR behavior: cached via
  cacheLife("max") + product-{handle} tag, invalidated on Shopify
  webhook. Drop unstable_instant from the docs — the export is still
  in the file but the flag isn't load-bearing post Next 16 canary.26.
- Drop the explicit list of sibling PDP components at the bottom of
  the Key files section. Point at components/product-detail/ instead;
  the directory is the source of truth.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Prose carries the same idea without a snippet that's easy to drift
from the real route.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# Conflicts:
#	apps/docs/content/docs/reference/env-vars.mdx
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