me-imfhd / Notebook

Notebook helps you create documentation app for anything with notion pages easily. Worry about writing notion pages, let notebook create a documentation app for your work.

Home Page:https://notebook-two-swart.vercel.app/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

Notebook

Notebook effortlessly transforms Notion pages into a tailored documentation app for your needs.

contributors last update forks stars open issues license

logo

Sample App made from 100xdev cohort open source notion pages

🧰 Setup Next.js and Nextra

Create nextjs Project with default configurations

  npx create-next-app

Install Dependencies

  npm i nextra nextra-theme-docs nextra-theme-blogs @meimfhd/notebook

Create theme.config.jsx file

  export default {
    logo: <span>My Notebook </span>,
    project: {
      link: 'https://github.com/me-imfhd/notebook'
    }
    // ... other theme options
  }

Update next.config.mjs

  import withNextra from "nextra";
  const withNextraConfig = withNextra({
    theme: "nextra-theme-docs",
    themeConfig: "./theme.config.jsx",
  });

  /** @type {import('next').NextConfig} */
  const nextConfig = {}; // Your old next.js configuration if any
  export default withNextraConfig(nextConfig);

🧰 Autogenerate docs with notebook

Use notebook sdk

  import { notionToNextra } from "@meimfhd/notebook";

  const NOTION_INTEGRATION_TOKEN = process.env.NOTION_INTEGRATION_TOKEN?;
  await notionToNextra({
          pageId: "your-notion-page-id",
          rootRouteName: "docs",
          rootRouteTitle: "My Notebook",
          token: NOTION_INTEGRATION_TOKEN,
  });

🤝 Contact

My Twitter - @mefhd2

About

Notebook helps you create documentation app for anything with notion pages easily. Worry about writing notion pages, let notebook create a documentation app for your work.

https://notebook-two-swart.vercel.app/docs


Languages

Language:MDX 98.7%Language:TypeScript 1.2%Language:CSS 0.1%Language:JavaScript 0.1%