Skip to content
Snippets Groups Projects
  1. Aug 05, 2022
  2. Jul 29, 2022
    • Hécate Moonlight's avatar
      Merge pull request #1516 from duog/9-4-backport-fix-hyperlinks · 7484cf88
      Hécate Moonlight authored
      Backport 9-4: Fix hyperlinks to external items and modules (#1482)
      7484cf88
    • Jade Lovelace's avatar
      Fix hyperlinks to external items and modules (#1482) · 2036454b
      Jade Lovelace authored and Douglas Wilson's avatar Douglas Wilson committed
      Fixes #1481.
      
      There were two bugs in this:
      * We were assuming that we were always getting a relative path to the
        module in question, while Nix gives us file:// URLs sometimes. This
        change checks for those and stops prepending `..` to them.
      * We were not linking to the file under the module. This seems
        to have been a regression introduced by #977. That is, the URLs were
        going to something like
        file:///nix/store/3bwbsy0llxxn1pixx3ll02alln56ivxy-ghc-9.0.2-doc/share/doc/ghc/html/libraries/base-4.15.1.0/src
        which does not have the appropriate HTML file or fragment for the item
        in question at the end.
      
      There is a remaining instance of the latter bug, but not in the
      hyperlinker: the source links to items reexported from other modules are
      also not including the correct file name. e.g. the reexport of Entity in
      esqueleto, from persistent.
      
      NOTE: This needs to get tested with relative-path located modules. It seems
      correct for Nix based on my testing.
      
      Testing strategy:
      
      ```
      nix-shell '<nixpkgs>' --pure -A haskell.packages.ghc922.aeson
      mkdir /tmp/aesonbuild && cd /tmp/aesonbuild
      export out=/tmp/aesonbuild/out
      genericBuild
      
      ln -sf $HOME/co/haddock/haddock-api/resources .
      ./Setup haddock --with-haddock=$HOME/path/to/haddock/exec --hyperlink-source
      ```
      
      (cherry picked from commit ab53ccf0)
      2036454b
  3. Jul 24, 2022
  4. Jul 19, 2022
  5. Jul 16, 2022
  6. Jun 21, 2022
  7. Jun 13, 2022
  8. Jun 12, 2022
  9. Jun 07, 2022
    • Marcin Szamotulski's avatar
      Render module tree per package in the content page (#1492) · c5a83df9
      Marcin Szamotulski authored
      * Render module tree per package in the content page
      
      When rendering content page for multiple packages it is useful to split
      the module tree per package.  Package names in this patch are inferred
      from haddock's interface file names.
      
      * Write PackageInfo into interface file
      
      To keep interface file format backward compatible, instead of using
      `Binary` instance for `InterfaceFile` we introduce functions to
      serialise and deserialise, which depends on the interface file version.
      c5a83df9
  10. Jun 06, 2022
  11. May 26, 2022
  12. May 25, 2022
  13. May 24, 2022
  14. May 21, 2022
  15. May 20, 2022
  16. May 08, 2022
  17. May 07, 2022
    • Jade Lovelace's avatar
      Fix hyperlinks to external items and modules (#1482) · ab53ccf0
      Jade Lovelace authored
      Fixes #1481.
      
      There were two bugs in this:
      * We were assuming that we were always getting a relative path to the
        module in question, while Nix gives us file:// URLs sometimes. This
        change checks for those and stops prepending `..` to them.
      * We were not linking to the file under the module. This seems
        to have been a regression introduced by #977. That is, the URLs were
        going to something like
        file:///nix/store/3bwbsy0llxxn1pixx3ll02alln56ivxy-ghc-9.0.2-doc/share/doc/ghc/html/libraries/base-4.15.1.0/src
        which does not have the appropriate HTML file or fragment for the item
        in question at the end.
      
      There is a remaining instance of the latter bug, but not in the
      hyperlinker: the source links to items reexported from other modules are
      also not including the correct file name. e.g. the reexport of Entity in
      esqueleto, from persistent.
      
      NOTE: This needs to get tested with relative-path located modules. It seems
      correct for Nix based on my testing.
      
      Testing strategy:
      
      ```
      nix-shell '<nixpkgs>' --pure -A haskell.packages.ghc922.aeson
      mkdir /tmp/aesonbuild && cd /tmp/aesonbuild
      export out=/tmp/aesonbuild/out
      genericBuild
      
      ln -sf $HOME/co/haddock/haddock-api/resources .
      ./Setup haddock --with-haddock=$HOME/path/to/haddock/exec --hyperlink-source
      ```
      ab53ccf0
  18. May 06, 2022
  19. May 03, 2022
  20. May 02, 2022
  21. Apr 30, 2022
  22. Apr 29, 2022
Loading