Fix haddock source links and hyperlinked source
There were a few issues with the hackage links: 1. We were using the package id rather than the package name for the package links. This is fixed by now allowing the template to mention %pkg% or %pkgid% and substituing both appropiatly. 2. The `--haddock-base-url` flag is renamed to `--haddock-for-hackage` as the new base link works on a local or remote hackage server. 3. The "src" path including too much stuff, so cross-package source links were broken as the template was getting double expanded. Fixes #24086
Showing
- .gitlab/generate-ci/gen_ci.hs 1 addition, 1 deletion.gitlab/generate-ci/gen_ci.hs
- .gitlab/jobs.yaml 2 additions, 2 deletions.gitlab/jobs.yaml
- hadrian/README.md 3 additions, 3 deletionshadrian/README.md
- hadrian/src/CommandLine.hs 7 additions, 8 deletionshadrian/src/CommandLine.hs
- hadrian/src/Settings/Builders/Haddock.hs 14 additions, 7 deletionshadrian/src/Settings/Builders/Haddock.hs
Loading
Please register or sign in to comment