Notion as a CMS for Complex Websites

Notion as a CMS for Complex Websites

Code Example

https://github.com/seancdavis/notion-component-mapper/tree/main/03-export-page-data


Part 1

Part 2: Get Notion Database ID Using Developer API:

Part 3: Export Notion Database Page Content

Part 4 Transform Notion Pages into Component Props

00:00 Introduction
01:16 Setting up the Script
01:42 Check for Export File
02:00 Parse JSON Export
02:16 Set Up Transformation
04:46 Paragraph Block Map
06:24 Base Callout Block Mapping
08:30 Tabs Resolver
10:53 Code Block Resolver
13:14 Closing

How I Use Notion as a CMS (with Next JS)?





More . . .

Copyright ©2024 Mulhaq. All rights reserved.