-
Notifications
You must be signed in to change notification settings - Fork 239
Add compile step that bundles and compresses JS files #684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @timjb! Exactly what I had in mind. Looking forward to this patch!
.ghc.environment.x86_64-darwin-8.2.1
Outdated
@@ -0,0 +1,60 @@ | |||
-- This is a GHC environment file written by cabal. This means you can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file from the diff. We should probably put .ghc.environment.* to .gitignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
haddock-api/src/Haddock/Utils.hs
Outdated
@@ -326,16 +326,10 @@ makeAnchorId (f:r) = escape isAlpha f ++ concatMap (escape isLegal) r | |||
|
|||
|
|||
jsFile :: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rename jsFile to something more meaningful? Now that we have several JavaScript includes this derserves a less generic name I think. How about haddockJsFile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Also, manage dependencies on third-party JS libraries using NPM.
This patch changes the QuickJump interface. We must not forget to change hackage accordingly: It needs to know how to load the new Currently it decides on the |
I don't see the need for a separate new version number. I believe that we can keep the QuickJump interface stable going forward. For instance, this pull request doesn't change the |
Looks good to me. Just one more thing: Please separate the QuickJump css from haddock css. |
I will prepare the corresponding commit to hackage. |
Done. The layout bug should be gone when |
Great! Looks good. Will merge as soon as travis is green. |
Dang. I think you forgot to update the tests. |
Yep. I've sent an updated patch. |
Also, manage dependencies on third-party JS libraries using NPM. This addresses the second point in #683.
Todo: