-
Notifications
You must be signed in to change notification settings - Fork 86
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
Odoc 3: CLI for -L
and -P
#1132
Conversation
val create : | ||
important_digests:bool -> | ||
directories:Fs.Directory.t list -> | ||
open_modules:string list -> | ||
roots:roots option -> |
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 docs should be updated to explain the roots options here
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.
Rereading this part, I noticed that some of my terminology might be wrong: for the -P
it is the package name that is relevant, but for the -L
it is the library name.
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 there is no test for -L, is there a reason ?
And store the result in a "Named root" table. Many things are not implemented in this commit: knowing which is the package of the current compilation unit, tests, ... Signed-off-by: Paul-Elliot <peada@free.fr>
This is just a refactor of the reference.ml file, for readability. Signed-off-by: Paul-Elliot <peada@free.fr>
See https://ocaml.org/manual/5.2/core.html#ss:predef-exn : > Exception raised by library functions to signal that the given arguments do > not make sense. The string gives some information to the programmer. As a > general rule, this exception should not be caught, it denotes a programming > error and the code should be modified not to trigger it. Signed-off-by: Paul-Elliot <peada@free.fr>
Some function took option input without any need for it! Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
Signed-off-by: Paul-Elliot <peada@free.fr>
This includes:
-P
and-L
CLI options,-P
,-L
is passed)The next stage is to implement new reference syntax, and integrate those "find by name" and "find by path" functions into the resolution of references.