Skip to content

Commit 35f27ff

Browse files
committed
Added README
1 parent 78fd750 commit 35f27ff

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
markdown-notes-to-notion
2+
===
3+
4+
This script import markdown notes to Notion.
5+
6+
> The script required PostgresQL for local cache of imported notes.
7+
8+
## How to run
9+
10+
1. Get `NOTION_TOKEN` and give access to your note where the data will be imported.
11+
- [Create your integration in Notion](https://developers.notion.com/docs/create-a-notion-integration#getting-started)
12+
2. Run the script specifying the folder with notes
13+
14+
```bash
15+
export NOTION_TOKEN 'secret_notion_token'
16+
export DB_HOST 'localhost'
17+
export DB_NAME 'notion'
18+
export DB_USER 'notion'
19+
export DB_PASSWORD 'notion-password'
20+
21+
node index.js --import /path/no/notes
22+
```
23+
24+
3. Some notes may not import correctly. [Solutions](https://github.com/tryfabric/martian#working-with-notions-limits). After correcting the original notes that were imported with an error, they can be imported again
25+
26+
```bash
27+
node index.js --import-with-errors /path/no/notes
28+
```

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# TODO
22

3+
- Добавить переменные среды для БД
34
- Добавить команду для вывода импортированных заметок с ошибками

0 commit comments

Comments
 (0)