notion-md

command module
v0.0.0-...-96e067d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

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

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL