An open API service indexing awesome lists of open source software.

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.

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
```