wordpress-playground
wordpress-playground copied to clipboard
Static site generator
It would be cool to explore the Playground as a web-based static-site generator. So, like Strattic but web-based and without a server.
- Create your site with Gutenberg in a Playground
- Export to static HTML+CSS+JS+images+fonts files (you can already do it today with a plugin)
- Export to a CDN with one click
- Still edit that static site via
/wp-admin
thanks to WordPress Playground 😆
Kudos to @michalczaplinski for proposing
Say the export feature generated:
- Static assets
- Playground export that can be restored later on
Then you could manage a truly static WordPress website while retaining dynamic management capabilities.
You could even version that site in a Git repo.
Is there a plugin that can already be used effectively with the playground, before this functionality is built-in?
WordPress Plugin directory has a few, although I didn't try any of them: https://wordpress.org/plugins/search/static+site/
cc @ellatrix
I've tried a few of them and they are quite similar in terms of features. There is also https://wp2static.com/ which isn't in the plugin directory - it was bought by Strattic some time ago.
I've been thinking about this since building Blocknotes a few months ago :) It's quite similar because like Jekyll you store the posts, pages and templates like static HTML/MD files, then generate the site from that.
Looping in @rhildred @diy-pwa
Playground now has all the necessary technical pre-requisites to handle static site generation. I've been exploring that at https://github.com/adamziel/playground-docs-workflow
Does it work well enough to use now or is there still work pending in playground? Thank you