Skip to content

Commit bc53630

Browse files
committed
add readme
1 parent 47358f1 commit bc53630

File tree

7 files changed

+37
-0
lines changed

7 files changed

+37
-0
lines changed

Diff for: .readme-assets/code.png

162 KB
Loading

Diff for: .readme-assets/copy-link.png

98.5 KB
Loading

Diff for: .readme-assets/embed1.png

154 KB
Loading

Diff for: .readme-assets/embed2.png

93.7 KB
Loading

Diff for: .readme-assets/graph.png

63.5 KB
Loading

Diff for: .readme-assets/markdown.png

22.5 KB
Loading

Diff for: README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Embed Notion
2+
3+
Web server for notion embed components. With this, you can use additional features, like flowcharts, diagrams, etc.
4+
5+
![Scheenshot](.readme-assets/graph.png)
6+
7+
## Available libraries:
8+
9+
- [mermaid.js](https://github.com/mermaid-js/mermaid)
10+
11+
## How to
12+
13+
1. Get your notion token. More information here: https://github.com/dragonman225/notionapi-agent/blob/master/documentation/get-token/get-token.md
14+
2. Create notion's code element:
15+
![notion code](.readme-assets/code.png)
16+
3. Set markdown language:
17+
![notion markdown](.readme-assets/markdown.png)
18+
4. Copy block id of element:
19+
![notion copy link](.readme-assets/copy-link.png)
20+
For example, for url:
21+
`https://www.notion.so/2fde7f36cbe67a59bab4598af323b0c6#1fa438a1c04a42c28a809cc826a8f20b` block id is `1fa438a1c04a42c28a809cc826a8f20b`
22+
5. Go to website, submit token with block id, copy url and past it to notion embed:
23+
![embed](.readme-assets/embed1.png)
24+
25+
![embed](.readme-assets/embed2.png)
26+
27+
6. After updated content in your markdown block, double click on embed component and it will reloaded.
28+
29+
## Self hosted
30+
31+
If you use this on your onw server, you need environment variables:
32+
33+
```
34+
ENCRYPTION_KEY=string of 32 characters
35+
NOTION_TOKEN=if you set notion token, you not need to submit it every time
36+
NODE_ENV=production
37+
```

0 commit comments

Comments
 (0)