mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

badges are evaluated at build-time - this is suboptimal

Open parmentelat opened this issue 1 month ago • 0 comments

Description

When inserting a dynamic badge - one that retrieves info that is likely to change over time, e.g. Issue Status using this markdown

[![Issue Status](https://img.shields.io/github/issues/detail/state/jupyter-book/mystmd/2320)](https://github.com/jupyter-book/mystmd/issues/2320)

what I observe is, it seems, the URL is probed once at build time and its result is stored and packaged as a static svg in the build output

meaning that the badge is not going to reflect current data, but rather data as it was at build-time

am I correct ? is this intentional ?

Proposed solution

can we can agree this behaviour is suboptimal and the badge should probe the url at load-time when reading the published website ?

parmentelat avatar Oct 06 '25 11:10 parmentelat