Skip to content

feat: Mintlify docs migration#1118

Merged
dawnho merged 39 commits into
mainfrom
feat/mintlify-docs
Jun 7, 2026
Merged

feat: Mintlify docs migration#1118
dawnho merged 39 commits into
mainfrom
feat/mintlify-docs

Conversation

@dawnho

@dawnho dawnho commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Migrates all 608 GitBook markdown files to Mintlify MDX format across 3 spaces (guides, api-reference, brand-guides)
  • Converts GitBook syntax (tabs, hints, embeds, card tables, code blocks) to Mintlify components (<Tabs>, <Info>, <CardGroup>, etc.)
  • Self-closes void HTML elements (<br>, <img>, <hr>) for MDX compatibility
  • Generates docs.json with 3-tab navigation matching the live site: Guides | API Reference | Brand Guides
  • Preserves all existing URL slugs — no redirects needed
  • Includes migration script (migrate-to-mintlify.mjs) for reproducibility
  • 624 assets copied, branding (favicon + logos) checked into the repo

What's in mintlify-docs/

  • docs.json — Mintlify config with navigation, branding, colors
  • package.jsonnpm install && npx mintlify dev to preview locally
  • images/ — all assets + favicon + logos
  • All .mdx content files matching old URL paths

To preview locally

cd mintlify-docs
nvm use 20  # requires Node >= 18
npm install
npx mintlify dev
# → http://localhost:3000

Remaining polish (non-blocking)

  • ~20 pages with MDX parse errors (unclosed <source>/<picture> tags, curly braces in content)
  • A few Could not parse expression with acorn errors from literal { in prose

🤖 Generated with Claude Code

dawnho and others added 10 commits June 6, 2026 19:28
Migrate all 618 GitBook markdown files to Mintlify MDX format:
- Convert GitBook syntax (tabs, hints, embeds, card tables, code blocks) to Mintlify components
- Generate docs.json with full navigation structure (8 tabs, 44 groups)
- Copy 586 assets from .gitbook/assets/ to images/
- Add favicon and light/dark logo
- Include migration script for reproducibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate all 608 GitBook markdown files across 3 spaces (api-reference,
brand-guides, guides) to Mintlify MDX format:
- Convert GitBook syntax (tabs, hints, embeds, card tables, code blocks)
- Self-close void HTML elements (br, img, hr) for MDX compatibility
- Convert HTML comments to MDX comments
- Generate docs.json with full navigation structure
- Copy 624 assets to images/
- Add favicon and light/dark logo

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The migration script now downloads favicon and logos from GitBook CDN
automatically, so they don't need to be fetched manually after running.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The script now produces all files needed for mintlify dev:
docs.json, package.json, logos, favicon, and all content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Store favicon and logos in branding/ directory. The migration script
copies them into mintlify-docs/images/ — no network calls needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Branding assets (favicon, logos) now live in mintlify-docs/images/
where Mintlify expects them. The migration script preserves these
files when cleaning generated content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rewrite SUMMARY.md parser to produce correct Mintlify navigation:
- Guides tab with sidebar groups (Getting Started, Use Cases, Core Concepts, etc.)
- API Reference tab with groups per resource (Access Codes, Devices, etc.)
- Brand Guides tab with groups per manufacturer

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Maps all old docs.seam.co/latest/ paths to new Mintlify structure:
- /latest/* strips the prefix
- /api/* → /api-reference/*
- /device-and-system-integration-guides/* → /brand-guides/*
- /core-concepts/*, /capability-guides/*, etc. → /guides/*
- /products/* → /guides/capability-guides/*

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Output files now match old GitBook URL structure exactly:
- guides/ content → root (quickstart, core-concepts/*, etc.)
- api-reference/ content → api/ (api/access_codes/create, etc.)
- brand-guides/ content → device-and-system-integration-guides/

No redirects needed — all old docs.seam.co/latest/* links work as-is.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename README.mdx → index.mdx (127 files) so Mintlify serves
directory pages at clean paths like /core-concepts/devices
instead of /core-concepts/devices/README.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dawnho dawnho requested a review from a team as a code owner June 7, 2026 05:04
@dawnho dawnho marked this pull request as draft June 7, 2026 05:30
seambot and others added 4 commits June 7, 2026 05:31
The Format Code CI job was reformatting an mdx file, pushing a commit,
which triggered another CI run, creating an infinite loop. Generated
docs content should be ignored by prettier like the docs/ folder.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dawnho dawnho marked this pull request as ready for review June 7, 2026 05:36
@dawnho dawnho merged commit fc56ca2 into main Jun 7, 2026
8 checks passed
@dawnho dawnho deleted the feat/mintlify-docs branch June 7, 2026 05:39
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