-
Notifications
You must be signed in to change notification settings - Fork 198
manual documentation uploads are not documented #56
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
Comments
This does not fix issue #56 however it does help because it will give people decent feedback when the upload the doc tarball, rather than when they try to read it later!
Some info, since I was working on a related bit of the code. Just need to collect it and turn it into a user-oriented page.
One can find this from the build client code. It invokes Though perhaps better to explain it as a
Tarball content needs to be like:
... etc
Like so:
|
Hi, when I try to do this using your command @dcoutts I get an error message:
I'm creating the tarball with:
|
Most tar programs read/write in the portable ustar format. "--format=ustar" should do the trick here. |
Thanks @gracenotes - that seems to work - at least I do not get any error message. I don't see my docs showing up either though. |
Okay, I took a look at /package/higher-leveldb-0.1.0.0/docs.tar. In the tarball, the higher-leveldb-0.1.0.0-docs/src/ directory is meant for Haddock coloured source files; the top-level directory (right under higher-leveldb-0.1.0.0-docs/) is meant for the documentation itself. You'll also need ocean.css etc. in this top-level directory; some of the generation flags can be seen here: https://github.com/haskell/hackage-server/blob/2657af5/BuildClient.hs#L513 hackage-build itself should probably be easier to use for one-off documentation uploads. |
Great, that did it thanks! |
bump :) |
I wrote a shell script to generate and upload docs for a package: https://gist.github.com/stbuehler/7068764 |
this information needs to be more discoverable and easy to use until the broken docs problem is resolved |
I can confirm that stbuehler's script works. I was a bit suspicious at first because I didn't see any |
Note that we're now running a new doc builder client which should resolve some of these issues. For the things not resolved, it does at least generate build logs (see /package/foo-1.0/reports/$n/log) so we can see what's wrong. Mostly I expect this will now be missing C libs which we'll need to add to the builder machine. |
I just tried the process mentioned here. I managed to upload documentation, but it is actually not unpacked correctly. The package is hydra-hs, the doc link (correctly) goes here, but the actual documentation is in a subdirectory here. |
@mruegenberg I think you didn't quite follow those directions (looks like you grabbed the docs from the installed location rather than from the inplace |
It worked now. I ran the script instead of following the steps manually. I also had to replace the tar command by |
@dcoutts , what is the exact flag to get the cross-package linking? |
@Fuuzetsu For the definitive answer, see the code for the doc builder: https://github.com/haskell/hackage-server/blob/master/BuildClient.hs#L518 |
I did a release of The weird thing is: I'm still seeing the old version of the module documentation, but clicking on the Can anyone help me understand what's going on? |
@liyang I'd just use http://hackage.haskell.org/package/neil to upload the docs. Documented here: http://neilmitchell.blogspot.com/2014/10/fixing-haddock-docs-on-hackage.html |
@bitemyapp Didn't know about @ndmitchell's eponymous tool… I was using my own Bash script to do the same. Have just tried I'm wondering if somewhere the old version is being cached somehow? |
@liyang if it was getting cached, I think that would be from the CDN, but it's extremely likely I'm wrong about that. The actual hackage page gets rendered directly from current docs tarball IIRC. |
Is it still necessary to manually build/upload documentation? I've uploaded a new package bond and it appears that the build never ran. Is this a problem on the hackage side or something I'm doing wrong (it's my first package so quite likely)? |
@sapek Have you already uploaded documentation for that package? The builder won't try to build a package if it already has docs. |
Yes, today in the afternoon I gave up and uploaded docs manually using |
There was some Haskell infrastructure related migrations a week or so ago, On Thursday, December 10, 2015, Adam Sapek notifications@github.com wrote:
|
#553 should resolve this.. |
since that's merged, closing this out. |
I understand that maintainers can upload docs if the builder can't build them, via
http://beta.hackage.haskell.org/api#documentation-core
but several points aren't documented:
The text was updated successfully, but these errors were encountered: