Welcome to NextBook!

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 or 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.

Getting Started

  1. Bootstrap a project with npx create-next-app my-awesome-book -e https://github.com/amiroff/NextBook/tree/master/template
  2. Run npm run dev and open http://localhost:3000/
  3. Check examples to see what's possible with NextBook.
  4. Create your markdown or MDX content in pages folder.
  5. Update config/config.json with your table of contents and other information.
  6. Build (npm run build) and deploy your repository to any static hosting provider like Vercel, Netlify, Github Pages or Google Cloud.
  7. Profit! ๐ŸŽ‰

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

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

Primary Features ๐Ÿงฟ

  • ๐Ÿ’… Good looking, simple and readable UI including dark mode, fluid and centered layouts,
  • ๐ŸŒŽ Great SEO out of the box,
  • ๐Ÿ“ฑ Mobile & printer friendly,
  • ๐Ÿš€ Single page application with pre-fetching,
  • ๐Ÿงพ Easy content creation with markdown and MDX support,
  • ๐Ÿ’ป Something more than what basic fenced code offers. Like line highlighting, linking to source and copying to clipboard,
  • ๐Ÿค“ Familiar Git workflow and collaboration,
  • โŒจ๏ธŽ Keyboard shortcuts for frequently used actions (theme change, sidebar toggle, page navigation),
  • ๐Ÿ”Ž In-page optional table of contents with scroolspy,
  • ยฉ You own your data, code is the data. Committing to repository and seeing results in the simplest form,
  • ๐ŸŽ Fast to get started, just one command for up & running locally,
  • ๐ŸŽŠ One click (or push) deployment,
  • ๐Ÿ›  Unlimited dynamic features can be added with MDX,
  • โš™๏ธŽ Customisable, extensible and simple codebase,
  • โค Built on open-source,
  • ๐Ÿ‘ And many more small details...

Use Right Tool For The Job
NextBook is not geared towards API documentation, rather it is optimised for tutorial/book style documentation. For API docs ReadTheDocs, Docusaurus or plain Sphinx would be a better fit.