Liking cljdoc? Tell your friends :D

Notion to Markdown: a tool for fetching Notion page trees, written in Clojure. Can be used to sync Readme files.

Concepts

Notion API requires a page-id and a notion-secret to be able to access a page’s content:

Usage

Lein

Add this to your dependencies:

  [com.flexiana/notion-to-md "0.1.8"]

Alias it with the following:

  :profiles {:local
               {:dependencies
                [[com.flexiana/notion-to-md "0.1.8"]]}}
    :aliases {"notion-to-md"     
              ["with-profile" 
               "local" 
               "run" 
               "-m" 
               "notion-to-md.core"]}

Invoke it with lein notion-to-md.

Pass arguments either by:

Allowing access to Notion API

To interact with the API, we have to give the integration user access to page(s) we want to fetch. To achieve this, follow the steps below.

  1. Go to the page you want to fetch.

  2. Click “Share” at the top-right corner.

  3. Click “Invite”.

  4. Select the Integration user you have added prior to this.

Notes

The tool automatically fetches all sub pages as well.

References

Authors

Brought to you with ❤️ by Flexiana.

License

Copyright 2022 Flexiana.

Written and distributed under Apache License 2.0.

How to guides [internal]

Update Readme on GitHub

Can you improve this documentation? These fine people already did:
Daniel Vieira, github-actions[bot], danielhvs, sandudorogan & Daniel Habib Vieira da Silva
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close