Cobertos / md2notion

A better Notion.so Markdown importer
MIT License
657 stars 66 forks source link

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

Closed dummifiedme closed 3 years ago

dummifiedme commented 3 years ago

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

Cobertos commented 3 years ago

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

dummifiedme commented 3 years ago

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

Cobertos commented 3 years ago

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 commented 3 years ago

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

Cobertos commented 3 years ago

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

dummifiedme commented 3 years ago

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

dummifiedme commented 3 years ago

Anyway, thanks :)