Changeset 2864


Ignore:
Timestamp:
03/01/05 10:36:01 (8 years ago)
Author:
hauma
Message:
  • Updated inline documentation of TracNav.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trac/trunk/wiki-macros/TracNav.py

    r2863 r2864  
    99topics. The design of TracNav mimics the design of the TracGuideToc 
    1010that was originally supplied with Trac. The drawback of TracGuideToc 
    11 is that is is not customizable without editing its source code and 
     11is that it is not customizable without editing its source code and 
    1212that it does not support hierarchical ordering. 
     13 
     14 
     15== Installation == 
     16 
     17To install TracNav, you must place the file {{{TracNav.py}}} somewhere 
     18in your {{{wiki-macros/}}} directory of your Trac 
     19installation. Additionally, you have to append the following lines to 
     20the file {{{htdocs/css/wiki.css}}} that can also be found in your Trac 
     21directoryhierarchy. 
     22 
     23{{{ 
     24/* Styles for TracNav */ 
     25.wiki-toc.trac-nav li { margin: 0; padding: 0; } 
     26.wiki-toc.trac-nav li li { margin: 0; padding: 0 1em; } 
     27.wiki-toc.trac-nav .edit { border:0; position:absolute; top:0; right:5px; } 
     28.wiki-toc.trac-nav .edit a { color:blue; border-color:blue; } 
     29}}} 
     30 
     31The lines above define the styles for displaying the navigation 
     32bar. These styles build upon the styles for !TracGuideToc that come 
     33with your Trac distribution. If you just install the macro but miss to 
     34extend the style file, TracNav will work but look somewhat strange. 
     35 
     36 
     37== Usage == 
     38 
     39To use TracNav, you have to create an index page for your site and 
     40call the TracNav macro on each page, where the navigation bar should 
     41be displayed. The index page is a regular wiki page. The page with the 
     42table of contents must include an unordered list of links that should 
     43be displayed in the navigation bar. 
     44 
     45To display the navigation bar on a page, you must call the TracNav 
     46macro on that page an pass the name of your table of contents as 
     47argument. 
     48 
     49 
     50== Additional information and a life example == 
     51 
     52Please visit: http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav 
    1353""" 
    1454 
Note: See TracChangeset for help on using the changeset viewer.