ããã¹ããã¡ã¤ã«ã§Tracã®wikiãæ´æ°ããã
Tracã®wikiã§é·ãããã¥ã¡ã³ããæ¸ãã¦ãã¦è¾ããªã£ã¦ããã®ã§ãããã¹ããã¡ã¤ã«ã§æ´æ°ããããã®Rakefileãæ¸ãããwikiã®ã½ã¼ã¹ããªãã¸ããªã«ã³ãããã§ãã¦ãããããã³ãããããã¯ã§wikiæ´æ°æã«ãã±ãããæ´æ°ã§ãã¦ããããã
ã¤ã³ã¹ãã¼ã«
* http://gist.github.com/458400
mechanizeã¨highlineãå¿ è¦ã
$ sudo gem install mechanize $ sudo gem install highline
Basicèªè¨¼ãåæããã¼ã ãã£ã¬ã¯ããªã« ~/.tracrake ãã¡ã¤ã«ãç½®ãã¨æ¯åãã¹ã¯ã¼ããå ¥åããã«æ¸ããä¸èº«ã¯YAMLã
id: username pass: password
Rakefileã¨åããã£ã¬ã¯ããªã«ããå ¨ã¦ã®*.txtãã¡ã¤ã«ãwikiã®ã½ã¼ã¹ãã¡ã¤ã«ã«ãªããããã¹ãã®å é ã®è¡ã«ã
æ´æ°ããwikiãã¼ã¸ã®URL ç©ºç½ wikiãã¼ã¸ã®ç¾ãã¼ã¸ã§ã³çªå·
ãæ¸ãããã¼ã¸ã§ã³çªå·ã¯ããã¼ã¸å±¥æ´ãã§ç¢ºèªåºæ¥ãã2è¡ç®ä»¥éãwikiã®ã½ã¼ã¹ã
http://your.trac.page/wiki/abc 12 [[PageOutline]] * title ** subtitle - aaa - bbb - ccc
ã¿ã¹ã¯
使ããã¿ã¹ã¯ã¯3ã¤ã
$ rake -T rake trac:diff # diff trac wiki articles and *.txt files. rake trac:download # download trac source and overwrite all *.txt files. rake trac:update # upload trac wiki articles from *.txt files.
- trac:update â¦â¦ wikiãæ´æ°ããªã¢ã¼ãã®ãã¼ã¸ã§ã³ãæ°ããå ´åã¯ãæ´æ°ããã«diffã表示ã
- trac:diff â¦â¦ ãªã¢ã¼ãã¨ã®diffã表示ã
- trac:download â¦â¦ å ¨ã¦ã®*.txtãã¡ã¤ã«ããªã¢ã¼ãã®å 容ã§ä¸æ¸ããããæåã«ã½ã¼ã¹ãåå¾ããæãªã©ã«ã