jekyll-notion on macOS: Automated Notion to

๐Ÿ’ก jekyll-notion on macOS: Automated Notion to โ€” Executive Summary

Technical architectural analysis, practical configuration manifests, and deployment instructions for jekyll-notion on macOS: Automated Notion to.

bash
bundle add notion-ruby-client
bundle install

bundle add jekyll-notion
gem install jekyll-notion

vi _config.yml
---
plugins:
  - jekyll-notion

...

notion:
  databases:
    - id: '5cfed4de3bdc4f43ae8ba653a7a2219b'
      
---

#๋…ธ์…˜ ํ†ตํ•ฉํ‚ค ํ™•์ธ
https://www.notion.so/my-integrations
export NOTION_TOKEN=<secret_...>

#๋…ธ์…˜์—์„œ ๊ณต์œ ํ•  DB๋ฅผ ํ†ตํ•ฉํ‚ค์— ์ปค๋„ฅ์…˜

jekyll build
Collection division
bash
collections:
  - recipes
  - films

notion:
  databases:
    - id: b0e688e199af4295ae80b67eb52f2e2f
    - id: 2190450d4cb34739a5c8340c4110fe21
      collection: recipes
    - id: e42383cd49754897b967ce453760499f 
      collection: films
Sort and Filter
bash
notion:
  databases:
    - id: e42383cd49754897b967ce453760499f
      collection: posts
      filter: { "property": "Published", "checkbox": { "equals": true } }
      sorts: [{ "timestamp": "created_time", "direction": "ascending" }]
Page
bash
notion:
  pages:
    - id: 5cfed4de3bdc4f43ae8ba653a7a2219b
    - id: b0e688e199af4295ae80b67eb52f2e2f
    - id: 2190450d4cb34739a5c8340c4110fe21

Assignment to data object

txt
notion:
  databases:
    - id: b0e688e199af4295ae80b67eb52f2e2f
    - id: e42383cd49754897b967ce453760499f
      data: films
  pages:
    - id: e42383cd49754897b967ce453760499f
    - id: b0e688e199af4295ae80b67eb52f2e2f
      data: about
Watch (request continues after first build)
bash
notion:
  fetch_on_watch: true
  databases:
    - id: e42383cd49754897b967ce453760499f
Application example

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *