[commit: ghc] ghc-8.2: Fix "Glasgow Haskell Compiler <release> Users Guide" (1d46afc)

git at git.haskell.org git at git.haskell.org
Tue Sep 26 17:37:49 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/1d46afc393410b7bafd6f956d57a16466857e7bb/ghc

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

commit 1d46afc393410b7bafd6f956d57a16466857e7bb
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Mon Apr 17 12:49:34 2017 -0400

    Fix "Glasgow Haskell Compiler <release> Users Guide"
    
    If you go to
    https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/index.html
    the window title has `<release>` in it.  I don't understand how it all
    works, but inspired by the line below which produces a correct string in
    the docs I just blindly changed it in the same way.  Cabal appears to
    have the same problem.
    
    Test Plan:
    it'd be nice if I could check the result
    on harbormaster, can I?
    
    Reviewers: thomie, bgamari, austin
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D3458


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

1d46afc393410b7bafd6f956d57a16466857e7bb
 docs/users_guide/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/conf.py b/docs/users_guide/conf.py
index cc7c0cc..3af6ac1 100644
--- a/docs/users_guide/conf.py
+++ b/docs/users_guide/conf.py
@@ -37,7 +37,7 @@ exclude_patterns = ['.build', "*.gen.rst"]
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
-html_title = "Glasgow Haskell Compiler <release> User's Guide"
+html_title = "Glasgow Haskell Compiler %s User's Guide" % release
 html_short_title = "GHC %s User's Guide" % release
 html_theme_path = ['.']
 html_theme = 'ghc-theme'



More information about the ghc-commits mailing list