ããã«ã¡ã¯ãAkerunã¨ã³ã¸ãã¢ã® @ishturk ã§ãã
Akerun Advent Calendarã®è¨äºã§ãã
ä»æ¥ã¯è¨è¨æ¸ã®è©±ã§ãã
è¨è¨æ¸ãã©ããªãã¼ã«ã§æ¸ããã¯ãåãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®å°½ããªãæ©ã¿ï¼æ¥½ãã¿ï¼ã§ããã
æè¿ã¯ã¾ã£ããã¼ã«ãæé«ã«è¯ãã£ãã®ã§ç´¹ä»ããã¦ãã ããã
åã®ãã¼ã«ã«æ±ããè¦ä»¶ã¯ä»¥ä¸ã§ãã
- ç·¨éãã«ã¸ã¥ã¢ã«ã«ã§ãã
- UMLãæ¸ããããã¨ããç·¨éã§ããï¼ç»åã§ã®è²¼ä»ãã¯ç·¨éã§ããªãã®ã§NGï¼
- ãã¼ã¸ã§ã³ã®ç®¡çãã§ãã
- 好ãã«ãªããï¼éè¦ï¼
å¤é·ã¨ pros/cons
MS Word
pros
è¯ããæªããã¹ã¿ã³ãã¼ããªãã¼ã«ã§ããã
ã ãã§ãç·¨éã§ããã®ãå¼·ã¿ã§ãã
Visioã¨çµã¿åãããã°ãUMLãå¾ããç·¨éå¯è½ã§ã
cons
Visioã¯æ¨æºã«ããã«ã¯å°ã å¤ãå¼µãã¾ãã
ãã¤ããªå½¢å¼ãªã®ã§ãã¼ã¸ã§ã³ç®¡çã¯ãã¥ããã§ãã
ãã¼ã¸ãå¢ãããç»åãè²¼ã£ããããã¨éããªã£ã¦è©°ã¿ã¾ãã
sphinx
pros
ããã¹ããã¼ã¹ãªã®ã§ãã¼ã¸ã§ã³ç®¡çããããã§ã
ãã¼ã¯ãã¦ã³ã§æ¸ããã®ãããã§ã
è²ã ãªè¨æ³ãç¨æããã¦ããã®ã§ã巨大ãªè¨è¨æ¸ãé å¼µãã°ã¹ãã¼ãã«æ¸ãã¾ã
plantumlã¨ã®è¦ªåæ§ãé«ãã§ã
ã¡ããã¨ã¡ã³ãããã¦ãã
cons
ï¼ä¸»è¦³ã§ããï¼ã«ã¸ã¥ã¢ã«ããã¡ãã£ã¨è¶³ããªãæãï¼ããããªããï¼
Google Docs
pros
Wordã©ã¤ã¯ã«ç·¨éã§ããã®ã§å¦ç¿ã³ã¹ããä½ãã§ã
UMLãæ±ãã«ã¯plantuml gizmoã®ãã©ã°ã¤ã³ãgoodã§ã
ã¯ã©ã¦ããªã®ã§åæç·¨éãã§ããã®ãããã§ã
ãã¼ã¸ã§ã³ç®¡çã¯ç¬èªæ©è½ã§ï¼ä¸å¿ï¼ã§ãã¾ã
cons
å¤é¨ãµã¼ãã¹ãªã®ã§ãããã許å¯ãã¦ããããªããã¨ãå¤ãã§ãã
ãã¡ããããã¼ã¸ãå¢ãããç»åãè²¼ã£ããããã¨éããªã£ã¦è©°ã¿ã¾ã
gitbook
pros
ããã¹ããã¼ã¹ãªã®ã§ãã¼ã¸ã§ã³ç®¡çããããã§ã
ãã¼ã¯ãã¦ã³ã§æ¸ãã¾ã
plantumlã¨ã®è¦ªåæ§ãé«ãã§ããä»ã®pluginãè±å¯ã§ã
gitã¨ã®è¦ªåæ§ãé«ãï¼gitbookã ãï¼ã®ãããã§ã
ã«ã¸ã¥ã¢ã«ããã¡ããã©ãããåçã«ã¯ã³ã³ããã
cons
ä»ã®ã¨ããä¸æºããªãã§ã
gitbook å°å ¥
gitbook ã¨ã¯
- Markdown ã§æ¸ãããããã¥ã¡ã³ããããªã¼å½¢å¼ã®htmlææ¸ã«å¤æãããã¼ã«ã»ãã
- ãã«ãããµã¼ãã¼æ©è½ãæã¤
- ããªã¼ã®ä½ãæ¹ãã·ã³ãã« ï¼å¯¾ sphinx æ¯
- ãã©ã°ã¤ã³ã«å¯¾å¿
- node ã§åã
å°å ¥
nvm + node ãããã
node ã®ãã¼ã¸ã§ã³ã¯ v5.12 æ¨å¥¨(v6ç³»ã§ãåãããã)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash nvm install v5.12 nvm use v5.12
gitbook å°å ¥
npm ã§install ãã¾ãã npmèªä½ã®installã¯çç¥
npm install -g gitbook-cli
ããã¥ã¡ã³ãã®ãã«ã
tree æ§é
. âââ README.md âââ SUMMARY.md âââ book.json âââ docs âââ node_modules
- README.md : ããããã¼ã¸ã«ãªãã¾ãã
- SUMMARY.md : ããã¥ã¡ã³ãããªã¼ãè¨è¼ãããã¡ã¤ã«
- book.json : è¨å®ãã¡ã¤ã«ãpluginãã³ã³ã«æ¸ã
- docs : ã¦ã¼ã¶ã¼ãã¡ã¤ã«ã追å ãããã£ã¬ã¯ããªï¼SUMMARY.mdã§èªç±ã«æ±ºãã¦ãï¼
- node_modules : nodeã§ããã
README.md ãè¨å®ãã¦ããã¨ãgithubã§ã¿ã¦ããREADMEã¨ãã¦è¡¨ç¤ºãããã®ã§ãä¸å 管çã§ããã®ãããã§ãã
ãã«ã
ãã£ã¬ã¯ããªã®ã«ã¼ãã§ãã«ããã¾ããããã©ã«ãã¯htmlã§ããpdfã¨ããåãã¾ãã
gitbook build
ãã¡ã¤ã«ã®è¿½å
ãã®ä¾ã§ã¯ãdocs/ä¸ã«ææ¸ãä½æãé ç½®ãã¾ãã
SUMMARY.md ã®ä¾ããã¹ãã§ãã¾ãã
1 # SUMMARY 2 3 * [æ¦è¦è¨è¨](docs/README.md) 4 * [ã»ããã®ç« ](docs/hogera.md)
plugin ã®è¿½å
plugin ã®å°å ¥èªä½ã¯npmã§ãï¼ã¡ããã¨ãããªãbuildããæã«ä¸è¶³ãã¦ããpluginãinstallããããã«ãã¦ãï¼
ãã¨ãã°plantumlã ã¨ã
npm install gitbook-plugin-uml
å°å ¥ããã使ç¨ããpluginããbook.json ã«è¨è¼ãã¾ã
1 { 2 "plugins": ["uml","-search"], 3 "pluginsConfig": { 4 "uml": { 5 "format": "svg", 6 "charset" : "UTF-8", 7 "nailgun": false 8 } 9 } 10 }
ããã¥ã¡ã³ãã®é ä¿¡
ãã¼ã«ã«ã®ã§å®è¡
gitbook serve
ã¨ããã¨ãwebãµã¼ãã¼ã«ãªã£ã¦ãã©ã¦ã¶ã§é²è¦§ã§ããããã«ãªãã¾ã
ãã¢
Jenkins + git (github) webhook
gitã®ã³ãããã§webhookãå¼ã£æãã¦ãã¡ã¤ã«ãåå¾ããã°ããã¥ã¡ã³ãã®èªåæ´æ°ãè¨å®ã§ãã¾ãã
Jenkinsãå°å ¥ããã¦ãããµã¼ãã¼ã«gitbookãå°å ¥ãã¦ãããã°ãç°¡åã«è¨å®ã§ãã¾ããã
gitbookã®serveræ©è½ã使ãã°ãèªåã®webãµã¼ãã¼ãä¸è¦ã§ãã
ç°¡åã«ãã¼ã ã§è¨è¨æ¸ãå ±æã§ãã¦ãæé«ã§ããã
ãããã«
ã¾ãæ°ãããã®ãåºãããããã試ãããã§ããããã°ããã¯gitbookã§ã¤ã¤æ°ããã¦ã¾ãã
åç¥
å¼ç¤¾ã§ã¯ã¨ã³ã¸ãã¢ãåéãã¦ãã¾ãï¼
追è¨
ç»é¢é·ç§»ãªã©ã®ç»åãè¨è¨æ¸ã¨ä¸ç·ã«ç®¡çãã話ãæ稿ãã¾ãã