-
Notifications
You must be signed in to change notification settings - Fork 94
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
Span labels in function arguments (?id:
and id:
)
#990
Span labels in function arguments (?id:
and id:
)
#990
Conversation
src/document/generator.ml
Outdated
|
||
let tag tag t = O.span ~attr:tag t | ||
| Odoc_model.Lang.TypeExpr.Label s -> tag "opt-arg" (O.txt s) | ||
| Optional s -> tag "named-arg" (O.txt "?" ++ O.txt s) |
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.
Please avoid inventing new terminology, I'd suggest label
and optlabel
as per language specification.
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.
(Also you need to swap the names)
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.
Good points, thanks. I updated the PR!
ca69da8
to
10ae266
Compare
It looks like some tests are not updated, but everything else looks good to me! |
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.
Looks good to me :)
@@ -89,11 +95,17 @@ <h1>Module <code><span>Type</span></code></h1> | |||
<span><span class="keyword">type</span> labeled_higher_order</span> | |||
<span> = | |||
<span> | |||
<span>(<span>l:int <span class="arrow">-></span></span> int) | |||
<span>( |
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.
Not related to this PR but this reminds me that the --indent
option breaks the formatting: ocsigen/tyxml#288
Signed-off-by: Paul-Elliot <[email protected]>
411cc8a
to
6a98054
Compare
Fix #879.
If someone has some taste in the css colors, please suggest something! Currently, here is what I chose: