About
GToc is a small Perl script to generate a TOC for Wiki pages hosted by Google Code. GToc does not change the .wiki file but reads the file then prints a TOC based on the = Headings = in a tree like structure. For more information on why this script was needed in the first place see this page: http://code.google.com/p/support/issues/detail?id=116
Os: Tested on Linux but should work on Windows
Language: Perl
Help:
Run like any other perl script and provide the full path to the Wiki page that you want to generate a TOC for as agument.
Remember the script does not modify the file but only prints the TOC so you can use:
perl ./gtoc.pl /path/to/mywik.wiki > mywikitoc.txt
and copy the TOC over to your Wiki from mywikitoc.txt
Since version 0.3
If you provide a full path to a directory the script will generate a TOC for every .wiki file in the directory. So now you can say:
perl ./gtoc.pl /path/to/mywikiDirectory > mywikitoc.txt
To get a TOC for each .wiki file in mywikiDirectory
Download:
https://sharesource.org/svn/defcon3/gtoc/gtoc.pl
Any patches or changes welcome