Closed lanshunfang closed 4 years ago
This sounds great and if it does not break backwards compatibility, then go for it from my side!
Sure. Let me do it soon.
BTW, I have some other enhancements to go, say parallel processing, audio / image optimization, only proceed changes (incremental changes on posts / uploads). I will only have them in my git repo and will create PR if tested & ran well.
closing due to age. reopen if desired.
Requirement
I have a WordPress website with 10G+ size. I would like to publish the website to Github Pages. So here are the steps I've been doing:
cli
In the step of
Generating Markdown
, I don't need to create a hugo-export zip file (time & energy consuming).Proposal
Usage
API
disableZipping
method toHugo_Export
classHugo_Export#zip()
,Hugo_Export#send()
andHugo_Export#cleanup()
inHugo_Export#export()
ifHugo_Export#disableZipping()
is calledHugo_Export#dir
to the passed in--static-folder-name
(defaulted withhugo-export-tmp
) so that automation pipeline could be easier; cleanup the folder if any previous copy exists before exporting.hugo-export-cli.php
, callHugo_Export#disableZipping()
if--disable-zip
is set from php cli