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.
- ๐
Good looking, simple and readable UI based on tailwindcss including
dark
mode andauto-centered
layout, - ๐ 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, 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...
With the advantages of Next.js and React anything fancy (grading, level switching...) can be added along the way.
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.
- Migrated to
next-mdx-remote v.4
which now usesMDX2
. This has some speed improvements and stricter MDX syntax checking. See MDX2 - Replaced some custom incompatible markdown plugins with MDX counterparts. These are:
- Subscript: was
~
, became<sub>
tag. - Superscript: was
^
, became<sup>
tag. - Mark (higlight): was
==
, became<mark>
tag. - Changed syntax for
Accordion
andTabs
components. See related documentation.
- Subscript: was
- Removed functionality
- Indented code. This was removed from
MDX2
. Use other ways to define fenced code blocks. - Linking with angle brackets: This was removed from
MDX2
. Use other ways to define links.
- Indented code. This was removed from
- Support for multiple books in one project.
- Design based on tailwindcss.
- Markdown content is now being loaded with next-mdx-remote. This means content is now separated from routed pages.
- Auto-centered layout on big resolutions leading to one less configuration option.
- 40% smaller bundle size.
- Navigation bar.
- Refined mobile UI.
- Less code (โ4,000 LOC).
- Having Node installed beforehand, bootstrap a new project with
npx create-next-app my-awesome-book -e https://github.com/amiroff/NextBook
- Run
npm run dev:watch
and open http://localhost:3000/ - Check documentation to see what's possible with NextBook.
- Create your markdown or MDX content in
content
folder. Pages should auto-refresh as you modify markdown content. - Update
config/config.json
with your table of contents and other information. - Update
pages/index.jsx
to suit your needs as a standalone landing page or as a redirect to content. - 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. - Have fun! ๐
This should be enough to have a statically generated documentation page/book.