Hi Salvo! On Sun, Nov 07, 2021 at 08:26:58PM +0100, Salvo 'LtWorf' Tomaselli wrote: > Package: mkdocs > Version: 1.1.2+dfsg-2 > Severity: normal > Tags: upstream > X-Debbugs-Cc: tipos...@tiscali.it > > Hello, > > I use mkdocs for typedload (python3-typedload) and to generate the website > from markdown text files. > > However I realised that my adblock in the browser complains, because the > "readthedocs" theme included with mkdocs uses css and js files from > cloudflare and is not self contained. > > The js file in question is highlight.js, which seems to be present in > copious copies in the debian archive, mostly in documentation packages. > > For me the ideal would be to align mkdocs with the other packages and vendor > the file rather than link it to an external domain I have no control over. > > The even better solution would probably be to have a package with it, which > can be symlinked by all the packages which use the file.
Please try using dh_mkdocs helper. Its main goal is exactly what you say: replacing use of highlight.js from CDN with a packaged version. https://manpages.debian.org/unstable/mkdocs/dh_mkdocs.1.en.html -- Dmitry Shachnev
signature.asc
Description: PGP signature