Remove hard-coded googleapis font URL
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)
Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs

index 278bdadf0fe69a69c6ce34ddb6f231c0b6eb1bdc..55955bb362cff96250ad6867213d8b637a9d3a69 100644 (file)
@@ -152,7 +152,7 @@ headHtml docTitle themes mathjax_url base_url =
                 , thetype "text/css"
                 , href (withBaseURL base_url quickJumpCssFile) ]
              << noHtml
-    , thelink ! [ rel "stylesheet", thetype "text/css", href fontUrl] << noHtml
+    -- , thelink ! [ rel "stylesheet", thetype "text/css", href fontUrl] << noHtml
     , script ! [ src (withBaseURL base_url haddockJsFile)
                , emptyAttr "async"
                , thetype "text/javascript" ]
@@ -161,7 +161,7 @@ headHtml docTitle themes mathjax_url base_url =
     , script ! [src mjUrl, thetype "text/javascript"] << noHtml
     ]
   where
-    fontUrl = "https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700"
+    -- fontUrl = "https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700"
     mjUrl = fromMaybe "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" mathjax_url
     mjConf = unwords [ "MathJax.Hub.Config({"
                      ,   "tex2jax: {"