[commit: haddock] ghc-head, ghc-head1, master, wip/revert-ttg-2017-11-20, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13: Use relative URL when no docBaseUrl given (ae02a28)

git at git.haskell.org git at git.haskell.org
Mon Nov 20 21:10:46 UTC 2017


Repository : ssh://git@git.haskell.org/haddock

On branches: ghc-head,ghc-head1,master,wip/revert-ttg-2017-11-20,wip/ttg-2017-11-06,wip/ttg2-2017-11-10,wip/ttg3-2017-11-12,wip/ttg4-constraints-2017-11-13
Link       : http://git.haskell.org/haddock.git/commitdiff/ae02a2877adcd32d3f238ebafa526a881fbdea9e

>---------------------------------------------------------------

commit ae02a2877adcd32d3f238ebafa526a881fbdea9e
Author: Alexander Biehl <alexbiehl at gmail.com>
Date:   Fri Sep 1 09:20:34 2017 +0200

    Use relative URL when no docBaseUrl given


>---------------------------------------------------------------

ae02a2877adcd32d3f238ebafa526a881fbdea9e
 haddock-api/resources/html/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/haddock-api/resources/html/index.js b/haddock-api/resources/html/index.js
index fccd034..f213b9a 100644
--- a/haddock-api/resources/html/index.js
+++ b/haddock-api/resources/html/index.js
@@ -385,7 +385,7 @@ var NoResultsMsg = function(props) {
 
 return {
   init: function(docBaseUrl) {
-    baseUrl = docBaseUrl || "";
+    baseUrl = docBaseUrl || ".";
     preact.render(h(App), document.body);
   }
 }



More information about the ghc-commits mailing list