Migrating an existing site
Docara does not convert a site made by another generator automatically. Create a new folder, move the supported content and switch publication only after you compare the results.
If the project is already built with Docara 2.x, you do not need a new folder: follow Moving from 2.x to 3.0.
A safe order
- Record the source revision, a working build and the list of public URLs.
- Create a new project with
docara initin an empty folder. - Move the Markdown and the project assets; express the settings through
docara.json,section.jsonand<page>.page.json. - Write the old public URLs into
redirects.json. - Run
build productionandverify-static build_production. - Compare the content, routes, search, themes and responsive layout over HTTP.
- Prepare a backup of the published folder and a tested rollback.
You do not need to move old code, templates or a frontend build: the interface of the new site is made of registered components and SIMAI Framework.