wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

Static site generator

Open adamziel opened this issue 1 year ago • 10 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

adamziel avatar Oct 18 '23 08:10 adamziel

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.

adamziel avatar Oct 18 '23 15:10 adamziel

Is there a plugin that can already be used effectively with the playground, before this functionality is built-in?

aehlke avatar Oct 24 '23 13:10 aehlke

WordPress Plugin directory has a few, although I didn't try any of them: https://wordpress.org/plugins/search/static+site/

adamziel avatar Oct 24 '23 19:10 adamziel

cc @ellatrix

adamziel avatar Oct 25 '23 12:10 adamziel

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.

michalczaplinski avatar Oct 30 '23 12:10 michalczaplinski

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.

ellatrix avatar Nov 03 '23 15:11 ellatrix

Looping in @rhildred @diy-pwa

adamziel avatar Jan 31 '24 12:01 adamziel

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

adamziel avatar Apr 29 '24 14:04 adamziel

Does it work well enough to use now or is there still work pending in playground? Thank you

aehlke avatar May 23 '24 18:05 aehlke