Skip to content
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

ocamldoc does not seem to understand include type t = int end #7791

Open
vicuna opened this Issue May 4, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented May 4, 2018

Original bug ID: 7791
Reporter: tom.j.ridge
Status: new
Resolution: open
Priority: normal
Severity: minor
Platform: All
OS: All
OS Version: All
Version: 4.04.2
Category: ocamldoc

Bug description

ocamldoc does not seem to understand include type t = int end

In the generated html I just get "include struct ... end", and the ... is not clickable/expandable.

Perhaps I am doing something wrong?

Steps to reproduce

echo "include struct type t = int end" >tmp.ml
ocamldoc -html tmp.ml

now look at Tmp.html

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented May 4, 2018

Comment author: @Octachron

Ocamldoc does not really understand "include" directives indeed. But odoc(https://github.com/ocaml/odoc) has a far better understanding of "includes" and handles correctly your example.

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented May 4, 2018

Comment author: tom.j.ridge

OK, thanks.

@vicuna vicuna added the ocamldoc label Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.