Build site in another folder?
cormullion opened this issue · 4 comments
I know this might be a silly question, but is there a way to build the site in a different folder, rather than the same folder that contains all the source files? Something like a serve(target="/path/to/somewhere/")
?
A bit cheeky but you could just do serve(...); cp(...)
More to the point though, no there isn't. I think it should be easy to support though because everything is done via this path
thing which is set up at the start and could take config.md
in consideration for an alternative path for __site
Is this just a preference thing or do you have a more specific use case in mind?
Well, what happened was that git/Github/GithubPages eventually got fed up with my site's repo (when it got over 3Gb - I can't blame them), and all my attempts to fix it also failed (and might even have made it worse), with things taking hours to fail rather than minutes, so eventually I just nuked the entire thing. and started again. And my current idea is to maintain two separate repos, one with the site, the other with the source.
It is probably just a preference - an easier set-up to think about - but I wondered if it might be useful as a general feature... 🤔
is it 3Gb because the whole git history is kept on the gh-pages
branch? or because you actually have 3Gb of assets?
in the first case there may be a setting of the github-pages-deploy-action to avoid that, in the latter, maybe it'd make sense to store assets on a cloud bucket somewhere.
Anyway, can you test Franklin#tl/buildpath
setting site_path = joinpath("your", "desired", "output", "path")
in your config.md
and see if that works for you? Note that the minification won't work anymore (it expects the __site
path) so set minify=false
in the final call to optimize
, it's irrelevant anyway.
can you test
Franklin#tl/buildpath
settingsite_path
It works great! If you think it would be useful to others as well, please add it to one of your forthcoming *ranklin releases...
store assets on a cloud bucket
Haha, well if it was important stuff I might do that, but this is just idle amusement, so I'll stop when it starts to get out of hand again... :)
Thanks so much for your work!