Skip to content
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

Merged
merged 13 commits into from
Jun 7, 2024
Merged

Conversation

jukent
Copy link
Contributor

@jukent jukent commented Jun 7, 2024

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.

@jukent jukent requested review from a team as code owners June 7, 2024 00:31
@jukent jukent requested review from dopplershift and ktyle and removed request for a team June 7, 2024 00:31
Copy link

github-actions bot commented Jun 7, 2024

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below.
🔍 Git commit SHA: 296cac0
✅ Deployment Preview URL: https://ProjectPythia.github.io/cookbook-gallery/_preview/208

Copy link
Member

@brian-rose brian-rose left a 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 = ""
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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!

Copy link
Member

@brian-rose brian-rose left a 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!

@brian-rose
Copy link
Member

This PR closes #207

@brian-rose brian-rose linked an issue Jun 7, 2024 that may be closed by this pull request
@brian-rose brian-rose merged commit b872d3b into ProjectPythia:main Jun 7, 2024
2 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cookbook gallery filters broken
2 participants