Changes between Version 2 and Version 3 of CookBook/TracLayoutRecipe
- Timestamp:
- Aug 16, 2014, 6:49:45 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook/TracLayoutRecipe
v2 v3 9 9 10 10 There are two ways to specify a `site.html` template for an environment: 11 1. Set the `templates_dir` in the `[inherit]` section of each `trac.ini` to the same directory (e.g. `/path/to/common/templates`), and save the `site.html` file in that directory.11 1. Set the `templates_dir` in the `[inherit]` section of each `trac.ini` to a shared directory (e.g. `/path/to/common/templates`), and save the `site.html` file in that directory. The `templates_dir` may also be specified in a [TracIni#GlobalConfiguration global configuration] that is included in each environment's configuration through the `file` option in the `[inherit]` section of trac.ini. 12 12 1. Copy the `site.html` file to the `templates` directory of all environments (or better yet, create symlink in all directories to a single common location). 13 13 … … 22 22 23 23 == Adjust the Site Style Sheet #SiteCss 24 A reference `projects.css` style sheet is included in the attached [attachment:TracLayoutRecipe.zip zip archive] (under the `css` directory), with the styles of the edgewall.org site.24 A reference `projects.css` stylesheet is included in the attached [attachment:TracLayoutRecipe.zip zip archive] (under the `css` directory), with the styles of the edgewall.org site. As with the site template, the stylesheet must also be accessible by each project environment. It may be placed in the directory specified by the `htdocs_dir` option in the `[inherit]` section of trac.ini, or in the project environment's `htdocs` directory. 25 25 26 26 You may modify and adjust the style sheet to meet your artistic taste. … … 28 28 One important thing to notice with respect to the `projects.css` file is that it refers to various images (used for backgrounds, gradients, etc.). 29 29 30 All images needed may be found in the `gfx` directory of the attached [attachment:TracLayoutRecipe.zip zip archive],30 The images are found in the `gfx` directory of the attached [attachment:TracLayoutRecipe.zip zip archive], 31 31 but the `projects.css` file assumes that the images are available under the `../gfx` directory, where `..` refers to one level up relative to the directory in which the `projects.css` is located. 32 32