-
Notifications
You must be signed in to change notification settings - Fork 413
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
Add odoc dev tool #10914
Add odoc dev tool #10914
Conversation
Doesn't odoc have the same limitation as lsp? I.e it needs to be compiled with the same version of OCaml as the project. |
1b86797
to
ea33c5b
Compare
You're totally right. I didn't realize this but that explains some of the weird errors I've run into with odoc recently: E.g.
I'll borrow some of the code from my ocamllsp dev-tool pr to make sure that the same compiler is used to build odoc as is used to build the project. |
c43d102
to
ab52547
Compare
I updated this so that it always uses the same version of the compiler to build odoc as it does to build the project and added some tests that it relocks the odoc dev tool to keep the compiler dependency in sync with the project. |
Remove references to ocamlformat from the fetch rules and create fetch rules for all dev tools. Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
6b27ae4
to
5cfb059
Compare
The command `dune ocaml doc` will now lock, build, and run odoc as a dev tool if the dev tools feature is enabled. Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
5cfb059
to
67dc7d3
Compare
The command
dune ocaml doc
will now lock, build, and run odoc as a dev tool if the dev tools feature is enabled.