#1068235 mkdocs: packaged themes require newer version of jquery than is included

#1068235#5
Date:
2024-04-02 12:34:20 UTC
From:
To:
building a mkdocs site using the default mkdocs theme results in html which
tries to include js/jquery-3.6.0.min.js but only js/jquery-1.10.2.min.js exists.

/usr/lib/python3/dist-packages/mkdocs/themes/mkdocs/base.html references it like this:
<script src="{{ 'js/jquery-3.6.0.min.js'|url }}"></script>

but the package doesn't include it:

$ dpkg -L mkdocs | grep jquery
/usr/lib/python3/dist-packages/mkdocs/themes/mkdocs/js/jquery-1.10.2.min.js
/usr/lib/python3/dist-packages/mkdocs/themes/readthedocs/js/jquery-2.1.1.min.js

The readthedocs theme does the same thing (but uses it's version of jquery, 2.1.1).

The resulting site search system is unusuable.

I'm reporting this from an ubuntu system but I have confirmed this bug exists in
debian/sid.

It looks like this bug was introduced in 1.5.2+dfsg-1 when the themes were
upgraded. Somehow the updated jquery files were not committed.

I notice this package depends on libjs-jquery but I'm not sure why as jquery is
vendored with the themes, and libjs-jquery is not quite the right version of
jquery to solve this problem anyway.

#1068235#10
Date:
2024-12-26 15:24:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-mkdocs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1068235@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-mkdocs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 26 Dec 2024 14:38:43 +0000
Source: python-mkdocs
Architecture: source
Version: 1.6.1+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1067156 1068235 1072850 1080750
Changes:
 python-mkdocs (1.6.1+dfsg-1) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Carsten Schoenert ]
   * d/copyright: Adjust Files-Excluded for mkdocs >= 1.6.0
   * d/gbp.conf: Tune filter list here too
   * New upstream version 1.6.0+dfsg
     (Closes: #1072850, #1068235, #1067156)
   * Rebuild patch queue from patch-queue branch
     Adjusted patch:
     debian-hacks/Make-toc.html-look-better-with-default-Bootstrap-theme.patch
     Renamed (and modified) patch:
     debian-hacks/Do-not-assert-that-fonts-directory-exists.patch
     -> debian/patches/debian-hacks/Do-not-assert-that-webfonts-directory-exists.patch
   * d/rules: Clean out folder .mypy_cache in dh_clean
   * d/control: Adjust to libjs-bootstrap5 in bin packages
   * d/missing-sources: Add non minimized source files
     Adding the non minimized sources
     brand.css
     fontawesome.css
     solid.css
     v4-font-face.css
   * d/mkdocs.links: Updating the needed linking to files
   * d/mkdocs-doc.links: Updating the needed linking accordingly
   * d/README.source: Add information about minimized source
   * d/control: Update list of required Depends for bin pkgs
   * d/control: Bump Standards-Version to 4.7.0
   * d/u/metadata: Set Documentation to project website
   * d/control: Let Homepage point to the GitHub project
   * d/mkdocs{,-doc}.lintian-overrides: Adjust the entries
   * d/copyright: Extend information due new files and folders
 .
   [ Colin Watson ]
   * New upstream version 1.6.1+dfsg.
   * docs: Adjust embedded HTML for local browsing.
   * Build-depend on python3-setuptools (closes: #1080750).
   * Fix check-links autopkgtest for changes in 1.6.0.
Checksums-Sha1:
 e0cc8bba7e8cdbe5acb5e6b7a249019d61b9080b 2915 python-mkdocs_1.6.1+dfsg-1.dsc
 82ba47d600e8406c80ab42de46df07946b901ac6 4210407 python-mkdocs_1.6.1+dfsg.orig.tar.gz
 fb8d41b7fe14f5b7be278404c787c1c812eb2622 41888 python-mkdocs_1.6.1+dfsg-1.debian.tar.xz
Checksums-Sha256:
 9ac8ce43c8e12eca44fd20384191596ed8bc95d415b7cdd99fc5af73e0b7d222 2915 python-mkdocs_1.6.1+dfsg-1.dsc
 1420a6bd965c64ec4c0c21226109ca43318502a886fee293d332fdb47abf8276 4210407 python-mkdocs_1.6.1+dfsg.orig.tar.gz
 13596329cd5fe9f72e6b407c5136f1f3019f24a2cb8fec221348636a1e3d74bd 41888 python-mkdocs_1.6.1+dfsg-1.debian.tar.xz
Files:
 1216e4211686e22023e0800a4f711abd 2915 text optional python-mkdocs_1.6.1+dfsg-1.dsc
 5a60231ff5e4ab3554b778fb396aa016 4210407 text optional python-mkdocs_1.6.1+dfsg.orig.tar.gz
 e2d7d9e20eed9291925b23ca73c2c7ca 41888 text optional python-mkdocs_1.6.1+dfsg-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmdta2IACgkQOTWH2X2G
UAtTdw//UGXMOPpyCxjg64Whar6L1Y6ZRK6SRnse9gxaOrUfd9FvDCHFMNeV8ZKf
LZImB6uRhZDnnh5VI5XW/zGBPMlYSxAj3jUm0ZWtmCpClHU406G1Cdhc3HBCB7PZ
I3+WvPTUOsDKedkxAwV7MxzMTlP2POhv/0Op1pcGujWVKi72IfRNWWVCasbOUxxY
OrCYGytz5KOw4BeVZF0SY4U4bXwc0OvuEiJIdNndiEZbqWeAQB60a8givtzzCHz7
TWfHLbBjPEPgMVZ4ZzWZDIySFHb1u9+zztXlybpSBZGLfMMH/hB+mqfHgtmha0Xn
8NjRxG2mQAtO0SDmBH8GGT/31Lvh0Fude+w7HnJMhjrmF3BbTWYsuy2Wh9YWLIUK
VF0/dD+lqLCHtzcqjOm4Ob3I5o0ngdHSiBYL1kJp/+vraA5J4QZVJKxqbtlh3mMz
IHxJcbJACU39n1WjrACtFcW5trZx2a2FJMFvL2KYYcfbRjcGmMjGi5Z88zkAKjMA
WmnLy0RDyNaZVzlhQmG5SYy9P3zBrz7FtWblEnPbk2Q3/KIRgz/IzcmRZ0lRjo4z
WvvhE79PWO4mh5Fl32hKpVNUJH8hbT+yN0bQesDllyYxzX0bw9I3xGw7cIlf+9QN
1AgiVF4ZIDm9RlFwEV7YOF+95ezExgTZgP52ADnk8pM4tzCeQPo=
=oNoP
-----END PGP SIGNATURE-----