-
Notifications
You must be signed in to change notification settings - Fork 470
Add support for Reason doc generation #1117
Copy link
Copy link
Closed
Labels
odocIssues and PRs related to documentation generation with odocIssues and PRs related to documentation generation with odoc
Description
(Continued from ocaml/odoc#156 (comment))
We recently introduced support for Reason syntax generation in odoc.
Specifically, the following option is now implemented:
$ odoc html [--syntax=<ml|re>] (default=ml)
It would be great if dune had the ability to pass this option to odoc and thus allow users to generate either or both syntaxes.
A few options were discussed:
- Introduce different targets for each syntax:
@docand@reason-doc(suggested by @rgrinberg). - Decide which syntax to generate based on the file extension (suggested by @diml).
The second option seems very natural and doesn't require user-facing changes but it also doesn't allow the generation of both syntaxes at the same time.
Note: The --lang option mentioned in this issues was renamed to --syntax.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
odocIssues and PRs related to documentation generation with odocIssues and PRs related to documentation generation with odoc