17 lines
815 B
Markdown
17 lines
815 B
Markdown
# notesync
|
|
|
|
|
|
NoteSync is a simple Python 3.10+ script that automates copying notes from my obsidian vault over to my quartz site to be published whilst ignoring files that are not public.
|
|
|
|
Notesync recursively walks the target directory, reads the markdown frontmatter for any `.md` files it encounters and checks for `public: true`. You can also specifically tell it to ignore certain subdirectories completely which is useful if you have directories you never want to publish.
|
|
|
|
Could Notesync have been a shell script? Yeah probably, but y'know, work with the tools you're most comfortable with.
|
|
|
|
|
|
### Installation
|
|
|
|
1. Make sure you have Python 3.10+ installed, create a virtual environment or use conda if that's your jam.
|
|
2. `pip install pdm`
|
|
3. `pdm install`
|
|
|
|
Now you can run notesync with `python -m notesync` |