Remstats Home


  About remstats
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
  Configuration Tools
  Servers
  Collectors
  Updater
  Monitors
  run-remstats
  CGIs
  do-traceroutes
  Miscellany
      availability-report
      cleanup
      convert-config-links
      genindex
      genmenu
      htmlpod
      podhtml
      podlatex
      podpdf
      rrd-report
  Thank-you
  Index


  Live Data

  Remstats was written by
  Thomas Erskine at the
  CRC in Canada and now
  at SourceWorks.

[Top] [Prev] [Next]

genmenu - generate a collapsing menu

Usage:

genmenu version 1.5
usage: ../genmenu [options] pagename menufile
where options are:
	-d	enable debugging output
	-h	show this help

Description:

genmenu reads the menu description file and generates a vertical menu-bar, collapsed according to which pagename you gave it. This requires all the documentation to be rebuilt whenever you change the menu definition, but avoids having to use JavaScript.

I couldn't find a simple stand-alone program that did this, so here you are. It doesn't require remstats.

The Menu Definition File

The file has a simple format. Blank lines and lines beginning with '#' are ignored. The other lines look like:

	[tabs]pagename [page title]

The number of tabs shows the level of sub-menus, making the definition file easy to grasp at a glance. Note that the tabs are actual tab characters. The page title (optional) is what shows up in the menu, while the pagename is used to make the URL to link to. If the page name is xyz, then a link to xyz.html is produced. If the page title is missing, then the pagename is used instead.


Last updated Tue Apr 16 19:09:20 PDT 2002 by
<thomas.erskine@sourceworks.com>.
[SourceWorks] [Top] [RRDtool]