Giter Site home page Giter Site logo

notion-md's Introduction

notion-md

中文说明

convert notion pages into markdowns (and download images).

markdown is hugo compatible.

install

go install github.com/xujiahua/notion-md

usage

$ notion-md -h
convert notion pages into markdowns

Usage:
  notion-md [flags]

Flags:
      --config string   config file (default is $HOME/.notion-md.yaml)
  -h, --help            help for notion-md
  -i, --id string       id of root page which contains subpages
  -v, --listview        use listview hold blogs, contain category, tags
  -o, --output string   output directory of markdowns and images (default "./output")
  -p, --prefix string   hugo markdown image prefix (relative path to image folder)
  -t, --token string    notion token

example

notion-md -i 8ae7005e8b154431940ab03c0a2ef08a -t ${TOKEN}

example listview

notion-md -i cab2ea6d530341769e5dc9a269a1097e -t ${TOKEN} -o /Users/jiahua/hugo-blogger/content/posts -p ../../images/ -v

credit:

https://github.com/kjk/notionapi

notion-md's People

Contributors

xujiahua avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.