WordPress static site generator for security, performance and cost benefits https://wp2static.com
Find a file
Leon Stafford 3d9a7c7a08 filepath rel to proj root
Former-commit-id: 3afa1bcb92
2017-04-02 22:29:45 +12: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 rm cruft 2017-04-02 22:14:15 +12:00
provisioning filepath rel to proj root 2017-04-02 22:29:45 +12:00
views rm short open tags for compatibility 2017-03-18 12:11:51 +13:00
wpassets updated graphics 2017-03-20 18:20:25 +13:00
.ruby-version WIP docker ruby selenium tests 2017-03-20 18:21:26 +13:00
circle.yml WIP tidying filetree 2017-04-02 22:24:43 +12:00
Dockerfile WIP tidying filetree 2017-04-02 22:24:43 +12:00
readme.md circle status badge 2017-03-23 17:06:02 +13:00
readme.txt v1.9 files 2017-04-02 08:50:20 +12:00
wp-static-html-output.php rm cruft 2017-04-02 22:14:15 +12: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
  • auto-deploy to local folder, FTP or S3
  • one site to unlimited export targets
  • specify extra files to include in the output (ie, dynamically loaded assets)
  • desktop notifications alert you to when exports are complete
  • 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

Development

Latest development build status: CircleCI

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)

There is a great Dockerized FTP server which I've found useful in development. I may extend this to also serve the hosted files for more complete test capabilities. So long as you can install Docker, this is a much less painful way to get a local FTP server and users setup than what I've experienced before.

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