/snippets

Static miniblog for personal code snippets, powered by Jekyll and Notion

Primary LanguageHTMLMIT LicenseMIT

Snippets

This is a miniblog containing code snippets for my personal use. This miniblog is powered by Notion as its CMS, and uses Jekyll to render its content.

Under the hood

Some of the technologies used by this project:

  • Notion API to fetch pages (or posts) from Notion.
  • React-Notion-X to fetch the content of a page. Official Notion API has not yet provided convenient way to fetch the whole content of a page, so until then I will use this to render HTML of the notion pages.
    • and React-Notion-X's dependencies for rendering code and equations, KaTeX and Prism.
  • JSDOM to perform a little manipulation of the rendered HTML.
  • Jekyll to render static site.
  • GitHub Actions to automate the syncing from Notion.

Most of the work with React-Notion-X can be much, much simplified if the official Notion API releases the API to export pages as markdown.