mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
2d4faaf396e9886bfa31aeb342ff40da8de3fe01
GitBook
Next.js application to render GitBook published content.
Development
Installation
Clone the repository and use Bun to install dependencies and run the local development server.
bun install
Configuration
To develop and test a GitBook space locally, first create a GitBook API token and put it in a .env.local file:
GITBOOK_TOKEN=gb_api_abc
Start the local server
Run the Next.js development server.
bun dev
Then open the space in your web browser: http://localhost:3000/<space>/.
Other commands
bun format: format the codebun lint: lint the code
Differences
- Changed: Full-width mode:
- When off, layout is centered
- It now detects based on the page
- New: Scroll to top button in page aside
- New: Proper RTL support
- New: Per page OpenGraph cover image
Languages
TypeScript
97.1%
CSS
2.3%
JavaScript
0.5%