DEV Community

Cover image for Gem-book: Quickly build a document website
mantou
mantou

Posted on

Gem-book: Quickly build a document website

Only one command is needed to build a markdown document into a website:

npx gem-book docs
Enter fullscreen mode Exit fullscreen mode

See more options.

The official website example of gem-book:

{
  "scripts": {
    "build:website": "gem-book docs --title Gem-book --icon logo.png --i18n --home-mode --plugins raw --build"
  }
}
Enter fullscreen mode Exit fullscreen mode

netlify.toml

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200
Enter fullscreen mode Exit fullscreen mode

Netlify deploy settings:

Netlify

Discussion (0)