WordPress static site generator for security, performance and cost benefits https://wp2static.com
Find a file
2017-03-07 13:26:18 +13:00
css initial commit 2016-12-27 14:30:54 +13:00
images ajaxify archive generation 2016-12-29 17:22:51 +13:00
languages initial commit 2016-12-27 14:30:54 +13:00
library WIP saving all options as object 2017-03-07 12:13:28 +13:00
views WIP saving all options as object 2017-03-07 12:13:28 +13:00
destroy_and_rebuild.sh fix watch script 2017-02-20 12:23:02 +13:00
Dockerfile generate php error logs 2017-03-07 13:26:18 +13:00
php_error.ini generate php error logs 2017-03-07 13:26:18 +13:00
post_launch.sh watch src files and sync on change 2017-02-20 11:57:08 +13:00
readme.md simpler script to get started 2017-02-19 11:43:06 +13:00
readme.txt fix readmes 2016-12-29 17:42:09 +13:00
screenshot-1.jpg initial commit 2016-12-27 14:30:54 +13:00
screenshot-2.jpg initial commit 2016-12-27 14:30:54 +13:00
sync_sources.sh exclude files in rsync 2017-02-20 12:25:58 +13:00
watch_source_files.sh todo efficient rsync 2017-02-20 12:26:49 +13:00
wp-static-html-output.php version bump to 1.2.0 2016-12-29 17:31:57 +13:00

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
  • `sh destroy_and_rebuild.sh # view contents of this file to see how it builds
  • docker ps # get WordPress container's id so you can connect from the host
  • docker inspect __yourcontainerid__ | grep Address # get IP for connecting in your browser
  • open IP in browser and you have a clean WP install, including the plugin (l/p: admin/admin)

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