Skip to content

Conversation

@lubegasimon
Copy link
Collaborator

No description provided.

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`.
Copy link
Collaborator

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.

Copy link
Collaborator Author

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”.

Copy link
Collaborator

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.

Copy link
Collaborator Author

@lubegasimon lubegasimon Jan 18, 2022

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.

Copy link
Member

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.

@jonludlam jonludlam closed this Jan 26, 2022
@lubegasimon lubegasimon deleted the update-docs branch February 18, 2022 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants