sphinx-panels icon indicating copy to clipboard operation
sphinx-panels copied to clipboard

Thumbnail Gallaries

Open chrisjsewell opened this issue 5 years ago • 4 comments

To flagrantly plagiarize from nbshinx's latest commit, it might be a nice feature to implement thumbnail galleries in some way: https://nbsphinx.readthedocs.io/en/latest/subdir/gallery.html

chrisjsewell avatar Mar 31 '20 23:03 chrisjsewell

lol I saw that too - yeah I don't think that it should be too hard to do...maybe it could just be a gallery: directive that takes a list of relative links to pages and then builds a gallery of all the first-images that it sees?

choldgraf avatar Apr 01 '20 00:04 choldgraf

oh I just saw that this is basically exactly what the nbsphinx gallery thing does haha. Maybe the easier thing to do would just be to fork that little directive out into a separate sphinx extension? There doesn't seem to be anything inherently "jupyter notebook"-y about that feature to me...

choldgraf avatar Apr 01 '20 00:04 choldgraf

@chrisjsewell do you think this is taken care of by your sphinx-panels project? I think you can get close to the same effect w/ that...

choldgraf avatar May 06 '20 01:05 choldgraf

It's not a one-to-one mapping, but there are certainly some extra aspects that could go into panels: primarily the ability to turn the entire card into a clickable link (could maybe do this via https://getbootstrap.com/docs/4.4/utilities/stretched-link/) and the hover highlighting.

I'll move the issue to sphinx-panels, as its probably more helpful to be there.

chrisjsewell avatar May 06 '20 18:05 chrisjsewell