se7enxweb / exp_static_html_imports
Exponential Static Site Import: import a static site (HTML files, Markdown or a crawled site) into the content tree by content classes, and keep it in step with its source. Types are pluggable (--doc-html, --html-generic, --markdown, --sitemap-crawl).
Package info
github.com/se7enxweb/exp_static_html_imports
Type:exponential-extension
pkg:composer/se7enxweb/exp_static_html_imports
Requires
- php: >=7.4
- se7enxweb/exponential-legacy-installer: ^2.2.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Imports a static site into the content tree of Exponential, page by page, into content classes, and keeps the imported pages in step with their source on every later run.
- Four source types, chosen with an option of the command:
--doc-html: the static export of the Exponential documentation;--html-generic: any folder of HTML files, read through selectors;--markdown: a folder of Markdown files with front matter, read with the help center's rules;--sitemap-crawl: a live site read through its sitemap, politely.
- Your own types. A type is a PHP class implementing
expStaticImportTypeInterface, registered instatichtmlimport.ini [ImportTypes]. Its rules are INI by default, or YAML, or a PHP rule class. - Safe to run again.
- Every page keeps its identity (a remote id from its source path).
- Changed pages are updated, and pages an editor changed in the CMS are flagged and left alone.
- Pages that left the source are hidden, and only trashed on request.
- Copies of a page become redirects to it.
- Large sources. The import runs in batches, saves its position after each one, and resumes an interrupted run.
- Reports. Each run writes a JSON report (schema
exp-static-import/1) and a Markdown summary, plus audit trail events.
./console exp:static-import:types
./console exp:static-import:run --markdown --source=/path/to/docs --parent-node=2 --dry-run
./console exp:static-import:run --markdown --source=/path/to/docs --parent-node=2
./console exp:static-import:status
Install: see INSTALL.md. Documentation: doc/index.md, shown in the help center when the extension is active.
License: GNU General Public License v2.0 (or any later version). Copyright (C) 1998 - 2026 Exponential Foundation and 7x.
Official status: Officially Supported for Exponential 6.