-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix dropdown gallery filtering #208
Conversation
👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below. |
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.
Awesome to see the functionality back! I can't comment on the javascript (don't know anything about it). I just have a question about a seemingly unrelated change in how the subtext is handled.
@@ -10,21 +10,16 @@ def main(app): | |||
|
|||
title = "Cookbooks Gallery" | |||
|
|||
subtext = "" |
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.
Just wondering what's the motivation for removing this and putting the subtext in as HTML?
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 can put that back, it was an extraneous edit made in the beginning of wrestling with the gallery generator being broken. I was probably trying to track down a broken extension and never undid it.
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.
That makes sense. Yes, if you can revert that part back, I think it will be easier to maintain the subtext content if it stays in its own markdown file.
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.
Fixed. I'll deal with making the dropdown buttons prettier on Monday. Have a good weekend!
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'm not familiar with javascript or css so I can't review all the details, but it looks good to me. I tested out the functionality of the filters in the preview and everything seems to working. Hooray for that! Nice work @jukent!
This PR closes #207 |
Part of ProjectPythia/projectpythia.github.io#419
Closing #199 in favor of this due to merge conflict weirdness
Corrects sphinx dropdown call, HTML, CSS, and Javascript for filtering.
CSS on dropdowns can still be tweaked.