yjunechoe,
@yjunechoe@fosstodon.org avatar

Just switched to rendering my pkg readme examples with {asciicast} to do justice to the countless hours I put into making pretty print methods with {cli} 😊😊😊

https://github.com/yjunechoe/jlmerclusterperm

Readme example using asciicast to capture cli list bullets with original formatting

jonthegeek,
@jonthegeek@fosstodon.org avatar

@yjunechoe They're failing to render for me on the pkgdown site. The images load when I open them in a new tab, but I haven't dug deeper than that.

jonthegeek,
@jonthegeek@fosstodon.org avatar

@yjunechoe Ok, I dug SLIGHTLY deeper. Console is showing messages like this:
🚫 GET https://yjunechoe.github.io/jlmerclusterperm/man/figures/README-/setup-io-dark.svg 404 (Not Found)

yjunechoe,
@yjunechoe@fosstodon.org avatar

@jonthegeek Oh interesting! Let me re-render the whole site (and not just the home) to see if that goes away 🙃

FWIW it works if you swap out "/man" for "/reference" in the broken URL - https://yjunechoe.github.io/jlmerclusterperm/reference/figures/README-/setup-io-dark.svg

That's where the link should point to for dark mode imgs. Maybe the light/dark mode auto-switch is only designed to work with github out of the box, and need extra care for it to work in pkgdown... Will dig into it!

gaborcsardi,
@gaborcsardi@fosstodon.org avatar
yjunechoe,
@yjunechoe@fosstodon.org avatar

@gaborcsardi @jonthegeek Oh wow this is great!! Thanks for the pointers!

gaborcsardi,
@gaborcsardi@fosstodon.org avatar

@yjunechoe @jonthegeek Np. Let me know if you have issues.

Btw. bonus feature: on GH you get light images in light mode and dark images in dark mode: https://github.com/r-lib/callr#readme

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • modclub
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • anitta
  • kavyap
  • GTA5RPClips
  • cubers
  • JUstTest
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • Leos
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines