Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Can I have a sync between a notion page and a corresponding md pages? #25

Closed
dummifiedme opened this issue Dec 26, 2020 · 7 comments
Closed

Comments

@dummifiedme
Copy link

I was thinking of notion with Obsidian, like to publish the whole vault if possible.

@Cobertos
Copy link
Owner

Cobertos commented Dec 26, 2020

Publishing Obsidian to notion? I have yet to look into Obsidian but heard it mentioned recently

@dummifiedme
Copy link
Author

Basically, I was asking if there can be a sync between notion and a folder (containing md files)

@Cobertos
Copy link
Owner

Cobertos commented Dec 26, 2020

Not out of the box, but you could set up a file watcher and then run

python -m md2notion --clear-previous [token_v2] [page-url] [...markdown_path_glob_or_url]

with a glob to your folder whenever a file changes. It'll remove the old and then upload the new. Depending on how many .md files are in there, upload will be probably be somewhat slow unfortunately.

@dummifiedme
Copy link
Author

Okay. WIll try to have that.
But at the same time, I can't have the edited pages back in my folder right?

@Cobertos
Copy link
Owner

Ah, no, md2notion only does import, not export.

@dummifiedme
Copy link
Author

Yeah. I think there is another script that does the opposite. But it would be risky by a bit :p

@dummifiedme
Copy link
Author

Anyway, thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants