-
Notifications
You must be signed in to change notification settings - Fork 795
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
Documentation: Improve homepage #3060
Conversation
… 7 examples per row
…l role as it is needed. It registers raw-html as being the raw role with html format for the rest of the documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice improvement @binste! Love it. Included one inline suggestion.
I can have a look at this tonight. |
@binste, I see some commits regarding API, but if I click on the API tile at the prototype page at your repo I get a 404 error. Is that intended? |
Figured out what's the issue, fixed it and redeployed the prototype page. In this PR, I had to rename the API.rst file to api.rst as else somehow I got an error that the API reference does not exist. For this, I had to use -> When you deploy the next version of the docs with this PR, after deploying the docs as usual you will need to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a quick look at this and I think it looks great overall! Love the cards! A few minor comments (the first being the most important I think):
-
I like that the text column on the VegaLite page is narrower than the gallery image:
On the Altair site the text and the cards looks a bit too stretched out horizontally in my opinion (and maybe also slightly too large font for the sentence just under the gallery image? But that might just be my personal taste). Aligning the title with the more narrow text column would also look nice I think (like on the VegaLite page).
-
Personally I don't know if the API reference is exciting enough to be promoted on the front page, but I also can't think of something better to replace it with... maybe only three cards? But I like the layout with four cards, this is probably fine as it is right now.
Thanks for improving this part of the docs!
Thank you for the feedback! I'd also prefer to have the gallery stretched across the whole page and then again the text a bi narrower but I didn't manage to make that happen within the Sphinx theme. There are some infos here on the layout of the theme. From that and inspecting the source code, I think we'd need to either find a way to make the gallery stretch to more then the width of it's parent containers or do bigger changes to the layout templates. I tried the approaches suggested at https://stackoverflow.com/questions/5581034/is-there-a-way-to-make-a-child-divs-width-wider-than-the-parent-div-using-css but they only made the gallery wider by a bit but not as in the VL docs. This is why I made the page slightly wider then in the VL docs as a compromise so that the gallery is wide but the page is also not too wide as then the text and cards would be stretched even more. Regarding the API reference, I actually find it one of the most useful parts as I use it a lot to look up the meaning of some parameters but not sure if that fully comes through and is the same for most users. Let's replace it once we have something more exciting as you mentioned. (Removed some unused css in the last commit, no visible change) |
I don't necessarily think the gallery need to stretch to the end of the page, it is more the ratio between the gallery width and the text width that I think could be increased. Is it possible to try the other way around and make the text column on the first page more narrow? Maybe we could use the width of the title as the guideline and make sure the text and card fit within that width and then center the title, cards, and text in a column that is more narrow than the current gallery? |
Great example how the docs are used differently at study and at work:
vs
I like it that we realize this and that we can serve both. |
Fully agree! It's great to have people with different backgrounds weigh in on these topics :) I think I figured out how to stretch the gallery and make the text narrower again. Will push an update soon. |
…ery images so it looks better in this configuration. Replaced the heatmp with text as it looks too 'zomed in' with the text compared to the others
The gallery shadow now stretches all the way to the edges, same as in VL docs, and the examples have the same width as the header. The title and text are again a bit narrower (same width as VL docs). I replaced and reordered some examples as well. Preview docs are updated. I think this looks great, quite happy with the outcome but let me know if you see any additional improvement potential. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really neat! Great working figuring out how to get the gallery to stretch 🙌 ! Merging.
The current homepage looks empty on larger screens:
In this PR, I increased the size of the gallery (inspired by the VL docs and added cards with short descriptions about the main sections in the documentation (inspired by the pandas docs. You can see the result here or in the screenshots below:
Large screen (27inch 2560x1440):
Laptop (13inch 2560x1664):
Mobile (iPhone SE emulation):