[Git][ghc/ghc][master] Fix ghc API link in docs/index.html

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Apr 17 00:14:52 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
f30e4984 by Teo Camarasu at 2024-04-16T20:12:03-04:00
Fix ghc API link in docs/index.html

This was missing part of the unit ID meaning it would 404.

Resolves #24674

- - - - -


2 changed files:

- docs/index.html.in
- hadrian/src/Rules/Generate.hs


Changes:

=====================================
docs/index.html.in
=====================================
@@ -39,7 +39,7 @@
 
       <LI>
         <P>
-          <B><A HREF="libraries/ghc- at LIBRARY_ghc_VERSION@/index.html">GHC API</A></B>
+          <B><A HREF="libraries/@LIBRARY_ghc_UNIT_ID@/index.html">GHC API</A></B>
         </P>
         <P>
           Documentation for the GHC API.


=====================================
hadrian/src/Rules/Generate.hs
=====================================
@@ -360,7 +360,7 @@ templateRules = do
     , interpolateSetting "ProjectPatchLevel1" ProjectPatchLevel1
     , interpolateSetting "ProjectPatchLevel2" ProjectPatchLevel2
     ]
-  templateRule "docs/index.html" $ packageVersions
+  templateRule "docs/index.html" $ packageUnitIds Stage1
   templateRule "docs/users_guide/ghc_config.py" $ mconcat
     [ projectVersion
     , packageUnitIds Stage1



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f30e4984fb048818051465698ef8e4e20dacb577

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f30e4984fb048818051465698ef8e4e20dacb577
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240416/0c5b1490/attachment-0001.html>


More information about the ghc-commits mailing list