Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 1c6240a

Browse files
committed
docs: Update README.md with new options
1 parent e9decf4 commit 1c6240a

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ It provides these features over Notion.so's Markdown importer:
2121
* Handles nested lists properly
2222
* Among other improvements...
2323

24-
## Usage with Python 3.6+
24+
Supports Python 3.6+
25+
26+
## Usage from CLI
2527

2628
* `pip install md2notion`
29+
* Then run like `python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url]`
30+
* The markdown at the given path will be added as a new child to the Notion.so note at `page-url`
31+
32+
There are also some configuration options:
2733

28-
* From the command link you can run `python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url]`
34+
* `--clear-previous`: If a child of the note at `page-url` has the same name as what you're uploading, it will first be removed.
35+
* `--append`: Instead of making a new child, it will append the markdown contents to the note at `page-url`
2936

30-
* OR In your Python file:
37+
## Usage from script
38+
39+
* `pip install md2notion`
40+
* In your Python file:
3141
```python
3242
from notion.client import NotionClient
3343
from md2notion.upload import upload

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='md2notion',
5-
version='2.0.0',
5+
version='2.0.1',
66
description='Utilities for importing Markdown files to Notion.so',
77
long_description=open('README.md', 'r').read(),
88
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)