Skip to content

GHC doc build broken by sphinx 7

Summary

Building the GHC documentation fails with

Theme error:
An error happened in rendering the page 9.0.1-notes.
Reason: UndefinedError("'style' is undefined")

After upgrading to sphinx 7.2.6.

Steps to reproduce

Build GHC with sphinx 7.2.6, e.g. by building any ghc* (non Binary ofc) attribute under haskell.compiler on nixpkgs 6515b811b82a83f551988dd25ec6ef587fa93ef0.

Example logs:

Expected behavior

Build succeeds.

Environment

  • GHC version used: 9.0.2, 9.4.7

Optional:

  • Operating System: NixOS
  • System Architecture: x86_64-linux, aarch64-darwin
Edited by sterni
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information