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

Driver: New hierarchy #1236

Merged
merged 9 commits into from
Nov 8, 2024
Merged

Conversation

panglesd
Copy link
Collaborator

@panglesd panglesd commented Nov 6, 2024

Based on #1233.

Implement the new hierarchy in the driver. This time, properly split in commits!

@jonludlam jonludlam added the no changelog This pull request does not need a changelog entry label Nov 6, 2024
This will allow to avoid circular dependencies when generation function call
landing page generation function (which depend on the type defs)

The code is untouched (apart from being moved).
This will be useful for landing pages outside of the hierarchy.
In particular, the package list page does not have one.
@panglesd panglesd force-pushed the new-hierarchy-in-driver-clean branch from dc0b86f to 64ec490 Compare November 8, 2024 10:22
@@ -614,6 +614,8 @@ let run libs verbose packages_dir odoc_dir odocl_dir html_dir stats nb_workers
if voodoo then
match Util.StringMap.to_list all with
| [ (_, p) ] ->
(* TODO: check whether the [doc] layer should be removed (due to new
Copy link
Member

@jonludlam jonludlam Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fine to remove the 'doc' dir.

@jonludlam
Copy link
Member

This looks good, except that there's some code in the voodoo module to determine libraries based on their paths which we need to figure out: https://github.com/ocaml/odoc/blob/master/src/driver/voodoo.ml#L277-L280

@jonludlam
Copy link
Member

I'm working on a fix for voodoo mode.

@panglesd
Copy link
Collaborator Author

panglesd commented Nov 8, 2024

Then, I pushed only the fix regarding your other comment.

Is there anything more to do than removing the "lib" intermediate directory in your linked file? I'll wait and see your fix!

@jonludlam
Copy link
Member

Seems voodoo mode is broken for more reasons, let's just merge this and I'll fix it in another PR.

@jonludlam jonludlam merged commit a1c2d2e into ocaml:master Nov 8, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This pull request does not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants