-
Notifications
You must be signed in to change notification settings - Fork 51
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
Recipe Gallery Sphinx Directive #1150
base: main
Are you sure you want to change the base?
Conversation
Updating styling for both layouts
cleaned up code in recipe_gallery.js
Fixed bug in logic for checking bounds in recipe gallery carousel
29e74d4
to
72d6ddc
Compare
docs/_static/css/recipe_gallery.css
Outdated
/* TODO TESTING DELETE THIS */ | ||
#recipe-tag-search-bar { | ||
border: 1px solid black; | ||
} |
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.
You should probably delete this...
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 style will be left in for now, just for testing in the recipes.rst file
docs/index.rst
Outdated
@@ -79,6 +79,7 @@ App Development | |||
|
|||
tutorials | |||
dev_guides | |||
recipes |
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.
Move this above tutorials
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.
done
.. recipe-gallery:: | ||
:layout: multi-row | ||
|
||
recipes/first_recipe images/recipes/address_searching.png "Address Search Recipe" [search, address, location, map, geocoding] |
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.
Is it possible to get the title from the first heading in the page it is referencing? I think that is how the toctrees work.
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 resolved in commit f51708f
updated recipe gallery cards to pull title from target documents
This pull request adds a sphinx directive for recipe galleries
These galleries can be in one of two formats: Multi-Row or Carousel
Multi-Row places the desired recipe tiles into a grid of 4 columns.
Carousel adds a sliding carousel where each slide has 4 recipe tiles visible at a time (if there are at least 4 cards to show)
This directive also adds a search input to search for different tags in the recipe cards and filter for those tags.