-
Notifications
You must be signed in to change notification settings - Fork 237
Fix #783 Don't show button if --quickjump not present #1108
Conversation
The CI build fails because of the existing commit e6ca100. Without that commit, it builds under Windows 10 using |
I have thought of a different approach to this, which I think is better, and will provide a revised pull request. The creation of the dummy |
ffa435e
to
1f83c35
Compare
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.
@mpilgrem Hi, and thank you very much for this PR! I left you a couple of comments and it should be good.
That being said, would you be able to include a screenshot of the updated interface when --quickjump
isn't passed as an argument?
@Kleidukos, I have updated the PR to reflect your two comments and posted a screenshot. |
@mpilgrem Brilliant! We are currently in a merge phase to backport PRs to the ghc-9.0 branch, so while I won't be merging your PR as it is now (since it's targeting the now-defunct ghc-8.8 branch), it will be ported to the next main branch. Thanks again ✨ |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
@Mergifyio rebase |
❌ Base branch update has failedGit reported the following error:
err-code: 6287F |
@Kleidukos I saw your request for a rebase and the bot's failed attempt. I have rebased manually against the I experienced some initial difficulties with rebuilding the minified JS files in |
One more reason to reshape our frontend stack |
This PR breaks the quickjump feature on See https://gitlab.haskell.org/ghc/ghc/-/issues/21984 We will need to revert it for the 9.4.2 release. |
@mpickering, sorry! I only ever tested locally. Is there a recommended way to test that pull requests for |
I tested the changes by using a local hackage server (which is quite easy to setup, it's documented in the README). I also noticed that quick jump was not supported for candidates, so I added that (haskell/hackage-server#1122) so perhaps another way to test in future is upload a candidate for one of your packages to check everything is in order. |
Fix haskell/haddock#783 Don't show button if --quickjump not present
In the TypeScript
init.ts
, makesquickJump.init()
(which creates the button) conditional on the presence of meta taghasQuickJump
with content"true"
.In the Haskell, threads the
withQuickJump
flag result through toheadHtml
to create the meta tag, accordingly.