-
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
Further voodoo #1252
Further voodoo #1252
Conversation
5b24ad1
to
5ef2f8a
Compare
2d69c2c
to
0114e3f
Compare
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.
Odoc.sidebar_generate | ||
~output_file:Fpath.(output_dir // pkg_dir / "sidebar.json") | ||
~json:true index.output_file (); |
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.
Where is this json file used ? I find this code a bit brittle because if this file is ever needed somewhere else, nothing will ensure that it continues to be generated.
Any way the caller could set json = true
?
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.
It's used by ocaml.org - this is the sidebar json that served up for the per-package sidebar. The ocaml.org server reads this and renders its own sidebar.
@@ -222,6 +179,8 @@ let process_package pkg = | |||
|> List.flatten | |||
in | |||
let libraries = meta_libraries @ non_meta_libraries in | |||
let pkg_dir = top_dir pkg in | |||
let doc_dir = Fpath.(pkg_dir / "doc") in |
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.
The doc directory is back ? Is this to avoid breaking urls ?
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 chose not to change the layout on ocaml.org - mostly because it'd require a bunch of redesign work, and I don't have the capacity to do that.
0114e3f
to
9c4deee
Compare
Minor changes for voodoo mode