amiroff / NextBook

NextBook is quick and easy way to build technical books or documentation with markdown that run blazingly fast.
https://next-book.vercel.app
MIT License
228 stars 34 forks source link
buid-technical-books documentation-generator documentation-tool gitbook lighthouse-score mdx nextbook nextjs react seo

NextBook Screenshot

Build

NextBook is quick and easy way to buid technical books or documentation that support modern standards and run blazingly fast. It works by compiling markdown and MDX to static pages. This way, first content render on user's device is near instant.

NextBook makes writing technical docs stupid simple while keeping featureset minimal but open for further extension.

Primary Features 🧿

With the advantages of Next.js and React anything fancy (grading, level switching...) can be added along the way.

What's New In NextBook 3.0?

This release contains major speed improvements and backwards incompatible changes. Most of these come from MDX2 removing some functionality and other old libraries still not supporting ES modules.

What's New In NextBook 2.0?

Getting Started

  1. Having Node installed beforehand, bootstrap a new project with npx create-next-app my-awesome-book -e https://github.com/amiroff/NextBook
  2. Run npm run dev:watch and open http://localhost:3000/
  3. Check documentation to see what's possible with NextBook.
  4. Create your markdown or MDX content in content folder. Pages should auto-refresh as you modify markdown content.
  5. Update config/config.json with your table of contents and other information.
  6. Update pages/index.jsx to suit your needs as a standalone landing page or as a redirect to content.
  7. Deploy your respository or export (npm run export) and copy your content to any static hosting provider like Vercel, Netlify, Github Pages or Google Cloud.
  8. Have fun! πŸŽ‰

This should be enough to have a statically generated documentation page/book.