Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/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.
https://github.com/me-imfhd/notebook

blogs documentation nextjs nextra notion

Last synced: 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        


logo

Notebook



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



contributors


last update


forks


stars


open issues


license



Report Bug
·
Request Feature


logo


### Sample App made from 100xdev cohort open source notion pages


100xdevs Notebook

## :toolbox: Setup Next.js and Nextra

Create nextjs Project with default configurations

```bash
npx create-next-app
```

Install Dependencies

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

Create theme.config.jsx file

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

Update next.config.mjs

```bash
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);
```

## :toolbox: Autogenerate docs with notebook

Use notebook sdk

```bash
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,
});
```

## :handshake: Contact

My Twitter - [@mefhd2](https://twitter.com/mefhd2)