Changes between Version 43 and Version 44 of ScreenshotsPlugin


Ignore:
Timestamp:
Mar 4, 2015, 9:26:04 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Added syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • ScreenshotsPlugin

    v43 v44  
    5454If you run Trac in an environment which needs to enable plugins explicitly, put these lines in trac.ini:
    5555
    56 {{{
     56{{{#!ini
    5757[components]
    5858TracScreenshots.init.ScreenshotsInit = enabled
     
    6969
    7070If you don't have TagsPlugin installed replace last line with:
    71 {{{
     71{{{#!ini
    7272tracscreenshots.tags.screenshotstags = disabled
    7373}}}
     
    7575Create directory you have specified with {{{path}}} config option and make sure it is accessible by Trac server. The next step is to upgrade your environment:
    7676
    77 {{{
    78 # trac-admin <path_to_environment> upgrade
     77{{{#!sh
     78$ trac-admin <path_to_environment> upgrade
    7979}}}
    8080
     
    9191If you use Apache, please restart it before setting permissions. You can add these permissions by typing the following commands from the command line or you can use WebAdminPlugin to do it for you:
    9292
    93 {{{
    94 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN
    95 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD
    96 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE
    97 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER
    98 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER
    99 # trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW
     93{{{#!sh
     94$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN
     95$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD
     96$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE
     97$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER
     98$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER
     99$ trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW
    100100}}}
    101101
     
    137137Example:
    138138
    139 {{{
    140  [[Screenshot(2,width=400,height=300,description=The $name by $author: $description,align=left)]]
    141 }}}
    142 
    143 For creating image maps you might consider using tools like http://www.maschek.hu/imagemap/imgmap.
     139 {{{
     140[[Screenshot(2,width=400,height=300,description=The $name by $author: $description,align=left)]]
     141}}}
     142
     143For creating image maps you might consider using tools like [http://www.maschek.hu/imagemap/imgmap imgmap].
    144144
    145145{{{[[ScreenshotsList()]]}}} macro displays list of all available screenshots on wiki page. Accepts one argument which is template for list items formatting. Possible variables in this template are:
     
    159159Example:
    160160
    161 {{{
    162  [[ScreenshotsList($name - $description ($widthx$height))]]
     161 {{{
     162[[ScreenshotsList($name - $description ($widthx$height))]]
    163163}}}
    164164
     
    187187
    188188Preparing the plugin from source requires the additional step of compiling message catalog files. This will be done automatically by invoking a suitable Babel install. Walk through:
    189 {{{
     189{{{#!sh
    190190cd tracscreenshots
    191191python ./setup.py compile_catalog -f