TracBlockdiag 0.2.1

Integrate blockdiag series into Trac wiki
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
}}}

Main features:

  • Support almost blockdiag features (fontmap is not supported).
  • Support PNG/SVG output (SVG support is Trac 0.12 only).
  • Fastest wiki rendering.
  • Multi thread/process safe.
  • Check installed blockdiag series and provide only supported macros.
  • Don't create temporary file.

last updated on:
February 28th, 2012, 3:13 GMT
price:
FREE!
developed by:
Yoshihisa Tanaka
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

What's New in This Release:
  • Fix issue on setup from PyPI
read full changelog

Add your review!

SUBMIT