gitbook-commander
v1.1.4
Published
npm scripts friendly CLI for GitBook that installs nothing on your system and makes use of peerDependencies
Downloads
3
Readme
gitbook-commander
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