Skip to content

Add link to code in Gallery#312

Merged
vincentarelbundock merged 9 commits intograntmcdermott:mainfrom
etiennebacher:gallery
Feb 13, 2025
Merged

Add link to code in Gallery#312
vincentarelbundock merged 9 commits intograntmcdermott:mainfrom
etiennebacher:gallery

Conversation

@etiennebacher
Copy link
Copy Markdown
Contributor

@etiennebacher etiennebacher commented Feb 10, 2025

Closes #59

To add a new plot in the gallery, it is now required to store the code in "vignettes/gallery_figs/gallery_.R". This is more robust as it doesn't depend on altdoc. If for some reason you switch to pkgdown the vignette and links should keep working. It also re-generates the plots every time docs are rendered, which ensures that the code produces the output displayed in the gallery.

Looks like this (link will work once this is merged):

Screencast.from.2025-02-10.11-41-20.webm

Drive-by: lightbox is now built into quarto so there's no need to use the extension.

@vincentarelbundock vincentarelbundock merged commit 763d634 into grantmcdermott:main Feb 13, 2025
@vincentarelbundock
Copy link
Copy Markdown
Collaborator

Looks amazing! I've been meaning to looking into this. A great change!

Now we just need more examples.

@etiennebacher
Copy link
Copy Markdown
Contributor Author

Now we just need more examples.

I'll leave that to you and other heavy users of tinyplot, which I'm not currently ;)

@vincentarelbundock
Copy link
Copy Markdown
Collaborator

haha, yeah, didn't mean to imply this was on your plate!

At least we've got a great infrastructure now

@grantmcdermott
Copy link
Copy Markdown
Owner

Thanks @etiennebacher!

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.

Make a gallery?

3 participants