Milkodeã®ãã¼ã ãã¼ã¸ãJekyllã§ãªãã¥ã¼ã¢ã«ãã¾ããã
Milkode - è¡æåã®ã½ã¼ã¹ã³ã¼ãæ¤ç´¢ã¨ã³ã¸ã³
â» æ§Wikiãã¼ã¸ã«ãªãã¤ã¬ã¯ãããã¦ãã¾ãæ¹ã¯ãææ°ã§ãããã©ã¦ã¶ã®ãã£ãã·ã¥ãåé¤ãã¦ã¿ã¦ä¸ããã
移è¡ã®çµç·¯
Milkodeã®ãã¼ã ãã¼ã¸ã¯ãã£ã¨MediaWikiã使ã£ã¦ããã®ã§ããã以åå¥ã®èªä½ã½ããã®ããã¥ã¡ã³ãä½æã«Jekyllã使ãçµæ§æ触ãè¯ãã£ãã®ã§æãåã£ã¦ç§»è¡ãããã¨ã«ãã¾ããã
æç« éãå¤ãã£ããã移è¡ã«2é±éä½ãããã¾ããã
MediaWikiããJekyllã«ç§»è¡ãã¦è¯ãã£ããã¨
- ãã¡ã¤ã«ã§å稿ãæ¸ãã
- Rubyã使ã£ã¦ãã£ã«ã¿ã¼å¦çãããããã¾ã¨ãã¦ã³ãã¼ã¨ãã£ãä¸æ¬å¦çãç°¡åã§ã
- Markdownã§æ¸ãã
- emacsã®markdown-modeãKobitoçã対å¿ãã¦ããã¨ãã£ã¿ãå¤ãã®ãããæã§ã
- git管çåºæ¥ã
- ç·¨éå±¥æ´ãè¦ãããå½¢ã§æ®ãã¾ããå·®åã®åå©ç¨ãªã©ããããããªãã¾ã
- ãã¼ã¸ã®è¡¨ç¤ºãé«é
- äºåã«htmlãçæãã¦ããã®ã§é«éã§ã(MediaWikiã®ã¬ã³ããªã³ã°ããããªã«é ãã¨ãã訳ã§ã¯ãªãã§ãã)
- ã¹ãã æ»æãåããªã
- 以åã¹ãã æ»æã§è¦å´ãã¦æçµçã«èªå以å¤ã¯æ¸ãè¾¼ã¿ä¸å¯ã«ãããã¨ã«ãªããããããWikiã®æå³ãªããããã»ã»ã¨ã¯æã£ã¦ã¾ãã
- _layouts/layout.html 㨠Liquidãã³ãã¬ã¼ãã®çµã¿åããã§çµæ§è²ã
ãªãã¨ãåºæ¥ã
- å¤æ°å±éãã¡ãã£ã¨ããç¹°ãè¿ãå¦çãæ¸ãã¾ã
- ããããããã¿ã¼ã¯layout.htmlã«ä¸åã ãæ¸ãã¦ã¡ã¤ã³è¨äºã¨ãªãxxx.mdã«ã¯è¨äºæ¬ä½ããæ¸ããªãããã«åºæ¥ã¾ã
- ãé¢åãªHTMLãæ¸ããã«ããã«è¨äºæ¬æãæ¸ãå§ããããã¯èªåã«ã¨ã£ã¦Wikiã使ã大ããªã¢ããã¼ã·ã§ã³ã®ä¸ã¤ã ã£ãã®ã§ããã§åãæ¿ããæ°ã«ãªãã¾ãã
- ã¨ã¯ããæåã®ä¸åã¯èªåã§ãã³ãã¬ã¼ãæ¸ãå¿ è¦ãããã¾ãããããä¸åæ¸ããã®ã§æ¬¡ããã¯ãã£ã¨æ¥½ã«åºæ¥ããã§ã
大å¢ã§ç·¨éããæã¯ãã¯ãWikiãããã§ããã主ã«ä¸äººã§ä½ã£ã¦ãããµã¤ããJekyllã§ä½ãã®ã¯ãªããªãããã¨æãã¾ããã
å®éã«Jekyllããã¥ã¡ã³ãã·ã¹ãã ãåããã¦ã¿ã
ongaeshi/milkode at gh-pages · GitHub
ãæå ã®ç°å¢ã§åç¾ããã«ã¯
$ git clone git://github.com/ongaeshi/milkode.git $ cd milkode $ git checkout -b gh-pages origin/gh-pages
ã§ã½ã¼ã¹ã³ã¼ãããã§ãã¯ã¢ã¦ãããå¾
$ jekyll serve --watch Configuration file: xxx Source: xxx Destination: xxx/_site Generating... done. Auto-regeneration: enabled [2013-05-19 23:16:07] INFO WEBrick 1.3.1 [2013-05-19 23:16:07] INFO ruby 2.0.0 (2013-02-24) [x86_64-darwin11] [2013-05-19 23:16:07] INFO WEBrick::HTTPServer#start: pid=31564 port=4000
ã§ãwebãµã¼ãã¼ãèµ·åããå¾ã« http://0.0.0.0:4000 ã«ã¢ã¯ã»ã¹ãã¦ä¸ããã
jekyllãã¤ã³ã¹ãã¼ã«ãã¦ããªã人ã¯äºåã«
$ gem install jekyll
ãå¿ è¦ã§ãã
Jekyllã®ç°¡æãã³ãã¬ã¼ãããµã³ãã«ã³ã¼ãã¨ãã¦ã使ãä¸ããã
ãã¼ã¸ãã«ã¹ã¿ãã¤ãºãã
- ãã¼ã¸ã®å
容ãæ¸ãæããã â
*.md
ãç·¨é - ãã¼ã¸ãã³ãã¬ã¼ããæ¸ãæããã â `layout.html
- Jekyllã®è¨å®ãsite.xxxã¨ãã£ãå¤æ°ã®å¤ãæ¸ãæããã â
_config.yml
注æ: _config.yml
ãæ¸ãæããæ㯠jekyll serve --watch
ãä¸ååæ¢ãã¦åèµ·åããªãã¨å¤æ´ãåæ ããã¾ããã(ãã¾ã«å¿ãã¾ãã»ã»)
é¢é£è¨äº
- 30åã®ãã¥ã¼ããªã¢ã«ã§Jekyllãç解ãã
- ãªã³ã¯ã¿ã¤ãã«ã¨URLããã®å ´ã§ç·¨éâ好ããªå½¢å¼ã§ã¯ãªãããã¼ãã«ã³ãã¼ãã¦ããã FireLink - ãã¡ãã®ãã¼ã¸ãJekyllã«ç§»è¡æ¸ã¿ã§ã
ãç¥ãã(宣ä¼ã¨ããã)
ããããææ¥è¾ºãã«gihyo.jpã«Milkodeã®è¨äºãè¼ãã¾ããMilkodeã«ãããgroonga(主ã«rroonga)ã®ä½¿ãæ¹ã«ã¤ãã¦æ¸ãã¾ããã
éé±é£è¼groongaã®ç¬¬ååã¨ãã¦æ²è¼ãããäºå®ã§ãã
- Rubyã§æ¤ç´¢ã¨ã³ã¸ã³ãä½ã£ã¦ã¿ãã
- ä½ããã¯åãããªããã©ãã®è¾ºã®æè¡ã«èå³ã¯ãã
ãããªæ¹ã«ã¨ã£ã¦ã¯é¢ç½ãããããã¾ãããã楽ãã¿ã«ï½ã