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