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

generate gallery with already existing generated files #50

Open
lazarusA opened this issue Sep 13, 2022 · 1 comment
Open

generate gallery with already existing generated files #50

lazarusA opened this issue Sep 13, 2022 · 1 comment

Comments

@lazarusA
Copy link

I have this site:

https://beautiful.makie.org/dev/

where are examples are already generated. They are generated here in the examples/ folder. Is there a way in which I could use this library to simply generated an overview gallery at the home level.

Best,
L.

@smarie
Copy link
Owner

smarie commented Sep 24, 2022

Thanks @lazarusA for your question.

mkdocs-gallery is a clone of sphinx-gallery for mkdocs. So if they support this I would happily do the same (or maybe I already do but I dont know it). I looked into https://sphinx-gallery.github.io/stable/advanced.html but it does not seem to be described as a use case.

Therefore I guess that the easiest way for you to move forward would be simply to copy part of what is done here:

def generate(gallery: GalleryBase, seen_backrefs: Set) -> Tuple[str, str, str, List[GalleryScriptResults]]:

In particular look at the thumbnails generation part.

Sorry, this is maybe not as easy as you would expect but I cant' come up with something else for now

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

No branches or pull requests

2 participants