build_and_publish_book
Compile a children's picture book into a self-contained HTML file and multi-file web reader, then serve it locally over Wi-Fi or publish it to your web host.
Instructions
Step 4: Compile the book into:
A self-contained single-file HTML book (
<slug>.htmlwith all CSS, JS, and images embedded) that can be opened directly in any browser or AirDropped/shared to a phone or tablet.A multi-file web reader (
index.html,styles.css,script.js,assets/).By default (
serve_local=True), hosts the book immediately on the local device athttp://localhost:<port>/<slug>/andhttp://<lan-ip>:<port>/<slug>/for phones on Wi-Fi.Optionally copies to
PUBLISH_WEB_ROOTif the user configured custom self-hosting in.env.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| slug | Yes | ||
| serve_local | No | ||
| deploy_static | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |