This project aims to generate html pages for Pro Git book from Book Source using node.js.
The generated HTML pages can be hosted on the GitHub via Github Pages.
- demo.
-
Download and install Node.js.
-
Get a copy of this project:
git clone https://github.com/iissnan/progit.git progit
If you want to host this pages yourself, you need to fork this project to your account first.
-
Install dependencies:
npm install
-
Get book source:
Book source is involved as a git submodule. Run the following command to init the submodule.
git submodule init git submodule update
-
Generate HTML pages:
node lib/build
-
Push to your repository's gh-pages branch.
git push origin gh-pages