mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 10:03:31 +00:00
55b29ca6083703ccfca30e7188738c23b5c32a59
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.2%
CSS
2.3%
JavaScript
0.5%