With many thanks to Joris Van de Bossche for sharing the new Bootstrap-based Sphinx theme he has been working , Bokeh 1.4 docs will have a completely new (mobile-friendly) look. The new site is deployed as a dev build: Bokeh 2.3.3rc1 Documentation
It would be really valuable to get (quick) feedback, and ideally help with implementing the feedback. This will go live later this week and I a not sure now much more work I can personally put in to it this week. Please leave any comments, observations here, and we can triage in to GH issues as appropriate
Only thing I see is the hamburger menu not formatting correctly on some wide pages on Android 9, Firefox preview (screenshot). Chrome is similar but a bit more erratic.
@Jack_Beanland thanks for the kind words. Can you elaborate a bit? In the image you share it looks like the hamburger menu at the top rendered as expected, but that the footer block with the links and (c) notice showed up at half the width it should be?
For some pages the graphs are wider than that text width so the page extends rightwards so that you can see everything. The text and footer remain the same width as on the other pages, but the navbar seems to set itself as the new total width of the page, effectively meaning that you have to scroll right or zoom out to see the hamburger menu.
When I go to the same page on my desktop (firefox or chromium) this doesn’t occur, the navbar fixes itself to the page width and the rest of the page remains horizontally scrollable.
In general, of course, its beautiful and works well.
Hope that’s a little more helpful but please bug me for more specifics if needed
Expected behaviour, as it is on desktop, when you scroll across the navbar remains the same:
@Jack_Beanland Ah, thank you, now I understand. I am not sure how to fix it though, so perhaps it would be good to record an issue in case there is someone who comes along who does. Do you mind putting this info in an issue?
The new theme looks great. Without looking in much detail would we need to implement some changes to the figure scaling options for examples on the web? Although seems in some cases the figures fit nicely and in others they dont so perhaps thats also a html/styling issue.
@anthonydouc Well I’m not sure if this is your question or not, but I’d first mention that most of the examples in the docs have a fixed sizing mode, and are not responsive at all. This goes way back to a time before there were good options for sizing modes. It would be a reasonable and valuable project for somoene(s) to go through the docs and update examples to use responsive sizing modes in more places. [1] That’s a bit orthogonal to the site theme, I think (i.e. I would expect the same things are at least as bad or worse on the old site theme)
I’m not sure if I’m just missing something obvious with the current docs, but not being able to find the search functionality has been a bit of a handicap for me. I’ve mainly been searching via Google which then invariably links back to old versions of the doc.
Many thanks for the effort put into maintaining and updating Bokeh.
There was a long-standing issue about re-adding the search. It went away when Google abruptly discontinued their Google Site Search product several years ago. I recently hoped to replace it with an ad-free Google Custom Search engine, but the paperwork based on NumFOCUS non-profit status will not be ready in time for the release. The current search box is powered by the Sphinx client search facility, which is not great, but passable.
Done.
Didn’t know that also the documentation site is publicly available on git I don’t have permissions to create a new branch though, so I just opened an issue.
Edit: Nevermind, issue + PR