Skip to main content

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.

  1. Export markdown file from your notion page.

  2. Makes front matter to the markdown file.

  • Tags

  • tocif your Jekyll blog supports

  • layoutarticle(default)

  1. 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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

notion2jekyll-0.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page