Package: mkdocs
Version: 1.5.3+dfsg-1
Severity: important
X-Debbugs-Cc: j...@johnleach.co.uk

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.



-- System Information:
Debian Release: trixie/sid
  APT prefers noble-updates
  APT policy: (500, 'noble-updates'), (500, 'noble')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-11-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mkdocs depends on:
ii  fonts-font-awesome               5.0.10+really4.7.0~dfsg-4.1
ii  ghp-import                       2.1.0-3
ii  libjs-bootstrap4                 4.6.1+dfsg1-4
ii  libjs-jquery                     3.6.1+dfsg+~3.5.14-1
ii  libjs-lunr                       2.3.9~dfsg-2
ii  libjs-modernizr                  2.6.2+ds1-5
ii  python3 [python3-supported-min]  3.12.1-0ubuntu2
ii  python3-click                    8.1.6-2
ii  python3-importlib-metadata       4.12.0-1
ii  python3-jinja2                   3.1.2-1ubuntu1
ii  python3-livereload               2.6.3-2
ii  python3-lunr                     0.7.0-1
ii  python3-markdown                 3.5.2-1
ii  python3-markupsafe               2.1.5-1build1
ii  python3-mergedeep                1.3.4-3
ii  python3-packaging                23.2-1
ii  python3-pathspec                 0.12.1-1
ii  python3-pkg-resources            68.1.2-2ubuntu1
ii  python3-platformdirs             4.2.0-1
ii  python3-pyyaml-env-tag           0.1-3
ii  python3-typing-extensions        4.10.0-1
ii  python3-watchdog                 3.0.0-1
ii  python3-yaml                     6.0.1-2
ii  sphinx-rtd-theme-common          2.0.0+dfsg-1

mkdocs recommends no packages.

Versions of packages mkdocs suggests:
pn  mkdocs-doc     <none>
ii  nodejs         18.19.1+dfsg-2ubuntu4
ii  python3-babel  2.10.3-3build1

-- no debconf information

Reply via email to