source: tracimagesvgmacro/0.11/imagesvg/readme.txt

Last change on this file was 6539, checked in by Richard Liao, 14 years ago

update install guide for trac 0.10 and 0.11

File size: 1.2 KB
Line 
1= About this software =
2 * Trac Image SVG macro is a Trac plugin/macro.
3
4= Install =
5 You can install this software as normal Trac plugin.
6
7 1. Uninstall Trac Image SVG macro if you have installed before.
8
9 2. Change to the directory containning setup.py.
10
11 3. If you want to install this plugin globally, that will install this plugin to the python path:
12  * python setup.py install
13
14 4. If you want to install this plugin to trac instance only:
15  * python setup.py bdist_egg
16  * copy the generated egg file to the trac instance's plugin directory
17  {{{
18cp dist/*.egg /srv/trac/env/plugins
19}}}
20
21 5. Config trac.ini:
22  {{{
23[components]
24imagesvg.* = enabled
25}}}
26
27= Usage =
28 1. Upload svg files to wiki or ticket, eg: example.svg
29 1. Display svg image inwiki page !TopPage/SubPage
30  * Display right in !TopPage/SubPage:
31   {{{
32[[ImageSvg(example.svg)]]
33}}}
34  * Display in other pages or tickets:
35   {{{
36[[ImageSvg(wiki:TopPage/SubPage:example.svg)]]
37}}}
38 1. Display svg image in ticket 123 which has attachment example.svg
39   {{{
40[[ImageSvg(example.svg)]]
41}}}
42  * Display in other wiki pages or tickets which reference svg attachment of ticket 123:
43   {{{
44[[ImageSvg(ticket:123:example.svg)]]
45}}}
Note: See TracBrowser for help on using the repository browser.