Ticket #115 (new enhancement)
allow putting support files in a relative subdir
|Reported by:||duncan||Owned by:|
We're adding support in Cabal to maintain an index of all docs installed on the system. The only problem is that we are cluttering the directory with lots of other haddock support files. http://hackage.haskell.org/trac/hackage/ticket/516#comment:1
In the cabal config file we say
but of course when we call haddock to make the index it generates a bunch of other files in the same directory. This is rather annoying in this use case. Yes we could have the default be something like:
but since $datadir/doc/ really is the top of the doc tree then it's nice to have the index live there.
What would be ideal is if we could put the index.html file at the top but direct that the support files (css, gif, js) go into a subdirectory relative to the target.
Specifically I'm suggesting something like:
which would then dump the support files into the $odir/haddock-util. The references in the generated html would obviously have to use that relative path to the support files.
This along with being able to suppress the frames output (#114) would make the Cabal haddock index more or less ideal.