LoginSignup
98

More than 5 years have passed since last update.

gitbook試してみた

Last updated at Posted at 2014-04-04

gitbook

サンプルリポジトリ

cloneしてgitbook serveすれば動きます

gitbookのインストール

$ npm install gitbook -g

作り方

  1. プロジェクトのルートにREADME.mdSUMMARY.mdを作る
  2. ディレクトリを作成し、その中にもREADME.mdを作る
  3. ディレクトリの中にmarkdownのファイルを置く
  4. SUMMARY.mdにこんな感じで書く
* [docs](docs/README.md)
  * [first](docs/first.md)
  * [second](docs/second.md)
  * [third](docs/third.md)
  1. build
$ gitbook build
  1. サーバ起動
$ gitbook serve
tarting build ...
Successfuly built !

Starting server ...
Serving book on http://localhost:4000

Press CTRL+C to quit ...
  1. http://localhost:4000 にアクセス

sample.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
98