c-cube / printbox

print nested boxes, lists, arrays, tables in several formats
https://c-cube.github.io/printbox/
BSD 2-Clause "Simplified" License
77 stars 10 forks source link

The promised `<details>`-based solution to collapsible trees #31

Closed lukstafi closed 11 months ago

lukstafi commented 11 months ago

There's a new entry tree_summary: bool in PrintBox_html.Config.t to control if trees should be rendered using the <details><summary> elements.

lukstafi commented 11 months ago

The 4.03 failure is a failure to install mdx. I'll add the dependency, should help.

lukstafi commented 11 months ago

Alright that didn't help. Looking closer, the error says "The following actions failed λ build mdx 1.11.0".

lukstafi commented 11 months ago

This is how it looks in practice: ppx_minidebug-foldable_trees

lukstafi commented 11 months ago

Could we maybe maybe give up on checking OCaml 4.03? No idea how to fix that.

The benefit of moving from global to text-style preformatted is that the summaries are now monospace if requested. ppx_minidebug-foldable_trees

c-cube commented 11 months ago

Yes, we can move to 4.08.

lukstafi commented 11 months ago

Thanks for doing this! I figured we could also / alternatively bump mdx to 2.0, which itself requires OCaml >= 4.08.