@aleung/gitbook

3.2.7 • Public • Published

GitBook

This is a fork of latest opensource GitBook. Bugfix is added into this fork, since origin repo wasn't maintained and not accept PR any more.

Install

Original gitbook uses gitbook-cli to install and manage versions. But gitbook-cli only works with official gitbook release. This fork is published in another scope so it's unable to be managed by gitbook-cli. It needs to be explicitly installed inside a book.

Before you start, make sure Node.js and yarn is on your system.

Put a file package.json into the book folder (an existing book or where you're going to create a book):

{
  "scripts": {
    "postinstall": "gitbook install"
  },
  "dependencies": {
    "@aleung/gitbook": "^3.2.7"
  }
}

Run yarn install to install this gitbook fork into book folder.

After that, you could run any gitbook CLI command inside book folder, with yarn in front of the command. For example:

$ yarn gitbook help
$ yarn gitbook init
$ yarn gitbook build
$ yarn gitbook serve --port 8080

Original README

GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc). Here is an example: Learn Javascript.

You can publish and host books easily online using gitbook.com. A desktop editor is also available.

Check out the GitBook Community Slack Channel, Stay updated by following @GitBookIO on Twitter or GitBook on Facebook.

Complete documentation is available at toolchain.gitbook.com.

Image

Getting started

GitBook can be used either on your computer for building local books or on legacy.gitbook.com for hosting them. To get started, check out the installation instructions in the documentation.

Usage examples

GitBook can be used to create book, public documentation, enterprise manual, thesis, research papers, etc.

You can find a list of real-world examples in the documentation.

Help and Support

We're always happy to help out with your books or any other questions you might have. You can ask a question on the following contact form at gitbook.com/contact or signal an issue on GitHub.

Features

Publish your book

The platform legacy.gitbook.com is like an "Heroku for books": you can create a book on it (public, or private) and update it using git push.

Licensing

GitBook is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Readme

Keywords

Package Sidebar

Install

npm i @aleung/gitbook

Weekly Downloads

1

Version

3.2.7

License

Apache-2.0

Unpacked Size

703 kB

Total Files

365

Last publish

Collaborators

  • aleung