Le 25/12/2025 à 14:20, Edward Betts a écrit :
* Package name : dh-removebadges
Version : 0.1
* URL : https://salsa.debian.org/debian/dh-removebadges
* License : GPL-3+
Programming Lang: Perl
Description : debhelper addon to remove remote badges and external
images from documentation
This debhelper addon automatically removes remotely-hosted images (such as
build status badges, coverage badges, version badges from shields.io, GitHub,
GitLab, etc.), iframes, and tracking scripts from documentation files in the
package source tree.
That's a great tool :-) May I suggest expanding the scope to also handle
the repetitive task of replacing the CDN links with local versions for
common JS/CSS libraries, such as Bootstrap and Jquery? That would
probably require injecting the appropriate dependency so as to use the
system-installed version, and should be written such that adding new
replacement patterns doesn't require rewriting code. Maybe the libjs-*
packages themselves could provide the patterns and the replacements, and
dh-removebadges (if it keeps that name) could parse these provided files
as well as its own and act accordingly.
Roland.