Skip to content

I Want to write down my TIL in Notion and upload to Github Automatically

Notifications You must be signed in to change notification settings

stevenkim18/NotionToGithubMD

Repository files navigation

NotionToGithubMD

Write in Notion and Upload to Github Automatically

Requirement

Preparation

  • Github Token
  • Notion API Token

How to use

  1. Prepare all you need(Requirement, Tokens etc…)
  2. Fill your .env file
GITHUB_USER_NAME = 
GITHUB_REPO_NAME = 
GITHUB_TOKEN = 

OUTPUT_PATH = "./output/"
  1. Save your notion token in your local terminal
    (Set your notion api integrations first and then get token → https://www.notion.so/my-integrations)
export NOTION_TOKEN="{your_notion_token}"
  1. Set Notion page that you want upload
    (If you set your Connections in page that you want, then you don’t need to set in your child page, only set Connections once in parent page)
  1. Write down in Notion! And copy Notion link
2
  1. Run main.py
python3 main.py https://www.notion.so/{username}/{page_id}

Demo

demo720p

TODO

  • [] show github url after upload success
  • [] when output folder exsit delete first and then upload

About

I Want to write down my TIL in Notion and upload to Github Automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages