Are these websites generated by odoc?

https://ocamlpro.github.io/ocaml-solidity/doc/


Assuming these are odoc generated api docs, they don’t look or read nicely on mobile.

I really love the look of elixir and gleam generated docs. Are there alternatives or perhaps a way to inject a new template style into odoc? Fortunately we have ocaml.org’s pretty looking renders.

https://hexdocs.pm/phoenix/Phoenix.html
https://hexdocs.pm/gleam_stdlib/

I’m inching towards releasing my first ever ocaml library. so im very excited to make it look pretty.
P.S. It’s just another ethereum sdk.

Which websites are you referring to?

1 Like

Doh. Thanks for catching that. I had meant to include the screenshot.

You can use odig’s stylesheets (and odig to generate your docs, hopefully the instruction here still work). They should be mobile friendly (if not, report).

If you want to see what this gives most of the docs here use it, see for example brr for an extensive use with manuals.

2 Likes

yes, it must be odoc, if I remember correctly there was a bug filed against the CSS which was bad for mobiles, but I think it is fixed now, so if you use the latest version it should be ok