Export notion page to jekyll post
Project description
Notion2Jekyll
This makes your notion page to Jekyll Post Markdown file. This is using notion-py to export notion page to markdown.
Notion2Jekyll provides these features.
-
Export markdown file from your notion page.
-
Makes front matter to the markdown file.
-
Tags
-
toc
→if your Jekyll blog supports
-
layout
→article(default)
- Download images in your notion page, and automatically set the image path in the md file(
You need to rename the path when you upload in your blog
).
Installation
Use the package manager pip to install foobar.
$pip install notion2jekyll
Usage_Command Line
$python -m notion2jekyll
#Markdown file name: <output file name(without .md)>
#Token_v2: <your token_v2 on notion.so>
#Notion Page Url: <your notion page to export>
Usage_Jupyter or Ipython
from notion2jekyll import export
from notion.client import NotionClient
token_v2 = #<your notion token_v2>
url = #<your notion page url>
page = NotionClient(token_v2 = token_v2)
export(page,client)
-
Exporter will make the md file and images in
./jekyllpost_output/
and./jekyllpost_output/<your block title>/
-
The url should be the page that you want to export.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for notion2jekyll-0.1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0be7716fdad3989f146eaf6911da8973c3e2e157cc515819fd3940983cdeb2b |
|
MD5 | c1b56e2fd73dbf8ff0e5916cc9be4498 |
|
BLAKE2b-256 | 18b748925101a29bfaad28e17ddc38290bdcbf0318a55f4789d5f87405d606b3 |