Changes between Version 20 and Version 21 of AddHeadersPlugin


Ignore:
Timestamp:
Nov 9, 2015, 3:35:20 PM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • AddHeadersPlugin

    v20 v21  
    1414
    1515If you have any issues, create a
    16 [http://trac-hacks.org/newticket?component=AddHeadersPlugin&owner=martin_s new ticket].
     16[/newticket?component=AddHeadersPlugin new ticket].
    1717
    1818[[TicketQuery(component=AddHeadersPlugin&group=type,format=progress)]]
     
    2020== Download
    2121
    22 Download the zipped source from [download:addheadersplugin here].
     22Download the zipped source from [export:addheadersplugin here].
    2323
    2424== Source
    2525
    26 You can check out AddHeadersPlugin from [http://trac-hacks.org/svn/addheadersplugin here] using Subversion, or [source:addheadersplugin browse the source] with Trac.
     26You can check out AddHeadersPlugin from [/svn/addheadersplugin here] using Subversion, or [source:addheadersplugin browse the source] with Trac.
    2727
    2828== Installation
     
    4040=== Settings
    4141
    42  `default_base = `''<path relative to base URL>'' (default: '`site/`'):: This is used as default base of the files relative to the base URL, which is eg `http://trac.example.org/project1/`. Note that URL paths, not local file paths are used. The default is `site/` which is the relative URL for the `htdocs` directory in your `$TRAC_PROJECT_DIR`.
     42 `default_base = `''<path relative to base URL>'' (default: '`site/`'):: This is used as default base of the files relative to the base URL, which is eg `http://trac.example.org/project1/`. Note that URL paths are used, not local file paths. The default is `site/` which is the relative URL for the `htdocs` directory in your `$TRAC_PROJECT_DIR`.
    4343
    4444 `default_script_base = `''<path relative to base URL>'' (default: `default_base`):: To provide a different default path for scripts.
     
    8484The !JavaScript file is located at `$TRAC_PROJECT_DIR/htdocs/js/multistyle.js` and all CSS files are located at `$TRAC_PROJECT_DIR/htdocs/css/`.
    8585A general style file `common.css` is included which holds all common style definition. The default style is in `default.css` and the alternative styles in `theme1.css` and `theme2.css`.
    86 Please note that general CSS files are added using `add_styles` while the others using `add_links`. This has HTML and Trac API related reasons.
    87 
    88 {{{#!ini
    89 # in trac.ini
     86
     87Note that general CSS files are added using `add_styles`, while the others are using `add_links`. This has HTML and Trac API related reasons.
     88
     89{{{#!ini
    9090[addheaders]
    9191default_style_base  = site/css/
     
    119119
    120120This will result in the following added headers, not necessary in that order:
    121 {{{
     121{{{#!html
    122122<link title="default" type="text/css" href="/chrome/site/style.css" rel="stylesheet" />
    123123<link title="theme1" type="text/css" href="/chrome/site/theme1.css" rel="alternate stylesheet"/>