convert-import - Convert Imported Content
Turn a staged import batch in `imports/` into canonical draft pages.
`convert-import` is the second stage of legacy migration: stage the source with `import`, then materialize that batch as canonical pages and navigation entries.
Steps
- Run import first and capture the importId
- Convert the staged batch into canonical pages
- Review the generated drafts, navigation, and report
- Review page-by-page, then publish what should ship
Run import first and capture the importId
Use `import` to place the legacy directory into the staged `imports/<importId>/` area.
npx @anydocs/cli import ./legacy-docs ./my-docs-project zhConvert the staged batch into canonical pages
Once you have the `importId`, run `convert-import` to write the batch into `pages/<lang>/` and update the target-language navigation.
npx @anydocs/cli convert-import <importId> ./my-docs-projectReview the generated drafts, navigation, and report
Check inferred `title`, `description`, and `slug` values, confirm the appended import section matches your information architecture, and inspect the conversion report and warnings.
Review page-by-page, then publish what should ship
Converted output starts as `draft`. Clean up the content in Studio or through MCP, then publish only the pages you actually want to expose.