mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-03 14:50:25 +01:00
Disable custom Haddock style by default #278
This commit is contained in:
parent
2701f186ca
commit
ab8d383cd5
@ -38,7 +38,7 @@ getHaddockR snapName rest
|
|||||||
case docType of
|
case docType of
|
||||||
DocHtml -> do
|
DocHtml -> do
|
||||||
mstyle <- lookupGetParam "style"
|
mstyle <- lookupGetParam "style"
|
||||||
return ("text/html; charset=utf-8", mstyle == Just "plain")
|
return ("text/html; charset=utf-8", mstyle /= Just "stackage")
|
||||||
DocJson ->
|
DocJson ->
|
||||||
return ("application/jsontml; charset=utf-8", True)
|
return ("application/jsontml; charset=utf-8", True)
|
||||||
req <- parseRequest $ unpack $ makeURL snapName rest
|
req <- parseRequest $ unpack $ makeURL snapName rest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user