1
1
markdown-to-notion
2
2
===
3
3
4
- This script import markdown notes to Notion.
4
+ This script import markdown notes to Notion
5
5
6
6
## Requirements
7
7
@@ -10,10 +10,17 @@ This script import markdown notes to Notion.
10
10
11
11
## How to run
12
12
13
- 1 . Get ` NOTION_TOKEN ` and give access to your note where the data will be imported
13
+ 1 . Create db and table ` imported_notes ` using script ` db.sql `
14
+
15
+ ``` bash
16
+ sudo -u postgres createdb notion-test
17
+ sudo -u postgres psql -d notion-test -f db.sql
18
+ ```
19
+
20
+ 2 . Get ` NOTION_TOKEN ` and give access to your note where the data will be imported
14
21
- [ Create your integration in Notion] ( https://developers.notion.com/docs/create-a-notion-integration#getting-started )
15
22
16
- 2 . Run the script specifying the folder with markdown notes
23
+ 3 . Run the script specifying the folder with markdown notes
17
24
18
25
``` bash
19
26
export NOTION_TOKEN ' secret_notion_token'
@@ -25,17 +32,13 @@ export DB_PASSWORD 'notion-password'
25
32
node index.js --import /path/to/notes
26
33
```
27
34
28
- 3 . Some notes may not import correctly. [ Solutions] ( https://github.com/tryfabric/martian#working-with-notions-limits )
29
-
30
- > There is no such command yet
35
+ 4 . Some notes may not import correctly. [ Solutions] ( https://github.com/tryfabric/martian#working-with-notions-limits )
31
36
32
37
``` bash
33
38
node index.js --show-errors
34
39
```
35
40
36
- 4 . After correcting the original notes that were imported with an error, they can be imported again
37
-
38
- > There is no such command yet
41
+ 5 . After correcting the original notes that were imported with an error, they can be imported again
39
42
40
43
``` bash
41
44
node index.js --import-with-errors /path/no/notes
0 commit comments