You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> WebHook >> notion-down >> Notion APIs (notion-py) >> Notion pages data >> generating MD files >> Copy into Hexo source >> generating webpages >> push to GitHub pages
80
+
> WebHook >> notion-down >> Notion APIs (notion-sdk-py) >> Notion pages data >> generating MD files >> Copy into Hexo source >> generating webpages >> push to GitHub pages
80
81
81
82
## Getting Started
82
83
83
84
### Prepare
84
85
85
86
To get started with NotionDown, you should:
86
87
87
-
1. Prepare your Notion username(email) and password, or directly use `notion_token_v2`.
88
+
1. Prepare your Notion [Integration Token](https://developers.notion.com/docs/getting-started).
88
89
1. Prepare `public notion blog_url` as root post for NotionDown to get the pages you want to handle.
89
90
1. Run `notion-down/main.py` with your configs.
90
91
91
-
Check [here](https://github.com/kaedea/notion-down/blob/master/dist/parse_readme/notiondown_gettokenv2.md) to get `notion_token_v2`.
92
+
Check [here](https://developers.notion.com/docs/getting-started) to get `notion_token`.
93
+
(For supported of legacy APIs with token_v2 & notion-py, see branch [archive/token-v2-support](https://github.com/kaedea/notion-down/tree/archive/token-v2-support).)
92
94
93
95
Duplicate [NotionDown Posts Template](https://www.notion.so/kaedea/NotionDown-Posts-Template-f77f3322915a4ab48caa0f2e76e9d733) to your own notion and take it as `blog_url` (or you can just use your existing blog post url). Note that, for now the root page should be public as well as placed in root path of notion workspace.
94
96
@@ -101,9 +103,7 @@ Basically just run `notion-down/main.py` :
101
103
# Run with cli cmd
102
104
PYTHONPATH=./ python main.py \
103
105
--blog_url <Notion Post Url> \
104
-
--token_v2 <token_v2>
105
-
--username <username># Only when token_v2 is not presented
106
-
--password <password># Only when token_v2 is not presented
106
+
--notion_token <notion_token>
107
107
108
108
# or
109
109
PYTHONPATH=./ python main.py \
@@ -119,8 +119,13 @@ For custom configurations in details, see [Custom Configurations](https://github
119
119
Also check the following procedures as showcase usages for NotionDown.
120
120
121
121
### CI Build Script
122
+
See GitHub Actions building scripts at `/.github/workflows`.
122
123
123
-
See building script at `/.circleci/config.yaml`.
124
+
-`build-readme.yml`: GitHub Actions workflow that generating README for this repo.
125
+
-`build-hexo.yml`: GitHub Actions workflow that generating Hexo posts for https://github.com/kaedea/notion-down-hexo-showcase.
126
+
-`pycorrector-test.yml`: GitHub Actions workflow that that executing spelling check for the test posts.
127
+
128
+
Also see building script at `/.circleci/config.yaml`.
124
129
125
130
-`test-build-readme`: CircleCI jobs generating README for this repo.
126
131
-`test-build-hexo`: CircleCI jobs generating Hexo posts for [https://github.com/kaedea/notion-down-hexo-showcase](https://github.com/kaedea/notion-down-hexo-showcase).
@@ -140,6 +145,10 @@ See the usage showcase jobs at [/jobs](/jobs), and jobs outputs at [/dist](/dist
140
145
See unittest cases at `test/`.
141
146
142
147
148
+
## Support of Legacy APIs (token_v2)
149
+
The lastest APIs of notion-down has been migrated form `3rd-party token_v2` to `official integration token`. For supported of legacy APIs with token_v2 & notion-py, see branch [archive/token-v2-support](https://github.com/kaedea/notion-down/tree/archive/token-v2-support).
150
+
151
+
143
152
---
144
153
145
154
> This page is generated by [notion-down](https://github.com/kaedea/notion-down) from [notion.so NotionDown-README](https://www.notion.so/kaedea/NotionDown-README-d3463f3d398743879d663caf87efa029).
0 commit comments