Version 1 (modified by hauma, 15 years ago) (diff)

Initial version.

TracNav installation

To install TracNav, you must place the file somewhere in your wiki-macros/ directory of your Trac installation. Additionally, you have to append the following lines to the file htdocs/css/wiki.css that can also be found in your Trac directory hierarchy.

/* Styles for TracNav */
.wiki-toc.trac-nav li { margin: 0; padding: 0; }
.wiki-toc.trac-nav li li { margin: 0; padding: 0 1em; }
.wiki-toc.trac-nav .edit { border:0; position:absolute; top:0; right:5px; }
.wiki-toc.trac-nav .edit a { color:blue; border-color:blue; }

The lines above define the styles for displaying the navigation bar. These styles build upon the styles for TracGuideToc that come with your Trac distribution. If you just install the macro but miss to extend the style file, TracNav will work but look somewhat strange.