haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 691 forks source link

Haddock documentation not linked into user index #1316

Open Magicloud opened 11 years ago

Magicloud commented 11 years ago

Hi, I am using following script to wrap cabal install to avoid installing to public space. The building seemed fine. And the documents were installed into ".cabal/share/doc/x86_64-linux-ghc-7.6.3/". But they are not linked into ".cabal/share/doc/index.html". What else should I set? ghc-pkg init dist/db && cabal install --prefix=pwd/dist --datadir=$HOME/.cabal/share --package-db=pwd/dist/db

23Skidoo commented 11 years ago

@Magicloud Try running cabal install with -v2 and look for the haddock --gen-index command.

Magicloud commented 11 years ago

Sadly, there was no such command. haddock was run a bunch of times, but no '--gen-index' was used.

Here is the log: https://raw.github.com/Magicloud/misc/master/log

23Skidoo commented 11 years ago

The default index file is $datadir/doc/index.html. Try tweaking the --doc-index-file option.

Magicloud commented 11 years ago

But the position ($datadir/doc/index.html) is correct for me. Also the position where libraries' documents installed.

Magicloud commented 11 years ago

Could anyone help?

23Skidoo commented 11 years ago

I'm a bit busy right now, unfortunately.

Magicloud commented 11 years ago

Oh, sorry, I was not pushing. Just wondering it staled for a long time.