-
Notifications
You must be signed in to change notification settings - Fork 103
update docs #803
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
update docs #803
Conversation
Signed-off-by: lubegasimon <lubegasimon73@gmail.com>
Signed-off-by: lubegasimon <lubegasimon73@gmail.com>
| This takes the `odoc` files produced during the compilation step and performs the final steps of expansion and resolution. It is during this phase that all the references in the documentation comments are resolved. In order for these to be resolved, everything that is referenced must have been compiled already, and their `odoc` files must be on the | ||
| include path as specified by the `-I` arguments to `odoc link`. In this example, we achieve that by compiling all modules and `.mld` files before linking anything. The output of the | ||
| link step is an `odocl` file, which is in the same path as the original `odoc` file by default. | ||
| link step is an `odocl` file, which is in `_build/default/_doc/_odocls` by default when invoked by `dune`. |
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.
I think the previous sentence was correct. It's talking about where the .odocl files will be placed by the code in the Mdx blocks below. Nothing to do with Dune.
It says that it'll put the .odocl files in the same place as their corresponding .odoc files.
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.
… placed by the code in the Mdx blocks below
I am not sure of what you’re relating too. If I remember quite well, the former sentence was inspired by the Odoc rules we were adding to Dune. In this ocaml/dune#3927 that was closed in favour of ocaml/dune#5045, we declared that .odocl files are to be added in the same path as the original .odoc file by default, whereas in the former, the path now is .odocls folder, and to clarify that to the reader, I added "when invoked by dune”.
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.
This is a .md file with Mdx blocks that execute a simple driver. The text talks about that simple driver and not about Dune and not about how users would use Odoc.
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.
The ‘Linking’ section seems to talk about a general linking concept, I agree no where does it mention about Dune though.
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.
I agree with @Julow, this is specific to dune, so I don't think we need this change.
No description provided.