Restructure homepage and add rotating featured examples#953
Open
TimMonko wants to merge 15 commits intonapari:mainfrom
Open
Restructure homepage and add rotating featured examples#953TimMonko wants to merge 15 commits intonapari:mainfrom
TimMonko wants to merge 15 commits intonapari:mainfrom
Conversation
Contributor
Author
|
@napari-bot make html |
Contributor
Author
|
@napari-bot make html |
Contributor
Author
|
@napari-bot make html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References and relevant issues
Address #793, I think?
Also, I think it will need to wait until 0.7.0 releases because it will look for the example images in stable static ... right? They won't be there until after 0.7.0 releases.
Description
Revamp of homepage, will detail out later. Having a bit of trouble full building locally so I'm pushing to make the bot build for me lol. This makes the homepage MUCH easier and quicker to parse and I think actually provides more information. I prompted copilot with Claude Opus to set this up and it did a REALLY bad job aesthetically (I still have css cleanup to do), BUT it use this whole .js stuff that I'm clueless about and that actual works (and is what matplotlib uses). So it was sort of a win and sort of a fighting a toddler moment. In the end, I combed over most of the code myself lol.
featured_examples.jsonallows us to control which examples. We could probably do this as a gallery tag, but I thought it was nice to control here (rather than in napari/napari) how examples are rendered and we can be more precise about home page wording for the individual example . Also notice the dropshadow around the media, so we won't have the really sad white border around it like with the above viewer example.Some more ideas
uvx "napari[all]" remote_path_to_example.pyto show it running python files?viewer.add_image()leading to the add image example? I don't really like this thoughfeatured_examples.jsonjust takes keys that are title, description, doc path, and image path. So if we have in dpeth tutorials or other things to highlight (or we can make another dynamic section with the same model that highlights other parts of the docs)