Package: mkdocs-bootstrap
Version: 0.2.0+dfsg-0.1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

the current version of mkdocs-bootstrap in the archive is broken and
does not work with the version of mkdocs that we have.

Example:

  $ tail -n 1000 mkdocs.yml docs/index.md
  ==> mkdocs.yml <==
  site_name: my documentation
  theme:
    name: bootstrap
  nav:
  - Start: index.md

  ==> docs/index.md <==
  # Hello, world
  $ mkdocs build
  ERROR   -  Config value: 'theme'. Error: The theme 'bootstrap' does not 
appear to have a configuration file. Please upgrade to a current version of the 
theme.

  Aborted with 1 Configuration Errors!

I'm attaching a very basic autopkgtest that reproduces the problem. This
can be reproduced on both buster and sid.

I see that the git repository has a new upstream version that would
work, but hasn't been uploaded for almost 2 years. I'm copying Dmitry,
who did that work, in this bug report.


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64, i386

Kernel: Linux 5.8.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mkdocs-bootstrap depends on:
ii  fonts-font-awesome     5.0.10+really4.7.0~dfsg-2
ii  libjs-bootstrap        3.4.1+dfsg-1
ii  libjs-highlight.js     9.12.0+dfsg1-5
ii  libjs-jquery           3.5.1+dfsg-4
ii  python3                3.8.2-3
ii  python3-pkg-resources  49.3.1-2

mkdocs-bootstrap recommends no packages.

mkdocs-bootstrap suggests no packages.

-- no debconf information
From 6aedd2b3652394ced9cb3640f4250dc6f05bfad4 Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <terce...@debian.org>
Date: Sun, 4 Oct 2020 11:40:42 -0300
Subject: [PATCH] Add minimal autopkgtest

This verifies that building a very basic documentation with this theme
works.
---
 debian/tests/control    |  2 ++
 debian/tests/smoke-test | 29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100644 debian/tests/smoke-test

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..1044336
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Restrictions: superficial, allow-stderr
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100644
index 0000000..17618f3
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+set -eu
+
+tmpdir="${AUTOPKGTEST_TMP:-}"
+if [ -z "${tmpdir}" ]; then
+  tmpdir="$(mktemp -d)"
+  trap 'rm -rf $tmpdir' INT TERM EXIT
+fi
+
+cd "${tmpdir}"
+
+cat > mkdocs.yml <<CONF
+site_name: my documentation
+theme:
+  name: bootstrap
+nav:
+- Start: index.md
+CONF
+
+mkdir docs
+cat > docs/index.md <<INDEX
+# Hello, world
+INDEX
+
+set -x
+tail -n 1000 mkdocs.yml docs/index.md
+mkdocs build
+test -f site/index.html
-- 
2.28.0

Attachment: signature.asc
Description: PGP signature

Reply via email to