Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sidebar sticky (on Opam Docs Website) #225

Open
MisterFISHUP opened this issue May 26, 2023 · 1 comment
Open

Make sidebar sticky (on Opam Docs Website) #225

MisterFISHUP opened this issue May 26, 2023 · 1 comment

Comments

@MisterFISHUP
Copy link

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!

opam-sticky-sidebar.mp4
@rjbou
Copy link
Contributor

rjbou commented Jun 1, 2023

It would be great, indeed!
For the ocaml code creating the bar, it is here

Html.div ~cls:"row"
(Html.div ~cls:"span3"
(Html.div ~cls:"bs-docs-menu hidden-phone"
(doc_menu
@ Html.div ~cls:"bs-docs-toc" html_toc))
@ Html.div ~cls:"span9"
(header
@ Cow.Html.of_string (Omd.to_html md_content)))

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants