Open dalbasti opened 1 year ago
There is no built in way to do this. I guess the easiest way to do it would be to create two repos and sites. One for the actual site, and one for previews. And then just change the repository name setting in obsidian depending on if you want to publish it to the preview site or the actual site. Would that work?
Well, since there is no other way, this might be acceptable. Still, I wish it would be possible to find a way around. Thanks.
This might not be the cleanest way to do it but you could make a repository branch including the app.js
script given here.
This would allow you to run a local version of your digital garden before merging changes to the main branch.
I've found a neat way to preview my site before deploying, using Netlify. The doc on Netlify website is a bit unclear, but here is how to do it: First thing to note: every time Netlify builds, it automatically generates a Preview Deploy, with a unique URL, but it also auto deploy to production. What you want is to disable auto deploy, so you can preview the change before manually going live. Steps:
When you don't need to preview Deploy, you can click Unlock to start auto publishing.
I wish there is a way to preview my site before deploying it to the internet. Is there a way to build digital garden locally?