Changes between Version 1 and Version 2 of TracImageSvgMacro


Ignore:
Timestamp:
Oct 13, 2008, 7:03:03 AM (16 years ago)
Author:
Richard Liao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracImageSvgMacro

    v1 v2  
    33== Description ==
    44
    5 Display svg image in wiki, tickets using ImageSvg macro.
     5Display svg image in wiki, tickets using !ImageSvg macro. This macro can run in trac 0.10, 0.11 and 0.12.
    66
    77== Bugs/Feature Requests ==
     
    2121You can check out TracImageSvgMacro from [http://trac-hacks.org/svn/tracimagesvgmacro here] using Subversion, or [source:tracimagesvgmacro browse the source] with Trac.
    2222
     23= Install =
     24 You can install this software as normal Trac plugin.
     25
     26 1. Uninstall Trac Image SVG macro if you have installed before.
     27
     28 2. Change to the directory containning setup.py.
     29
     30 3. If you want to install this plugin globally, that will install this plugin to the python path:
     31  * python setup.py install
     32
     33 4. If you want to install this plugin to trac instance only:
     34  * python setup.py bdist_egg
     35  * copy the generated egg file to the trac instance's plugin directory
     36  {{{
     37cp dist/*.egg /srv/trac/env/plugins
     38}}}
     39
     40 5. Config trac.ini:
     41  {{{
     42[components]
     43imagesvg.* = enabled
     44}}}
     45
     46 6. copy !ImageSvg.py to trac environment wiki-macros directory
     47
    2348== Example ==
    2449
     50 1. Upload svg files to wiki or ticket, eg: example.svg
     51 1. Display svg image in wiki page !TopPage/SubPage
     52  * Display right in !TopPage/SubPage:
     53  {{{
    2554[[ImageSvg(example.svg)]]
     55}}}
     56  * Display in other pages or tickets:
     57  {{{
     58[[ImageSvg(wiki:TopPage/SubPage:example.svg)]]
     59}}}
     60 1. Display svg image in ticket 123
     61  * Display right in ticket 123:
     62  {{{
     63[[ImageSvg(example.svg)]]
     64}}}
     65  * Display in other wiki pages or tickets which reference svg attachment of ticket 123:
     66  {{{
     67[[ImageSvg(ticket:123:example.svg)]]
     68}}}
    2669
    2770== Recent Changes ==