https://www.dendron.so/ logo
j

joneshf

02/23/2022, 10:09 PM
Is there a way to turn off publishing completely? Like, if I know for certain I never want to accidentally publish my notes, can I make it so I can't do that?
s

ScriptAutomate

02/23/2022, 10:25 PM
If you don't want to have a published site, your Dendron workspace shouldn't automatically publish (unless you have configured your repository to do so). If you mean you want to publish a subset of your notes, but by default not publish others, there are a few paths you can take: - Exclude a hierarchy of notes from publishing: https://wiki.dendron.so/notes/WLDbhcr3EHlN3sSquMMLk/ - Exclude vaults from publishing entirely by marking them as `private`: https://wiki.dendron.so/notes/6682fca0-65ed-402c-8634-94cd51463cc4/#visibility When you initialize a new workspace, and save to GitHub, it by default is not configured for publishing. If you have used one of our GitHub templates (
template.publish.*
) for pre-configured publishing, I can help guide for disabling depending on which template you used if you have.
All notes in Dendron are local by default, and publishing should be completely in your control 🙂
j

joneshf

02/24/2022, 1:37 AM
It might help to explain what happened to brought me to this point. I hadn't converted a note to plain markdown in a while. I remembered that there was some command to do it, but it's not named what I expect. I remembered that the command was something to do with publishing. It's the command that puts plain markdown in your clipboard. I opened the command prompt found there was both "Publish [something that I forget]" and "Publish Pod [something that I forget]". The latter is the one I wanted, but I went with the former. It asked something about settings so I went with the default and it started building a next.js thing. I had to quit VSCode to get it to stop. The latter option asks what format you want to "publish" and if you select markdown, it'll put plain markdown in your clipboard. I don't want to ever accidentally let the actual publish command complete, but I still want to convert a note into plain markdown. Is there a different (safer) way to do what I want?
That was kind of rambly, so let me know if I can explain something more.
The tl;dr; is that the commands are too closely named for me to remember which one is the one I actually want. And the command that seems like the one I do want ("Export to markdown" or something it's been a while), doesn't do what I actually expect it to do.
s

ScriptAutomate

02/24/2022, 1:55 AM
Ah, I can address these: - Having
Publish Pod
has historically been confusing for users, and good news on that front: we are changing the naming convention in the latest versions of Pods to only be
Export
. To use the latest Pods v2, for exporting Markdown to your clipboard, follow the quickstart here: https://wiki.dendron.so/notes/j5wgTcRHQZomzSHsg41O8/ - When it comes to generating the Next JS static site, if that accidentally happens again in the future: publishing via CLI or VS Code command palette commands will only create a local copy of the site. This means that if it accidentally happens again, you are only generating the website locally rather than publishing to an external endpoint.
j

joneshf

02/24/2022, 2:02 PM
Oh cool! That guide looks great! I'll try that out later Today.
I appreciate changing the commands around for V2.
I do still wish there were a way to disallow publishing altogether. But, I'll try and retrain myself to not use the publish command.
Thanks for the help on this!
s

ScriptAutomate

02/24/2022, 3:37 PM
You can submit a feature request here if you'd like, and can detail having the publishing commands either include additional confirmation/prompts, or for a config value to disable the publishing command: https://github.com/dendronhq/dendron/issues/new?assignees=&labels=&template=feature_request.md&title=
4 Views