Skip to content

Support multiple inputs in markdown-generate (and html-generate)#1388

Merged
jonludlam merged 4 commits intoocaml:masterfrom
davesnx:markdown-generate
Oct 16, 2025
Merged

Support multiple inputs in markdown-generate (and html-generate)#1388
jonludlam merged 4 commits intoocaml:masterfrom
davesnx:markdown-generate

Conversation

@davesnx
Copy link
Copy Markdown
Contributor

@davesnx davesnx commented Oct 15, 2025

Since integrating markdown in dune (ocaml/dune#12477), I found (idea by @jonludlam) would be helpful to generate markdown files from a list of odocl files.

This change is propagated into html-generate (which I belive is a nice addition and it doesn't break any previous usage of the cli). If you prefer to not change this, I could implement a new Main.generate

@jonludlam
Copy link
Copy Markdown
Member

This seems a totally reasonable change to me. Thanks, @davesnx !

@jonludlam jonludlam merged commit f71822c into ocaml:master Oct 16, 2025
11 checks passed
rgrinberg pushed a commit to ocaml/dune that referenced this pull request Feb 6, 2026
This PR extends odoc to support markdown-generate implemented here
ocaml/odoc#1341 and supported since odoc.3.1.0
but it currently depends on another PR
ocaml/odoc#1388 that isn't released (that's why
I do the changes in nix [`7e386e6`
(#12581)](7e386e6)
and If I could get another pair of eyes if it's correct)

The implementation itself tried to be very similar to the html
generation, except the directory targets on a flat package.

The PR adds:

```bash
dune build @doc-markdown
```

Based on #12477

---------

Signed-off-by: David Sancho Moreno <dsnxmoreno@gmail.com>
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.

2 participants