MD5: 4aa2ff346d0ad978f5655c2c78d0d2e3
Syncs Github markdown files to Notion
pip install git-notion
or for local installation:
git clone https://github.com/NarekA/git-notion.git
cd git-notion
pip install -e .
These environment variables can be set.
export NOTION_TOKEN_V2=<YOUR_TOKEN>
export NOTION_ROOT_PAGE="https://www.notion.so/..." # Can be in setup.cfg as well
export NOTION_IGNORE_REGEX="models/.*" # Can be in setup.cfg as well
These paramaters can be set in the setup.cfg for the repo.
[git-notion]
ignore_regex = models/.*
notion_root_page = https://www.notion.so/...
# To upload your current directory
git-notion
# To upload another directory
git-notion --path path/to/your/repo
*The V2 Token can be found in the cookies when you open notion in your browser
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*