Edgewall Software

Changes between Version 21 and Version 22 of TracStandalone


Ignore:
Timestamp:
Dec 28, 2005, 10:54:16 PM (18 years ago)
Author:
Christian Boos
Comment:

Document the htdocs: TracLinks introduced in r2654

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v21 v22  
    100100}}}
    101101
     102
     103== Tips ==
     104
     105=== Serving static content ===
     106
     107If `tracd` is the only webserver used for the project,
     108it can also be used to distribute static content
     109(tarballs, Doxygen documentation, etc.)
     110
     111This static content should be put in the `$TRAC_ENV/htdocs` folder,
     112and is accessed by URLs like `<project_URL>/chrome/site/...`.
     113
     114Example: given a `$TRAC_ENV/htdocs/software-0.1.tar.gz` file,
     115the corresponding relative URL would be `/<project_name>/chrome/site/software-0.1.tar.gz`,
     116which in turn can be written using the relative link syntax
     117in the Wiki: `[/<project_name>/chrome/site/software-0.1.tar.gz]`
     118
     119The development version of Trac supports a new `htdocs:` TracLinks
     120syntax for the above. With this, the example link above can be written simply
     121`htdocs:software-0.1.tar.gz`.
     122
    102123----
    103124See also: TracInstall, TracCgi, TracModPython, TracGuide