Changeset 3044
- Timestamp:
- 11/01/05 12:56:03 (8 years ago)
- File:
-
- 1 edited
-
trac/trunk/wiki-macros/TracNav.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trac/trunk/wiki-macros/TracNav.py
r3037 r3044 15 15 == Installation == 16 16 17 To install TracNav, you must place the file {{{TracNav.py}}} somewhere 18 in your {{{wiki-macros/}}} directory of your Trac 19 installation. Additionally, you have to append the following lines to 20 the file {{{htdocs/css/wiki.css}}} that can also be found in your Trac 21 directoryhierarchy. 22 17 To install TracNav, place the file `TracNav.py` in the `wiki-macros` 18 subdirectory and the accompanying `tracnav.css` file in the 19 `templates` subdirectory of your Trac project. Add this line 23 20 {{{ 24 /* Styles for TracNav */ 25 .wiki-toc.trac-nav h4 { margin: 0; padding: 0; } 26 .wiki-toc.trac-nav ul > li:first-child { margin-right: 4ex; } 27 .wiki-toc.trac-nav .edit { 28 position: absolute; 29 top: 2px; 30 right: 3px; 31 margin-left: 3px; 32 border: 0; 33 } 34 .wiki-toc.trac-nav .edit a { color:blue; border-color:blue; } 21 @import url(<?cs var:chrome.href ?>/site/tracnav.css); 35 22 }}} 36 37 The lines above define the styles for displaying the navigation 38 bar. These styles build upon the styles for !TracGuideToc that come 39 with your Trac distribution. If you just install the macro but miss to 40 extend the style file, TracNav will work but look somewhat strange. 23 to the `templates/site_css.cs` file of your Trac project. 24 25 The `tracnav.css` file defines the styles for displaying the 26 navigation bar. These styles build upon the styles for !TracGuideToc 27 that come with your Trac distribution. If you just install the macro 28 but miss to install the style file, TracNav will work but look 29 somewhat strange. 41 30 42 31 43 32 == Usage == 44 33 45 To use TracNav, you have to create an index page for your site and46 call the TracNav macro on each page, where the navigation bar should 47 bedisplayed. The index page is a regular wiki page. The page with the34 To use TracNav, create an index page for your site and call the 35 TracNav macro on each page, where the navigation bar should be 36 displayed. The index page is a regular wiki page. The page with the 48 37 table of contents must include an unordered list of links that should 49 38 be displayed in the navigation bar.
Note: See TracChangeset
for help on using the changeset viewer.
