Changes between Version 1 and Version 2 of TracImageSvgMacro
- Timestamp:
- Oct 13, 2008, 7:03:03 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracImageSvgMacro
v1 v2 3 3 == Description == 4 4 5 Display svg image in wiki, tickets using ImageSvg macro.5 Display svg image in wiki, tickets using !ImageSvg macro. This macro can run in trac 0.10, 0.11 and 0.12. 6 6 7 7 == Bugs/Feature Requests == … … 21 21 You can check out TracImageSvgMacro from [http://trac-hacks.org/svn/tracimagesvgmacro here] using Subversion, or [source:tracimagesvgmacro browse the source] with Trac. 22 22 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 {{{ 37 cp dist/*.egg /srv/trac/env/plugins 38 }}} 39 40 5. Config trac.ini: 41 {{{ 42 [components] 43 imagesvg.* = enabled 44 }}} 45 46 6. copy !ImageSvg.py to trac environment wiki-macros directory 47 23 48 == Example == 24 49 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 {{{ 25 54 [[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 }}} 26 69 27 70 == Recent Changes ==