-
Notifications
You must be signed in to change notification settings - Fork 10
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
AddGallery #114
AddGallery #114
Conversation
Add a Gallery page with plots.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #114 +/- ##
=======================================
Coverage 75.05% 75.05%
=======================================
Files 68 68
Lines 10519 10519
Branches 2 2
=======================================
Hits 7895 7895
Misses 2624 2624
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fix misspelling
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.
Maybe the cylinder flow with curved boundaries from https://www.youtube.com/watch?v=w0A9X38cSe4 and the acoustic wave scattering mesh from https://www.youtube.com/watch?v=2v5KYdK7VLA could be added as well? CC @andrewwinters5000
Ah, I hadn't thought about including videos of using the meshes. Though I'm seeing that if I try to go to either of those sites I have to sign in to "prove that I am not a robot". So if that is a requirement now, then I'm not sure that I like the idea as much. |
Add references to the gallery in the README and to the menu that shows up on the left. I also rearranged the menu to have the authors and license at the end.
I was more thinking about showing the pictures of the meshes Andrew used for the videos. But we could also consider embedding the YouTube videos in the docs. Shall I try to do this? |
To be honest, I think linking the videos is a great idea. I tried again just now and the videos played without requiring a sign in. I don't know what was up with that, maybe the virtual vpn or something. A section with video links in the gallery would show that the meshes can be used. |
I copied the images to an external examples repository. We can delete them from this branch to keep this repository smaller. |
We should consider adding smaller versions of the images to the example repo - some are quite large and take quite a while to load. |
I also just checked and exported the gallery from my markdown editor to html, which, when displayed by safari, reproduces the picture above. It seems that the markdown that GitHub uses doesn't accept html commands? Or it ignores "div" since the two columns are not produced? Interesting... putting "div" in brackets <> here doesn't print. |
Looking at Google's docs, https://github.github.com/gfm/#html-blocks, the html should be recognized and two columns should be produced. |
Fix multiple the column issue by including html comment markers in for the comments in the div's.
OK, I fixed that formatting issue. Still would like to know how to add captions. I guess I would know how to do that if I knew how to incorporate css into the markdown file. |
The markdown files are not served directly but are processed by |
extra_css: | ||
- css/video.css |
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.
If you want to use new css, you can add a file here...
Documentation/docs/css/video.css
Outdated
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.
... and add the file to this folder similar to this one. This should work and give you access to CSS in the generated html output.
I added a CSS-based approach for the captions in 1d82a2e. This is what it looks like for me: If you like it, you can throw out the original code and use the |
Thanks Michael, this is what I had in mind. I just didn't know how to hook up the css. I'm thinking of changing the format of the captions now that I see them. I think description (contributor) will look better. |
I like the idea of adding video links as well. It shows the meshes "in action" and offers possibility for immediate additions to the gallery, e.g., the Malpasset test once we get the Shallow water package released. |
Change all the div's to be the css versions for two column display plus captions. Change the captions to be of the form `caption (contributor)'. Change the video section name to "Applications".
Fix a reference/caption
I think we have a good starting point for the gallery. I've edited the gallery page file to use the new div classes and edited the captions. Looks pretty good, imo. I edited the comments at the top of the file for the formats. Before merging the hohqmesh-gallery directory needs to be removed. Those file appear to be in the new GitHub repo with the examples. Thanks to everyone for their contributions. |
I removed the hohqmesh-gallery directory and added more links to videos. |
No worries. And to be honest, I don't either - I actually had ChatGPT draw up all the required CSS for me (it seems to be quite HTML savvy... 😉) |
I just took a look at the new gallery page and it looks good to me. Thanks, Hendrik for the additional video links. Are we ready to merge? |
This PR is ready to be merged from my point of view 👍 |
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.
Everything looks good from my end. Thanks so much for your help @ranocha !
Add a Gallery page with plots.