Skip to content

Feature/rebuild Demo Script#10

Merged
jasperf merged 5 commits into
mainfrom
feature/rebuild-demo-script
May 15, 2026
Merged

Feature/rebuild Demo Script#10
jasperf merged 5 commits into
mainfrom
feature/rebuild-demo-script

Conversation

@jasperf
Copy link
Copy Markdown
Contributor

@jasperf jasperf commented May 15, 2026

This PR introduces a new WP-CLI script for demo page rebuilding and reorganizes project documentation for version 2.4.0, along with security enhancements for the scripts directory. The primary addition is scripts/rebuild-demo.php, a WP-CLI eval-file script that automates demo content reconstruction, complemented by comprehensive documentation in docs/demo-rebuild-script.md. Documentation has been restructured with new index files for both docs/ and scripts/ directories, while the CHANGELOG and README have been updated to reflect these changes. A security hardening measure implements "silence is golden" behavior in the scripts directory.

New Demo Rebuild Functionality:

  • Added scripts/rebuild-demo.php as a WP-CLI eval-file script for automated demo page rebuilding
  • Created docs/demo-rebuild-script.md with complete usage documentation and technical specifications for the new script

Documentation and Developer Guidance:

  • Updated CHANGELOG.md for v2.4.0 release with documentation reorganization details
  • Added docs/index.php and scripts/index.php as directory index files for improved navigation
  • Modified README.md to reference the new documentation structure and demo rebuild capabilities

Security Enhancements:

  • Implemented "silence is golden" in the scripts directory to prevent information disclosure

Files Changed:

jasperf and others added 5 commits May 15, 2026 10:35
Moves rebuild-demo.php from the Elayne theme into pt-cli so it is
never deployed to a production web server. Run via:

  wp eval-file vendor/imagewize/pt-cli/scripts/rebuild-demo.php
- Add rebuild-demo.php script for rebuilding demo pages from pattern PHP files
- Supports single-site and multisite configurations
- Supports mapping page IDs to multiple pattern files
- Optional push of custom .html templates and template parts to WP database
- Includes dry-run mode via WP_REBUILD_DRY_RUN environment variable
- Generic implementation works with any FSE block theme
- Bump version to 2.4.0
- Update CHANGELOG.md and README.md with documentation
…ipt.md

- Extract detailed demo rebuild script docs to separate file
- Add docs/index.php with silence is golden to prevent directory browsing
- Update README.md with link to new documentation

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@jasperf jasperf merged commit 49bb10e into main May 15, 2026
@jasperf jasperf deleted the feature/rebuild-demo-script branch May 15, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant