Tracã®wikiã«å³é¢ãå ¥ããï¼BlockDiagç·¨ï¼
Tracã®wikiã§blockdiagã使ãããã®ãã©ã°ã¤ã³ãå°å ¥ãããç´ç·ãåã¨è¨ã£ãããªããã£ããªå³å½¢ã§ã¯ãªããéçºç¾å ´ã§ãã®ã¾ã¾ä½¿ãããããªå³é¢ãæããã®ãç¹å¾´ã ãå©ç¨ç°å¢ã¯ä¸è¨ã®éãã
å°å ¥
- blockdiagãã¤ã³ã¹ãã¼ã«ã
% sudo /opt/local/bin/easy_install-2.6 blockdiag % sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/blockdiag /opt/local/bin/
- seqdiagãã¤ã³ã¹ãã¼ã«ã
% sudo /opt/local/bin/easy_install-2.6 seqdiag % sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/seqdiag /opt/local/bin/
- actdiagãã¤ã³ã¹ãã¼ã«ã
% sudo /opt/local/bin/easy_install-2.6 actdiag % sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/actdiag /opt/local/bin/
- nwdiagãã¤ã³ã¹ãã¼ã«ã
% sudo /opt/local/bin/easy_install-2.6 nwdiag % sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/nwdiag /opt/local/bin/
- BlockDiagPluginã«ä¸è¨ã³ãã³ãã¸ã®ãã¹ã追è¨ãã¦ãããï¼web_ui.pyã«è¨è¼ï¼
cmd = ['/opt/local/bin/' + name, '-a', '-T', type, '-o', outfile, infile]
- BlockDiagPluginãã¤ã³ã¹ãã¼ã«ããã
% sudo /opt/local/bin/python2.6 setup.py install
- Apacheãåèµ·åãã¦ãTrac管çã¡ãã¥ã¼ã«ã¦BlockDiagãã©ã°ã¤ã³ã®ãã§ãã¯ããã¯ã¹ããªã³ã«è¨å®ããã
使ç¨ä¾
- blockdiagã®è¨è¼
{{{ #!blockdiag(type=png) { A -> B -> C; B -> D; B -> E; } }}}
- 表示ä¾
- seqdiagã®è¨è¼
{{{ #!seqdiag(type=png) { browser -> webserver [label = "GET /index.html"]; browser <-- webserver; browser -> webserver [label = "POST /blog/comment"]; webserver -> database [label = "INSERT comment"]; webserver <-- database; browser <-- webserver; } }}}
- 表示ä¾
- actdiagã®è¨è¼
{{{ #!actdiag(type=png) { write -> convert -> image lane user { label = "User" write [label = "Writing reST"]; image [label = "Get diagram IMAGE"]; } lane actdiag { convert [label = "Convert reST to Image"]; } } }}}
- 表示ä¾
- nwdiagã®è¨è¼
{{{ #!nwdiag(type=png) { network dmz { address = "192.x.x.x/24" web01 [address = "192.x.x.1"]; web02 [address = "192.x.x.2"]; web03 [address = "192.x.x.3"]; } network internal { address = "172.x.x.x/24"; web01 [address = "172.x.x.1"]; web02 [address = "172.x.x.2"]; db01; } } }}}
- 表示ä¾
åè
- blockdiagã«ã¤ãã¦ã¯ä¸è¨ãåç §ã
é¢é£