-
Notifications
You must be signed in to change notification settings - Fork 204
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
DOCS: Move to pydata-sphinx-theme #4129
DOCS: Move to pydata-sphinx-theme #4129
Conversation
@csadorf there's a blocking issue at the moment pydata/pydata-sphinx-theme#192 😢 |
If you would want to use the theme before pydata/pydata-sphinx-theme#192 is properly fixed, it should be possible "relatively" easily by moving the toctrees to For example the toctree that is right now in
could be moved to
and then the main toctree in
You already do this for some of the captions, like for (but it is certainly good to think about if we can just support those captions in pydata/pydata-sphinx-theme#192) |
That's unfortunate. How do you advise to proceed? |
I'm going to have say stick with the RTD theme for now. |
Since I'm not actually involved in the docs revamp, I'm just looking at the new doc from time to time.. so apologies if this is either something you're planning to address or doesn't match what you're trying to do: From my POV, it would make sense to add the "intermediate" pages as suggested by @jorisvandenbossche that show an overview of the current section (How-to, Topics, ...). The problem I'm seeing with the current layout is that clicking on e.g. the "How to" section from the front page brings me to "How to run external codes". That's not quite what I expected, and I then need to figure out that the other "How to" guides are located in the side bar. That's not at all obvious, especially considering the sidebar can be hidden: Note how there is no link to the other howto sub-sections visible at all. This is less of an issue for "Installation" and "Tutorial" which have a clear starting point, but for the other four sections the chance of landing in the right page is basically 1/#sub-sections. The new docs look fantastic overall, btw 👌. |
@greschd Thank you very much for the feedback! Using those "chapter landing pages" might work for How-To and Topics, but it wouldn't work for the Tutorial for example. So I can give that a shot, I'm just a bit worried that this won't work consistently. |
Are we always going to have the one tutorial? Because it feels like it should just go under the getting started section if so? |
Yeah I don't know how best to solve this in terms of toctree, but I think for the "How To" etc. the chapter landing pages are actually important regardless which style is used. For the tutorial, "Basic tutorial" could also be at the top-level (unless there are more tutorials planned), with "how to continue" put at the same level as the other parts. But since it's a single page, I still don't know if that would work out. |
Yeh I had noted this before @greschd, but was a bit undecided on the best solution. From the point-of-view of viewing on a large screen, I do like the current layout, in terms of it being user friendly to (a) quickly understand the layout of the documentation and (b) quickly navigate to sections of the documentation (without having to click through redundant indexes). But you make a good point about implications for smaller screens. |
I'd actually prefer the intermediate pages even on a large screen (that's how I initially tested it). The layout of the sidebar seems perfect to me, but (disregarding how it would be implemented) ideally the top-level headers would also be clickable and lead to intermediate page. The main point I wanted to make however is that it's slightly confusing to be brought to the "wrong" page from the front page. Even if it's technically the same number of clicks to get there, it seems like lower mental overhead to navigate "top to bottom" than "down" and then "sideways". For the "power user" who discovered the sidebar, it probably won't matter either way 🙂 |
I think this is a very valid point though. The navigation should be as simple and obvious as possible. So we should certainly try optimize this flow. |
See #4130 for top level indexes with RTD theme: https://137-77234579-gh.circle-artifacts.com/0/html/index.html |
92bc329
to
b6c5b82
Compare
And I've just rebased this PR onto #4130: https://142-77234579-gh.circle-artifacts.com/0/html/index.html |
That looks good, doesn't it? |
I think so. Note there's no full ToC now on the front page (which IMO would be nice), because it works a bit differently; by only showing the top-level headings for the section (on the left) and sections for the page you are in (on the right ). Click around and you'll see what I mean. |
I think I can live with that. |
BTW @jorisvandenbossche in b4c4f1e I added a little CSS override for the link icon that you might want to upstream (unless it was meant to be that way), from: |
I like it 👍 Absolute nit: Is it just me, or is the color-scheme a bit all over the place? For example, there are 4 blues on the front page, when counting the logo. For example the provenance graph illustrations seem to be hue-matched to the logo, do we have an "official" color palette? |
Nothing that a bit of CSS can't fix 😄 I guess the blues for the admonition boxes and buttons come from https://getbootstrap.com/docs/4.0/utilities/colors/ |
If you mean like https://142-77234579-gh.circle-artifacts.com/0/html/intro/tutorial.html#provenance, then they derive from
|
Yeah, definitely not a high priority 😄 Exactly, those have (near as makes no difference) the same hues (only different lightness / saturation) as the logo, so I think it's on purpose. I was wondering if someone had designed a "complete" color palette. |
I'm pretty sure not, but happy to have a play around with it at some point, maybe not now though and when this is merged: pydata/pydata-sphinx-theme#138 |
Definitely, this is very low-priority. Maybe we can open an issue for that.. I can also give it a whirl if you like, but I'm not a designer by trade 😄 |
The pre-commit error is the well known "phantom error" so this is good to merge |
* Add top level indexes. * Adopt pydata-sphinx-theme. * Fix CSS of top bar link icons.
closes #4029