Changes between Version 17 and Version 18 of TracBlockDiagPlugin


Ignore:
Timestamp:
Feb 14, 2022, 5:50:47 AM (2 years ago)
Author:
figaro
Comment:

Move example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • TracBlockDiagPlugin

    v17 v18  
    1010
    1111A fork of the plugin can be found [https://github.com/yosisa/TracBlockdiag here], and may be more up-to-date.
     12
     13'''Example 1''':
     14{{{
     15{{{
     16#!blockdiag(type=png)
     17{
     18   A -> B -> C;
     19        B -> D;
     20}
     21}}}
     22}}}
     23
     24The text above will be rendered as follows:
     25
     26[[Image(blockdiag-sample.png, border=2)]]
     27
     28'''Example 2''':
     29{{{
     30{{{
     31#!seqdiag(type=png)
     32{
     33  browser  -> webserver [label = "GET /index.html"];
     34  browser <-- webserver;
     35
     36  browser  -> webserver [label = "POST /blog/comment"];
     37              webserver  -> database [label = "INSERT comment"];
     38              webserver <-- database;
     39  browser <-- webserver;
     40}
     41}}}
     42}}}
     43
     44The text above will be rendered as follows:
     45
     46[[Image(seqdiag-sample.png, border=2)]]
    1247
    1348== Bugs/Feature Requests
     
    3570General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3671
    37 You may (at least on Ubuntu 14.04LTS) need to install the corresponding Python modules from http://blockdiag.com (Apache licensed). Then running `easy_install blockdiag` and `easy_install seqdiag` should work to install these modules.
    38 
    39 == Example
    40 
    41 This text will be rendered like below:
    42 {{{
    43 {{{
    44 #!blockdiag(type=png)
    45 {
    46    A -> B -> C;
    47         B -> D;
    48 }
    49 }}}
    50 }}}
    51 
    52 [[Image(blockdiag-sample.png)]]
    53 
    54 This text will be rendered like below:
    55 {{{
    56 {{{
    57 #!seqdiag(type=png)
    58 {
    59   browser  -> webserver [label = "GET /index.html"];
    60   browser <-- webserver;
    61 
    62   browser  -> webserver [label = "POST /blog/comment"];
    63               webserver  -> database [label = "INSERT comment"];
    64               webserver <-- database;
    65   browser <-- webserver;
    66 }
    67 }}}
    68 }}}
    69 
    70 [[Image(seqdiag-sample.png)]]
     72You may need to install the corresponding Python modules from http://blockdiag.com (Apache licensed), at least on Ubuntu 14.04LTS. Then running `easy_install blockdiag` and `easy_install seqdiag` should work to install these modules.
    7173
    7274== Recent Changes