ocaml-opam / opam2web

A tool to generate a website from an opam repository
https://opam.ocaml.org
Other
56 stars 28 forks source link

Make sidebar sticky (on Opam Docs Website) #225

Open MisterFISHUP opened 1 year ago

MisterFISHUP commented 1 year ago

Hi,

I wanted to bring up an issue with the current Opam Docs website. The sidebar on the doc pages isn't sticky, and I believe making it sticky would improve the user experience.

I'm not quite sure which code or repository I need to modify to make this change and submit a pull request. To give a better idea of what I mean, I've attached a screenshot that shows the changes I made directly in the devtools.

Thanks for your help!

https://github.com/ocaml-opam/opam2web/assets/68397336/9e55d95a-4ecb-4ce5-b876-54866b676bad

rjbou commented 1 year ago

It would be great, indeed! For the ocaml code creating the bar, it is here https://github.com/ocaml-opam/opam2web/blob/1ec15cbdd4d2ebbf37b197eb9688375382bcee43/src/o2wDocumentation.ml#L127-L134

For the style, CSS are defined in https://github.com/ocaml-opam/opam2web/tree/master/ext/css