-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new haddock multi-package support #7669
Comments
I have an early draft of in coot/haddocks branch. An early feedback is welcome Todo:
|
A design point that @coot raised
My feeling is that it should search only local packages. Why? The rubric I have in my head is that what I really want is something like the way Hackage displays Haddock. That separates things by package, you certainly don't get quickjump across all packages. Since we're bundling all the project packages together, we probably can't do per-package quickjump, but "local-project only" quickjump seems fine, and probably more or less what people expect. |
@michaelpj that's a good point and that's probably should be the default. Another use case is where one can publish package and its dependencies, and The same question about the html index. I think it should only contain names from the local package. |
This is also consistent with how html index is build. See haskell/cabal#7669 for rationale behind this decision.
@michaelpj I think this is better to solve this on the |
…1490) This is also consistent with how html index is build. See haskell/cabal#7669 for rationale behind this decision.
There's one issue though, if we link
|
There are two ways to build documentation of multiple packages that link things correctly:
In the first case one gets a In the second case one will get a Both can be supported by the Because these two modes will be the primary usage of the
The second one is something more expected (it's how A self contained version is quite useful when travelling, but also since it gives access to json index of all local packages it makes it easier to jump between different local packages, finding where something comes from (even without using hoogle). @Kleidukos, @michaelpj, @Mikolaj could you give your opinion? |
IMHO, at this early stage, the more options, the better. Let's publish both, but with a warning this is preliminary, may be broken, will change in a non-backward compatible ways and if you don't want it to vanish one day, please offer feedback in ticket NN. |
What do you mean by NN? |
Whichever cabal (or haddock?) ticket you decide to use for brainstorming the ultimate design of this feature or just for collecting feedback, e.g., #7669. |
I think this ticket is the best place for that. |
I wrote a short blog post about |
@coot very cool! IMO it's worth advertising on the relevant media: Haskell Cafe, Discord and Reddit. |
@ulysses4ever I posted it on reddit some time ago, and I just posed it on discord and I am about to write to Haskell Caffe. |
Very cool, thank you! |
…#1490) This is also consistent with how html index is build. See haskell/cabal#7669 for rationale behind this decision.
Haddock recently gained the ability to make nicer output for multiple packages. It would be nice if this was exposed to the user via
cabal haddock
, so thatcabal haddock
(maybe with a flag?) produced a combined set of documentation for all the packages in the project.(I couldn't find a ticket for this exact thing before, but there are some comments
The text was updated successfully, but these errors were encountered: