gitbook-commander

1.1.4 • Public • Published

gitbook-commander

Build Status Greenkeeper badge

An alternative lightweight CLI for the awesome GitBook documentation generator that, unlike the official CLI, doesn't assume it is installed globally (and, to the contrary, is built specifically for being used in npm scripts) and does not install anything on its own behalf.

Installation and Usage

$ npm install --save-dev gitbook
$ npm install --save-dev gitbook-commander

After that, the gitbook-local command will be available for you to use from npm scripts in package.json or via npx.

For example, you may add this or something similar to your package.json:

{
  "scripts": {
    "build-docs": "gitbook-local build"
  }
}

and run

$ npm run build-docs

to build your documentation. GitBook stays isolated inside your node_modules 🎉

Contributing

Issues and PRs are welcome if you spot anything worth fixing! ❤️

This project uses Conventional Commits and the JavaScript code style covered by its own ESLint config (no textual description, sorry 😔, just follow the surrounding code and run the linter via npm run lint or as a part of the general testing process via npm test).

Please adhere to the Code of Conduct for all the interaction in this repo.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i gitbook-commander

Weekly Downloads

3

Version

1.1.4

License

MIT

Last publish

Collaborators

  • aqrln