this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use Js_url for x-ocaml.js so odoc resolves the path correctly

The inline script loader hardcoded ./_x-ocaml/x-ocaml.js relative to the
page, but support files live under odoc.support/ at the doc root. Switch
to Js_url which odoc resolves against support_uri (like odoc.css). The
backend config is now communicated via a <meta> tag instead of a script
attribute.

Also: add x-ocaml dependency on merlin-js, add odoc-interactive-extension
dependency on x-ocaml, and remove unused js_top_worker-rpc.message dep.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7 -3
+2 -1
dune-project
··· 36 36 (ocamlfind 37 37 (>= 1.9.8)) 38 38 (ppx_blob 39 - (>= 0.9.0)))) 39 + (>= 0.9.0)) 40 + merlin-js)) 40 41 41 42 (package 42 43 (name ppxlib_register)
-1
src/dune
··· 18 18 brr 19 19 code-mirror 20 20 js_top_worker-client.msg 21 - js_top_worker-rpc.message 22 21 lwt 23 22 merlin-js.client 24 23 merlin-js.code-mirror
+4 -1
src/x_ocaml.ml
··· 10 10 11 11 let backend_name = 12 12 match current_attribute "backend" with 13 - | None -> "builtin" 14 13 | Some name -> Jstr.to_string name 14 + | None -> 15 + match read_meta "x-ocaml-backend" with 16 + | Some name -> name 17 + | None -> "builtin" 15 18 16 19 let read_meta name = 17 20 let doc = Brr.Document.to_jv Brr.G.document in
+1
x-ocaml.opam
··· 18 18 "ocamlformat-lib" {>= "0.27.0"} 19 19 "ocamlfind" {>= "1.9.8"} 20 20 "ppx_blob" {>= "0.9.0"} 21 + "merlin-js" 21 22 "odoc" {with-doc} 22 23 ] 23 24 build: [