this repo has no description
1
fork

Configure Feed

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

Fix docsite sidebar rendering, CSS theming, and support file deployment

- Fix sidebar kindBadge: map leaf-page→pg, module-type→MT, etc. (was
showing "L" for leaf-page entries)
- Stop escaping sidebar content HTML (entries contain <code> tags)
- Fix inline sidebar JSON: use Html.cdata_script instead of Html.txt
to prevent HTML-escaping inside <script> tags
- Add --xo-* CSS custom properties for x-ocaml cells in light/dark themes
- Fix support file registration: use 'opam var share' instead of
'opam var x-ocaml:share' (works without x-ocaml being an opam package)
- Suppress empty <li> from config-only extension tags (@x-ocaml.*)
- Add worker_url field to jtw opam findlib_index.json
- Refactor x-ocaml.js worker URL discovery to support both direct
worker_url and day10-style version/content_hash paths

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

+8 -2
+8 -2
src/document/comment.ml
··· 459 459 (* Extension handled the tag - collect resources/assets and use output *) 460 460 Resources.add result.Odoc_extension_registry.resources; 461 461 Assets.add result.Odoc_extension_registry.assets; 462 - (* Use empty key - extension output in definition is self-describing *) 463 462 { Description.attr = [ name ]; 464 463 key = []; 465 464 definition = result.Odoc_extension_registry.content } ··· 473 472 let attached_block_element : Comment.attached_block_element -> Block.t = 474 473 function 475 474 | #Comment.nestable_block_element as e -> nestable_block_element e 476 - | `Tag t -> [ block ~attr:[ "at-tags" ] @@ Description [ tag t ] ] 475 + | `Tag t -> 476 + let t = tag t in 477 + if t.Description.key = [] && t.Description.definition = [] then 478 + (* Extension tag with no visible output (e.g. config-only tags 479 + that only inject resources). Emit nothing. *) 480 + [] 481 + else 482 + [ block ~attr:[ "at-tags" ] @@ Description [ t ] ] 477 483 478 484 (* TODO collaesce tags *) 479 485