2.6 KiB
WordPress Static HTML Output
Allows you to leverage WordPress as a great CMS, but benefit from the speed, security and portability that a static website provides.
Features
- generates a standalone, static html copy of your whole WordPress website
- specify extra files to include in the output (ie, dynamically loaded assets)
- multi-language support (English/Japanese currently)
Demo site
You can see a working example here of a plain WordPress install which has had a few tweaks done to optimize it for static HTML output. It is hosted on GitHub Pages, but could just as easily be hosted on Dropbox, BitBucket, GitLab, S3, your own server or anywhere else you can host HTML files.
Roadmap
- selectively export only changed pages since last output
- deploy your static files via sFTP, SCP, Dropbox, etc
- have a one-liner provisioning script for testing/development
Development
This repo contains the latest code, which you can clone/download to get the bleeding edge, else install via the official WordPress Plugin page
If you'd like to contribute, please follow the usual GitHub procedures (create an Issue, fork repo, submit PR). If you're unsure about any of that, contact me and I'll be happy to help.
Docker quickstart
To quickly try out the plugin, without affecting your other WordPress installations:
- install Docker
docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb
# run a MySQL container for the WordPress one to later usedocker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d wordpress
# run the official WordPress image, linking to your MySQL instancedocker exec -it plugindevwp bash
# get CLI access to the containerdocker-php-ext-install zip
# install zip extension for PHP, which the plugin requiresservice apache2 reload
# enables new extension to be usedexit
# leave the container's shelldocker ps
# get WordPress container's id so you can connect from the hostdocker inspect __yourcontainerid__ | grep Address
# get IP for connecting in your browser- open IP in browser and perform WP installation as usual
- install the plugin by searching by its name, else go back into container and use
wp-cli
method
Support
Development is done in my personal time. If you would like to see some new features added, bugs fixed, etc, think about sending me a donation for motivation ;)
Contact
Email me, Leon Stafford, at lionhive@gmail.com