WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.58k stars 222 forks source link

Static site generator #707

Open adamziel opened 8 months ago

adamziel commented 8 months ago

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.

Kudos to @michalczaplinski for proposing

adamziel commented 8 months ago

Say the export feature generated:

Then you could manage a truly static WordPress website while retaining dynamic management capabilities.

You could even version that site in a Git repo.

aehlke commented 8 months ago

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

adamziel commented 8 months ago

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

adamziel commented 8 months ago

cc @ellatrix

michalczaplinski commented 8 months ago

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.

ellatrix commented 8 months 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.

adamziel commented 5 months ago

Looping in @rhildred @diy-pwa

adamziel commented 2 months ago

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

aehlke commented 1 month ago

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