LoginSignup
37
34

More than 3 years have passed since last update.

Gitbook

Last updated at Posted at 2016-01-14
  • mdwikiも良いが、シーケンス図がより綺麗

参考

Gitbook を dockerで動かす

mkdir gitbook html
init
wget https://codeload.github.com/HeRoMo/gitbook-template/zip/master
unzip master
cd gitbook-template-master
init
docker-compose run --rm gitbook init
docker-compose up -d
sudo chown -R $USER gitbook

1分ほど待つ

目次の作成

# Summary

This is the summary of my book.

* [section 1](section1/README.md)
    * [example 1](section1/example1.md)
    * [example 2](section1/example2.md)
* [section 2](section2/README.md)
    * [example 1](section2/example1.md)
gitbook init
  • 不足しているファイルを自動作成してくれる
    • section1/README.md
    • section1/example1.md
    • section1/example2.md
    • section2/README.md
    • section2/example1.md

CSSを変更

styles/website.css
h1 {
    text-align:center;
}

h2 {
    margin: 1.3em 0 .7em 0;
    background-color: #EEE;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    line-height: 30px;
}

h3 {
    margin: 1.3em 0 .7em;
    border-bottom: solid 1px #d9d9d9;
    line-height: 1.4;
}

a {
    color: #117ec6;
    text-decoration: none;
    border-bottom: none;
}
  • webサーバを再立ち上げで反映される

Haroopad

  • windows, linux, mac用エディタ。主にmermaid書式の編集に用いる。
  • mermaid記法対応(図が書ける)
  • viキーバインド対応

あと一歩のところは、以下でmermaid書式と認識しない。

{% mermaid %}
...
{% endmermaid %}
37
34
3

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
37
34