Inspect a frege documentation directory and make files that enable framed HTML view.
regular expression to split path names on File.separator
regular expression to detect "*.html" files
drop ".html" from the end of a name
tell if this is the name of a meta file
walk a directory and get all HTML files
We will make the following files:
fregedoc.html defines 3 frames: left upper, left lower and right.
prefix-frame.html contains a list of the module prefixes, which are shown in the left upper frame. Each entry causes the left lower frame to display the modules with that prefix.
For each module prefix a file that lists the actual modules. This one is displayed in the left lower frame, and clicking on one of the names causes the module documentation to appear in the right frame. For example, frame-frege.prelude.html would contain PreludeBase, PreludeMonad and so on.
There will be a pseudo module prefix "All Modules" and a corresponding frame-All-Modules.html that contains links to all the modules.
Print the top file with the frameset
compute the path of a file in a certain directory
make the prefix-frame.html file
wrap in html tags, i.e. <xx>foo</xx>
make link from a relative path and a HTML file name
make link to frame
display name of a module prefix
file name of a module prefix