···11+ISC License
22+33+Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>
44+55+Permission to use, copy, modify, and distribute this software for any
66+purpose with or without fee is hereby granted, provided that the above
77+copyright notice and this permission notice appear in all copies.
88+99+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1010+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1111+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1212+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1313+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1414+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1515+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+41
odoc-xo/README.md
···11+# odoc-xo - Transform odoc HTML to x-ocaml Web Components
22+33+A command-line tool that transforms HTML documents generated by odoc to use
44+interactive x-ocaml web components for OCaml code blocks.
55+66+## Key Features
77+88+- Transforms `<pre class="language-ocaml">` blocks to `<x-ocaml>` elements
99+- Processes MDX-style code blocks (lines starting with `# `)
1010+- Injects script and style tags for x-ocaml web components
1111+- Configurable script paths for the x-ocaml runtime
1212+1313+## Usage
1414+1515+Transform a file and write to stdout:
1616+1717+```
1818+odoc-xo tutorial.html
1919+```
2020+2121+Transform and write to a file:
2222+2323+```
2424+odoc-xo -o output.html input.html
2525+```
2626+2727+Use custom script paths:
2828+2929+```
3030+odoc-xo --js-src /assets/x-ocaml.js input.html
3131+```
3232+3333+## Installation
3434+3535+```
3636+opam install odoc-xo
3737+```
3838+3939+## License
4040+4141+ISC