Setup integration and invite it to your page.
Clone the project to your computer and export the Internal Integration Token which generated in the former step.
# Apply to all pages under the target
$ yarn start
$ yarn start all
# Only apply to specific page
$ yarn start single
# Run with the compiled script
$ yarn build
$ yarn start:staticThough the script will create one if config.json isn't found. You still can write it by yourself, and it allows you to use multiple keys.
{
"NOTION_KEY": {
"key1": "secret_...",
"key2": "secret_..."
},
"PREV_TEXT": "上一篇",
"NEXT_TEXT": "下一篇"
}| Key name | Type | Description |
|---|---|---|
| NOTION_KEY | srting, string[], object | Integration token |
| PREV_TEXT (optional) | string | Wording for previous page button. |
| NEXT_TEXT (optional) | string | Wording for next page button. |
The internal integration token genertated from https://www.notion.so/my-integrations.
// string
{ "NOTION_KEY": 'secret_...' }
// array
{ "NOTION_KEY": ['secret_...'] }
// object
{ "NOTION_KEY": { "key_name": 'secret_...' } }Recommend setting key_name to workspace names. The script will retrieve the corresponding key when the target is a Notion URL.
Wording for previous page button.
Wording for next page button.
