Changes between Version 6 and Version 7 of SysCssPlugin


Ignore:
Timestamp:
Oct 23, 2006 12:44:44 AM (7 years ago)
Author:
coderanger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SysCssPlugin

    v6 v7  
    44 
    55This is a simple plugin to allow you to have both system-wide and site-specific CSS. If you only need one or the other, you can simply use site_css.cs, in {{{/path/to/env/templates/site_css.cs}}} for site-specific, or {{{/usr/share/trac/templates/site_css.cs}}} for system-wide. 
    6  
    7 You can configure the path to this file in two ways: 
    8  1. Add a line to the {{{[trac]}}} section:  
    9 {{{ 
    10 syscss = /path/to/css/file.css 
    11 }}} 
    12  1. Create a file "syscss_file.py", and place it anywhere it can be imported by python. This file should contain a single line:  
    13 {{{ 
    14 file = "/path/to/css/file.css" 
    15 }}} 
    166 
    177The default file is {{{/usr/share/trac/templates/sys_css.css}}}. 
     
    3727== Example == 
    3828 
    39 Just add the needed CSS to a file, configure it as noted above, and add {{{syscss.* = enabled}}} to each Trac instance. 
     29To enabled it: 
     30{{{ 
     31[components] 
     32syscss.* = enabled 
     33}}} 
     34 
     35You probably want to enable it globally (usually in `/usr/share/trac/conf/trac.ini`). 
     36 
     37=== Configuration === 
     38Choose one of these methods. 
     39 
     40To use a file: 
     41{{{ 
     42[syscss] 
     43type = file 
     44path = /path/to/file.css 
     45}}} 
     46 
     47To use a URL: 
     48{{{ 
     49[syscss] 
     50type = url 
     51file = URL 
     52}}} 
    4053 
    4154== Recent Changes ==