TracBlockdiag

  149 downloads
0.2.1 MIT/X Consortium License    
  not rated
Integrate blockdiag series into Trac wiki

description

download

specifications

changelog

TracBlockdiag is a Trac plugin that integrate blockdiag series into wiki pages. It's provide wiki macros for blockdiag, seqdiag, actdiag, nwdiag and rackdiag.

This software is available under the MIT license.

Install

First, clone the repository.

 git clone https://github.com/yosisa/TracBlockdiag.git
 cd TracBlockdiag


Then, you can install globally

 python setup.py install

or install to a specific Trac environment.

 python setup.py bdist_egg
 cp dist/*.egg /path/to/tracenv/plugins

Moreover, you must install blockdiag series which you want to integrate. For example, below command will install all blockdiag series (rackdiag is currently included in nwdiag).

 pip install blockdiag seqdiag actdiag nwdiag

Optionally, you can use blockdiag plugins. If you need a plugin, you simply install it. For example, below command will install new shapes.

 pip install blockdiagcontrib-cisco

Usage

If you are not familiar with blockdiag, you should read the blockdiag documentation first.

for Trac 0.12 or later

Macro synopsis like this:

{{{#!(block|seq|act|nw|rack)diag [type=(png|svg)] [IMG_TAG_ATTR=VALUE ...]
*DIAG_SOURCE_TEXT
}}}


You can write blockdiag source text as a wiki macro like below.

{{{#!blockdiag
{
 A -> B -> C;
 B -> D;
}
}}}


You can specify output format and width.

{{{#!blockdiag type=svg width=800px
{
 A -> B -> C;
 B -> D;
}
}}}

for Trac 0.11

Macro synopsis like this:

{{{
#!(block|seq|act|nw|rack)diag
*DIAG_SOURCE_TEXT
}}}
READ MORE   
Last updated on February 28th, 2012

0 User reviews so far.

SUBMIT