Importing a static site
Choose the type (
./console exp:static-import:types):--html-genericfor a folder of HTML files;--markdownfor Markdown files;--sitemap-crawlfor a live site;- a type of your own.
Set its rules in
settings/override/statichtmlimport.ini.append.php, in the group[Type_<label>]:- the source:
SourceLocation, orSourceRepositoryfor a git repository the import clones and pulls; - the place:
ParentNodeorParentRemoteID; - the classes:
ClassRules[],DefaultClassandAttributeMap[].
See Rules.
- the source:
Look first:
./console exp:static-import:run --<label> --dry-run. It counts what would be created, updated, flagged and removed, and writes a report, without changing anything.Import:
./console exp:static-import:run --<label>.- A long import runs in batches and saves its position after each one; run the same command again to resume it.
--path=<pattern>and--limit=<n>import a part first.
Check:
./console exp:static-import:status, or Setup > Static site import in the administration. There, a run also starts as a background job, and each run's report is one click away.