https://github.com/lhy0718/htmlx-safe-html-migration-starter
Safe standalone HTML converted into HTMLX and exported back to static HTML.
https://github.com/lhy0718/htmlx-safe-html-migration-starter
document-package htmlx openwebdoc starter-template
Last synced: about 1 month ago
JSON representation
Safe standalone HTML converted into HTMLX and exported back to static HTML.
- Host: GitHub
- URL: https://github.com/lhy0718/htmlx-safe-html-migration-starter
- Owner: lhy0718
- License: mit
- Created: 2026-06-03T20:07:46.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-03T21:00:59.000Z (about 2 months ago)
- Last Synced: 2026-06-03T22:21:30.969Z (about 2 months ago)
- Topics: document-package, htmlx, openwebdoc, starter-template
- Language: HTML
- Homepage: https://lhy0718.github.io/OpenWebDoc/
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# External Sample: HTML Migration
This sample shows how an existing safe standalone HTML page can enter HTMLX and leave again as ordinary static HTML.
## Flow
```sh
htmlx from-html source/operations-page.html documents/operations-page.htmlx --title "Operations Page" --json
htmlx validate documents/operations-page.htmlx --json
htmlx to-static-html documents/operations-page.htmlx public/operations-page --overwrite --json
```
The converter rejects scripts, event handlers, forms, iframes, remote resources, file resources, data resources, CSS resource imports, and body-local asset references. Add assets later in an unpacked package when the package manifest can declare them.
## Review Boundary
- keep the source HTML simple and local
- validate the generated `.htmlx`
- publish the static export only after validation passes