https://github.com/lpsouza/jekyll-notion-sync
This repo is a Docker container that syncs your Jekyll site using Notion.
https://github.com/lpsouza/jekyll-notion-sync
docker docker-image jekyll notion notion-blog
Last synced: 3 months ago
JSON representation
This repo is a Docker container that syncs your Jekyll site using Notion.
- Host: GitHub
- URL: https://github.com/lpsouza/jekyll-notion-sync
- Owner: lpsouza
- Created: 2022-05-03T12:11:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T01:08:42.000Z (over 1 year ago)
- Last Synced: 2025-02-20T02:23:38.644Z (over 1 year ago)
- Topics: docker, docker-image, jekyll, notion, notion-blog
- Language: TypeScript
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jekyll ↔ Notion Sync
This is a Docker container that syncs your Jekyll site using Notion.
## Usage
To use this container, you need to use some environment variables:
- `NOTION_TOKEN`: The [token](https://www.notion.so/my-integrations) to access Notion.
- `NOTION_USER`: The owner ID of the Notion page.
- `GITHUB_TOKEN`: The [token](https://github.com/settings/tokens) to access GitHub.
- `GITHUB_OWNER`: The owner of the GitHub repository.
- `GITHUB_REPO`: The name of the GitHub repository containsing the Jekyll site.
- `GITHUB_PATH`: The path to the Jekyll posts directory.
Notes:
- The GITHUB_TOKEN must have the Jekyll site repository as a scope.
- To get the owner ID, you can use the [Notion API](https://developers.notion.com/reference/get-users).
### Deploying this container using Docker
```bash
docker run --rm -it -e NOTION_TOKEN= -e NOTION_USER= -e GITHUB_TOKEN= -e GITHUB_OWNER= -e GITHUB_REPO= -e GITHUB_PATH= lpsouza/jekyll-notion-sync
```
### Deploying this container on kubernetes cronjob
```bash
kubectl create -f - <
- name: NOTION_USER
value:
- name: GITHUB_TOKEN
value:
- name: GITHUB_OWNER
value:
- name: GITHUB_REPO
value:
- name: GITHUB_PATH
value:
EOF
```