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
DOC: Titles of long function names in API Reference truncated and horizontal scroll bar in code examples in 3 column layout #20635
Comments
This might have other consequences though. In particular, using full page has a potential readability issue https://baymard.com/blog/line-length-readability If this is not a very common problem, probably good thing is to leave it alone. |
I think we can experiment with maybe not 100% but something larger than the default. For information, this is where the page width comes from: https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/layout.html#horizontal-spacing (I just realized you had already linked it @DietBru 🤦🏻♀️ sorry!) |
I would argue that the recommended <75 character margin widths are plausible for longer chunks of continuous texts but not necessarily for the function style reference of SciPy, because:
If not allowing full width marigns, increasing them by a little bit would already be beneficial: Code examples, like in special.airye display only 74 characters per line though the code is 80 characters wide. Hence, manual horizontal scrolling is needed. The Contributor Guide on the other hand suggests a maximum width of 88 characters. |
The regular users won't have any problem with any width, they can just like or get annoyed. The readability is for the impaired and folks with dyslexia and alike who have issues with "returning the carriage to the newline". Also, letting user adjust window size for readability is a no-no for frontend. Here is another example But anyways, I'm not knowledgeable or passionate enough to defend any position about it. |
To make progress on this topic, let's try focus on the layout problems at hand to perhaps find a better solution (I changed the issue title accordingly):
Note these issues appear only if the browser window is wide enough to have a three column layout. For narrower browser windows, the one- and two column layout has more characters per line. |
Both are OK with me. For item 1 probably not truncating the breadcrumbs is a better solution so that the context is obvious. |
Thanks for thee discussion folks. I am going to loop in accessibility people who can maybe help us evaluate the best decision here. |
Why not just wrap the header text? This is what the Furo theme does, for example. I'm not a CSS expert, but you might even be able to use something like |
As shown in the bottom portion of the screenshot below, the HTML documentation does not use the full window width of the browser. For some titles, the default width is not enough (red square in screenshot). Adding the following lines to the file
doc/source/_static/scipy.css
lets the center column use the full width (top portion of screenshot). Details can be found in the pydata-sphinx-theme docs.
The text was updated successfully, but these errors were encountered: