tentapress / static-deploy
v0.6.0
2026-02-28 11:19 UTC
Requires
- php: ^8.2
- tentapress/admin-shell: <1.0
- tentapress/system: <1.0
README
Static site generation for TentaPress.
Plugin Details
| Field | Value |
|---|---|
| ID | tentapress/static-deploy |
| Version | 0.6.0 |
| Provider | TentaPress\StaticDeploy\StaticDeployServiceProvider |
Features
- Generate static HTML for all pages and posts
- Include theme assets (CSS/JS)
- Generate sitemap.xml and robots.txt
- Generate 404.html
- Download as ZIP archive
- Run saved find/replace rules on staged export files before zipping
- Review and download stored export archives from the admin screen
- Use a balanced two-column admin layout on larger screens
- Present stored exports in a simpler, scan-friendly history list
Dependencies
None.
Admin Menu
| Label | Route | Capability | Position | Parent |
|---|---|---|---|---|
| Static Deploy | tp.static.index |
deploy_static |
100 | Settings |
Output
The generated ZIP contains:
- Pre-rendered HTML files
- Theme assets
sitemap.xmlrobots.txt404.html
Replacement Rules
Static Deploy can persist reusable find/replace rules in the admin UI and apply them to the staged export right before the ZIP archive is created.
- Rules are stored as JSON in plugin settings.
- Each rule requires
findandreplacevalues. - Optional
filesglob patterns limit which exported files are touched. - If
filesis omitted, Static Deploy targets text-like files such as*.html,*.xml,*.txt,*.css,*.js, and*.json. - The admin screen includes quick actions to load a working example payload or reset the saved rules to
[].
Example:
[
{
"find": "<html",
"replace": "<html data-static-export=\"1\"",
"files": ["*.html"]
},
{
"find": "https://example.com",
"replace": "https://cdn.example.com",
"files": ["*.html", "sitemap.xml"]
}
]
Development
php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/static-deploy
Note: This is an optional plugin. Not enabled by default.