summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-05-09 14:05:00 +0100
committerBen Gamari <ben@smart-cactus.org>2022-05-18 11:16:59 -0400
commit9ddda31cd3a208411c642d8c081207718782f80c (patch)
tree86f2fb3b5852236fe215621936849b257d523a23
parentab4d7420589ad06d2eb084a787b9175d8c0e5c51 (diff)
downloadhaskell-9ddda31cd3a208411c642d8c081207718782f80c.tar.gz
docs: Fix path to GHC API docs in index.html
In the make bindists we generate documentation in docs/ghc-<VER> but the hadrian bindists generate docs/ghc/ so the path to the GHC API docs was wrong in the index.html file. Rather than make the hadrian and make bindists the same it was easier to assume that if you're using the mkDocs script that you're using hadrian bindists. Fixes #21509 (cherry picked from commit 68d1ea5fe083e0b3ed114bbf02a642c7481ab5d7)
-rw-r--r--.gitignore1
-rw-r--r--configure.ac1
-rw-r--r--docs/index.html (renamed from docs/index.html.in)2
3 files changed, 1 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index c4b8d5e7aa..3a92338b2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -112,7 +112,6 @@ _darcs/
/distrib/configure.ac
/distrib/ghc.iss
/docs/man
-/docs/index.html
/docs/users_guide/.log
/docs/users_guide/users_guide
/docs/users_guide/ghc.1
diff --git a/configure.ac b/configure.ac
index 119a97e04f..72ee3fa558 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1248,7 +1248,6 @@ AC_CONFIG_FILES(
libraries/libiserv/libiserv.cabal
libraries/template-haskell/template-haskell.cabal
docs/users_guide/ghc_config.py
- docs/index.html
libraries/prologue.txt
distrib/configure.ac
])
diff --git a/docs/index.html.in b/docs/index.html
index d849e7e5e6..a4b65dcf7c 100644
--- a/docs/index.html.in
+++ b/docs/index.html
@@ -39,7 +39,7 @@
<LI>
<P>
- <B><A HREF="libraries/ghc-@ProjectVersionMunged@/index.html">GHC API</A></B>
+ <B><A HREF="libraries/ghc/index.html">GHC API</A></B>
</P>
<P>
Documentation for the GHC API.