Import from Starlight
Migrate Astro Starlight documentation to M-Press without hiding unsupported content.
The importer converts the parts of a Starlight project that can remain portable: pages, frontmatter, navigation, languages, public assets, source images, social links, branding, and the supported documentation components.
mpress import --from starlight ../starlight-docs --output ./docs
cd docs
mpress build
The source may be a Starlight project root or a directory containing Markdown.
The importer looks for src/content/docs, docs, and then src.
Migration report
Every import writes migration-report.md. Review it before enabling strict
builds. Findings may include:
- custom or unsupported MDX components;
- project-specific JSX imports;
- private underscore-prefixed content;
- unresolved sidebar links;
- styles or components that need a static replacement.
Known components are converted to M-Press directives or static HTML. Unknown components remain visible in generated pages and make a strict build fail.
Recommended migration loop
- Import into a new directory; do not overwrite the original project.
- Read
migration-report.mdfrom top to bottom. - Run
mpress build --jsonand resolve error diagnostics. - Run
mpress checkand classify broken links, fragments, and local assets. - Compare representative pages at desktop and mobile widths.
- Enable
mpress build --strictas the release gate.