Skip to content

Driver and convention: includes libs from packages in odoc-config.sexp #1343

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

panglesd
Copy link
Collaborator

Currently, the packages and libraries fields of odoc-config.sexp are used to determine what can be referenced. More precisely:

(libraries lib1)
(packages pkg1)

in odoc-config.sexp means that we can reference the pages from pkg1 and the modules from lib1.

This forces the doc author to specify both if they want to references pages and modules. For instance, to be able to both reference the brr ffi manual and the Brr module, one would need the following odoc-config.sexp:

(libraries brr)
(packages brr)

This feels redundant. Moreover, the driver anyway needs to group libraries in packages. With this PR, I propose to update the convention so that the (packages ...) field allows to link both pages and the modules of a library belonging to the package. In the example, the following would suffice:

(package brr)

I updated both the docs, and the odoc reference driver.

panglesd added 4 commits May 19, 2025 16:25
This allows to reference libraries from packages that were added to
`odoc-config.sexp`'s `(packages ...)` field, without having to explicit add the
library to the `(libraries ...)` field. This makes it less cumbersome to use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant