Populate module documentation in local instance of `hackage-server`

Hello, I’m working on a local instance of hackage-server. I have mirrored a small number of Hackage packages, following these instructions: GitHub - haskell/hackage-server: Hackage-Server: A Haskell Package Repository

Here are those packages:

The modules have no hyperlinks; how can this documentation be populated?

I have not done this: GitHub - haskell/hackage-server: Hackage-Server: A Haskell Package Repository

Another possibility is this error thrown by hackage-mirror:

$ hackage-mirror servers.cfg zlib
...
mirroring zlib-0.6.1.1
mirroring zlib-0.6.1.1
mirroring zlib-0.6.1.1
mirroring zlib-0.6.1.2
mirroring zlib-0.6.2
mirroring zlib-0.6.2.1
mirroring zlib-0.6.2.3
/bin/sh: 1: shell: not found
hackage-mirror: callCommand: shell command to execute (exit 127): failed

Perhaps the mirroring is incomplete.

Thanks

2 Likes

To generate module documentation you either configure and run the docbuilder (hackage-server/BuildClient.hs at master · haskell/hackage-server · GitHub) or you simply manually build and upload the haddocks. The hackage server executable itself does not build and generate documentation.

2 Likes

Very good, it works, thanks

$ hackage-build init http://localhost:8080

$ hackage-build build zlib -v
1 Like