Giter VIP home page Giter VIP logo

gitbook-template's Introduction

Gitbook Template

A Gitbook seed project

What is this ?

This is a template project for creating books using Gitbook.

What is the software required to install it ?

You must have installed node.js, Git and the Gitbook Command Line tools

  • For node.js

    • To check if the node.js is installed, you may execute:

      $ npm -v
      
    • if it is not installed, you must download and install the software from the official node.js website

  • For Git

    • To check if Git is installed, you may execute:

      $ git --version
      
    • if it is not installed, you must download and install the software from the official Git website

  • For Gitbook Cligitbook

    • To check if Gitbook-Cli is installed, you may execute:

    • If it is not installed, you must install the package using npm as an administrator

      $ npm install -g gitbook-cli
      
    • In linux or mac, you may use sudoto set the user for the .npm folder and install the package

      $ export PATH=$PATH:$HOME/.npm-packages/bin
      $ sudo chown -R $USER:$GROUP ~/.npm
      $ sudo npm install -g gitbook-cli
      

How to install it ?

To deploy the book in a Github-Pages website, you must change the URL for the repository in the package.json file.

  • Check the name of the repository in the Github.
  • Replace the name of the repository. By default, it is "noname/noname.git"

How to run it ?

The project includes a set of commands that can be used to automate part of the process.

  • To install or update the Github plugins, if required.

    $ npm book:prepare
    
  • To preview the book. It runs a webserver where you can review the book while you are writing. Any change in the book is displayed immediately.

    $ npm book:watch
    
  • To create the book (in Windows)

    $ npm book:build
    
  • To publish the book in a Github-Pages website (in Windows)

    $ npm book:publish
    
  • To create the book (in Linux)

    $ npm book:build-linux
    
  • To publish the book in a Github-Pages website (in Linux)

    $ npm book:publish-linux
    

gitbook-template's People

Contributors

jaimechavarriaga avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.