patch applied (ghc-6.10/haddock2): Enable framed view of the HTML documentation.
Ian Lynagh <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.other |
|---|---|
| Message-ID | <[email protected]> |
Fri Oct 24 10:04:08 PDT 2008 Thomas Schilling <[email protected]> * Enable framed view of the HTML documentation. This patch introduces: - A page that displays the documentation in a framed view. The left side will show a full module index. Clicking a module name will show it in the right frame. If Javascript is enabled, the left side is split again to show the modules at the top and a very short synopsis for the module currently displayed on the right. - Code to generate the mini-synopsis for each module and the mini module index ("index-frames.html"). - CSS rules for the mini-synopsis. - A very small amount of javascript to update the mini-synopsis (but only if inside a frame.) Some perhaps controversial things: - Sharing code was very difficult, so there is a small amount of code duplication. - The amount of generated pages has been doubled, since every module now also gets a mini-synopsis. The overhead should not be too much, but I haven't checked. Alternatively, the mini-synopsis could also be generated using Javascript if we properly annotate the actual synopsis. M ./haddock.cabal +1 A ./html/frames.html M ./html/haddock-util.js +6 M ./html/haddock.css +30 M ./src/Haddock/Backends/Html.hs -5 +109 M ./src/Haddock/Utils.hs -3 +18 View patch online: http://darcs.haskell.org/ghc-6.10/haddock2/_darcs/patches/20081024170408-7c5c6-8909cf3eb783c1e7c063d3dc1f2791fb2d25558e.gz