WordPress/wordpress-playground

Static site generator

adamziel opened this issue ยท 9 comments

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/

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.

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

This is simply amazing for brochure sites, don't let it fade out.