Skip to content

Make headings start at h2 and sync the AI Skills page - #65

Merged
next-devin merged 4 commits into
mainfrom
claude/project-thread-3hc6ly
Sep 30, 2026
Merged

next-devin merged 4 commits into
mainfrom
claude/project-thread-3hc6ly

Conversation

@next-devin

@next-devin next-devin commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Devin · project thread

Before: 48 pages (most Admin API guides, the payment-method guides, themes and apps) began at h3 right under the page title, so their first section looked smaller than on other pages and the TOC was indented one step. App Kit and OAuth skipped levels (h2 to h4, h3 to h5), and about 20 section titles were bold paragraphs that never reached the TOC (subscription management, custom page/product templates, API versions, session.price). The AI Skills page was missing next-theme-design, and several summaries and the install notes had drifted from NextCommerceCo/skills.

After: every authored page's body starts at h2 with no skipped levels, sibling headings stay at the same level, those bold labels are real headings, and bold prose links are plain like the rest of the site. The AI Skills page lists all nine skills with summaries taken from skills.json. Its install, update and prerequisite notes now match the skills repo README: the guided ./skills.sh installer, the npx skills add -g --skill flags, and the Admin API token kept in .env. The capability map lists next-theme-design with the other theme skills.

How: same normaliser and scripts/check-markup.mjs as docs#50, reading git-tracked pages only (generated reference trees and the committed GraphQL output are skipped). It runs in npm run check and fails on bold or empty headings, skipped levels, a first heading that repeats the title, and unbalanced ** in link text. The fulfillment-order snippets move from h4 to h3 to match the page they're imported into. The AI Skills table keeps its bold names because generate-capability-map.mjs reads them. Anchors follow heading text, so no links move, except manifest.mdx, whose first section repeated the page title and is now "Example manifest.json".

Checked locally: check-markup, check-agent-surfaces, check-frontmatter, generate-capability-map. validate-links reports 19 missing /docs/storefront/graphql/... pages here because this sandbox can't reach the GraphQL schema to generate them; main shows the identical 19, and CI generates them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H5QjNaRFvguF2WDVyWwwtw

48 pages started at h3 under the page title and three skipped a level; body
headings now start at h2 with siblings kept level. Bold-only lines that
worked as section titles are headings, bold prose links are plain, and a
new check-markup script runs in npm run check so this doesn't drift back.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5QjNaRFvguF2WDVyWwwtw
@next-devin next-devin self-assigned this Sep 30, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 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
developer-docs 7bac6fe Commit Preview URL

Branch Preview URL
Sep 30 2026, 09:05 AM

Also renames manifest.mdx's first section, which repeated the page title.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5QjNaRFvguF2WDVyWwwtw
Adds next-theme-design, refreshes every summary from skills.json, and brings
the install, update and prerequisite notes in line with the repo's README
(guided ./skills.sh installer, npx -g/--skill flags, Admin API token in .env).
The capability map lists next-theme-design alongside the other theme skills.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5QjNaRFvguF2WDVyWwwtw
@next-devin next-devin changed the title Make headings start at h2 and turn bold labels into headings Make headings start at h2 and sync the AI Skills page Sep 30, 2026
Comment thread content/docs/storefront/themes/templates/objects.mdx Outdated
Comment thread scripts/check-markup.mjs Outdated
@kilo-code-bot

kilo-code-bot Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 0

Both findings from the previous review (commit 6ba2b78) are resolved in 7bac6fe:

  • content/docs/storefront/themes/templates/objects.mdx:257,258,260 — <br> tags restored on the legal_name, address line 1, and city/state/postcode lines in the store example. The rendered address is again multi-line and consistent with the line_2 line.
  • scripts/check-markup.mjs:42,53,58 — title-repeat guard now uses an explicit first flag (initialized true, set to false after the first heading), so only the first body heading is compared to the page title instead of every heading that normalizes to it.

No new issues found in the incremental diff.

Files Reviewed (2 files changed since last review)
  • content/docs/storefront/themes/templates/objects.mdx - restored <br> in address example
  • scripts/check-markup.mjs - replaced prev === 1 title-repeat guard with first flag
Previous Review Summary (commit 6ba2b78)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 6ba2b78)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
content/docs/storefront/themes/templates/objects.mdx 257 Undocumented removal of <br> tags in the store address code-block example; collapses the rendered address onto one line and is inconsistent with the optional line_2 line that still uses <br>

SUGGESTION

File Line Issue
scripts/check-markup.mjs 52 Title-repeat guard uses prev === 1, which is true both initially and after any stray h1, so it would fire on every subsequent heading that normalizes to the title rather than only the first body heading
Files Reviewed (62 files)
  • scripts/check-markup.mjs - 1 issue (new checker, runs in npm run check)
  • package.json - integrates check-markup into the check script (correct ordering)
  • content/capabilities.yaml - adds next-theme-design to the theme-design capability and the agent-skills capability summary list
  • content/docs/skills/index.mdx - rewrites install/update/prereq notes against the skills repo README, lists nine skills, refreshes summaries
  • content/docs/apps/manifest.mdx - renames the first body heading from Manifest Reference (which repeated the page title) to Example manifest.json
  • content/docs/storefront/themes/templates/objects.mdx - 1 issue: address example loses <br> breaks
  • content/docs/admin-api/guides/*.mdx (exports, external-checkout, order-management, testing-guide, subscription-management, product-management, 13 payment-method guides) - heading level normalizations (### → ##) and corresponding sub-section bumps; no content changes
  • content/docs/apps/**/*.mdx (app-kit, app-development-flow, assets, event-tracking, settings, snippets, oauth/index, oauth/getting-started, oauth/session-auth, oauth/install-flows, apps/index, review) - heading bumps; apps/oauth/install-flows.md and the renamed Manifest Reference heading are now compliant with the new checker
  • content/_snippets/_moving-fulfillment-orders.mdx, content/_snippets/_splitting-fulfillment-orders.mdx - snippet headings #### → ### to match the importer's h2 parent
  • content/docs/storefront/index.md, content/docs/storefront/checkout-links.mdx, content/docs/storefront/themes/** (index, settings, translations, theme-kit, cdn-and-caching, 5 guides, templates/index, templates/objects, templates/tags, templates/urls-and-template-paths) - heading bumps and one setext bold-label → heading conversion
  • content/docs/webhooks/index.mdx, content/docs/campaigns/index.mdx, content/docs/admin-api/index.mdx, content/docs/index.mdx - heading bumps plus a few [**link**](url) → [link](url) fixes (caught by the new balanced-**-in-link-text rule)

Fix these issues in Kilo Cloud


Reviewed by minimax-m3 · Input: 0 · Output: 0 · Cached: 0

…t heading for a title repeat

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5QjNaRFvguF2WDVyWwwtw
@next-devin
next-devin merged commit 4c7f845 into main Sep 30, 2026
3 checks passed
@next-devin
next-devin deleted the claude/project-thread-3hc6ly branch September 30, 2026 09:35
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