[Haddock] [haddock] #177: Remember collapsed sections in index.html / haddock-util.js

haddock haddock at projects.haskell.org
Mon Jul 11 02:10:32 BST 2011

#177: Remember collapsed sections in index.html / haddock-util.js
Reporter:  liyang       |       Owner:        
    Type:  enhancement  |      Status:  new   
Priority:  minor        |   Milestone:  2.10.0
 Version:  2.9.2        |    Keywords:        
 This is an itch that's been scratching me for a while now. I open up the
 index.html for base and other packages in the Firefox sidebar for easy
 access, but every time I switch between packages, it forgets which
 sections I've collapsed. This is particularly problematic with base, which
 has quite a few large hierarchies that I don't really use, e.g.

 This patch to haddock-util.js remembers which sections have been collapsed
 in a cookie, and restores them on the next load. It works correctly even
 when the docs for multiple packages are hosted at the same domain.
 (Doesn't set path=/ for the cookie.) Every section is expanded by default
 when viewed for the first time, in line with existing behaviour.


Ticket URL: <http://trac.haskell.org/haddock/ticket/177>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool

More information about the Haddock mailing list