-
Notifications
You must be signed in to change notification settings - Fork 430
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
Incorrect parsing of ocamldoc, module doc gets attached to first declaration #2419
Comments
Looks like adding |
I've opened an issue in odoc project for this as well, as I'm not sure about the root cause of doc being ingnored. If I try to generate doc from .mli which was printed from .rei with aforementioned workadound, module level doc gets ignored by odoc for .mli file as well. Looks like that |
Glancing at output of |
In case it's important, I'm using OCaml 4.06.0. |
For others running into this issue: workaround to get docs done: [@ocaml.text "
{1 Overview}
This module implements <....>
<....>
"];
/** This is some type t */
type t;
/* rest of your module <.....> */ |
Just to add to the findings...
|
I believe that has nothing to do with Reason. Btw, you could use |
Isn't the issue that you need a semicolon after the first comment? |
I'm told there's two issues. One is the semicolon (that's easy to teach people) and the other is that we need to correctly translate free floating doc comments that have semicolons. Should be an easy fix. |
This try reason link illustrates the issue.
I tried to document my module in .rei file and was unable to make odoc generate html which included module level documentation. I've refmt-printed my .rei to .mli, and found that documentation got attached to first declaration in my module. I've manually added doc comments to .mli, generated documentation and it included module level doc as expected.
dune version: 1.10.0
esy version: 0.5.6
refmt version: Reason 3.3.7 @ 43efc14
The text was updated successfully, but these errors were encountered: