Open palmiak opened 2 years ago
Sounds awesome! Would love to be supporting roots' Bedrock! Many thanks and sounds solid for PR!
Do you think the Bedrock support needs to be in separate plugin or we could handle by detecting Bedrock env within WP2Static core?
Tradeoff of keeping core lean vs supporting popular dev env out of the box
I would go for separate. It's a bit of Bedrock way - https://github.com/roots/multisite-url-fixer - this how the fix for WP Multisite looks like.
Here I would do the same - a separate plugin with Composer support for "type": "wordpress-muplugin",
Great! Makes sense!
I know we have wp2static_modify_initial_crawl_list
, but also have wp2static_curl_user_agent
. Let's drop the modify
for this one and use wp2static_siteinfo
as the filter name.
SiteInfo filtering supported merged in with @palmiak's PR
Keeping this open until there's a plugin to make use of it
@palmiak if you create a repo for the Bedrock plugin or just some function code, would you like to add something on docs site: https://github.com/WP2Static/wp2static-www when ready?
There is a problem with WP2Static and Bedrock. Bedrock has a bit different folder structure (https://roots.io/docs/bedrock/master/folder-structure/) and the ABSPATH is pointing a bit wrong (it's pointing the
wp
folder when it should point to theweb
folder).Apart from Bedrock probably this could also cause problems where home_url and site_url are different (although I'm guessing here).
So I think that we should make all the properties filterable - something like:
and than we could create a mu-plugin for Bedrock that would use the correct
site_path
based on:If you're OK with this I will gladly create a PR for this.