Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15480

Re: Spinx help needed

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Spinx help needed
Date Thu, 15 Feb 2024 09:50:01 +0100
Message-ID <I7FBn-ahqD-5@gated-at.bofh.it> (permalink)
References <I7EvD-agO7-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Feb 15 08:47:14 2024
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-12.509 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lf1-f42.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Gm-Message-State AOJu0YzwK9DwKRxcPpUd1QeNMDyh7a0zFvC2/hm5rm6VJk0dWojdnaGL ML9C8qCPuy2IanxYYrvPGJZVL+q0+V3wAk3kaDKepHyKwmym3WOMB+6ZGpPfi7E=
X-Google-SMTP-Source AGHT+IHE/fxWjyIZqmKJODlkgXN2/9tXKhmaY/iMmM4EoNqXPEsqWmMIdaTyikKUgcAZmufVOz9C2g==
X-Received by 2002:a05:6512:65:b0:511:9fd7:532b with SMTP id i5-20020a056512006500b005119fd7532bmr1125319lfo.8.1707986809681; Thu, 15 Feb 2024 00:46:49 -0800 (PST)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qgJENI485Q/5PQ6Z"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/21453
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/Zc3PdaySC3Uovqfj@mitya57.me
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Debian Python <debian-python@lists.debian.org>, 1056419@bugs.debian.org, 1058311@bugs.debian.org
X-Original-Date Thu, 15 Feb 2024 11:46:45 +0300
X-Original-Message-ID <Zc3PdaySC3Uovqfj@mitya57.me>
X-Original-References <Zc2_QiwnLXbWiMed@an3as.eu>
Xref csiph.com linux.debian.maint.python:15480 linux.debian.bugs.dist:1186262

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Andreas!

On Thu, Feb 15, 2024 at 08:37:38AM +0100, Andreas Tille wrote:
> Control: tags -1 pending
> 
> Hi,
> 
> I pushed fixes for #1056419 and #1058311 to Git and I think should be
> fixed as well.  The only remaining build problem is new and caused by
> sphinx[1]:
> 
>   dh_sphinxdoc -i -O--buildsystem=pybuild
> dh_sphinxdoc: error: debian/python-lmfit-doc/usr/share/doc/python3-lmfit/html/search.html top-level node does not have data-content_root attribute
> 
> Unfortunately I have no idea how to fix this.  Any ideas?

lmfit-py ships a vendored copy of sphinx13 theme [1], which was copied from
Sphinx source code with a minor modification in 2020 [2] and rebased in
January 2022 [3]. However, there were more Sphinx releases since that month,
and the theme needs to be updated for compatibility with them.

In particular, the basic_layout.html file misses the change which was made
in Sphinx commit [4], without which the search will not work. There is a
comment under that commit which illustrates how exactly it will not work:
contentRoot will be undefined, and the browser will attempt to make requests
to a URL that has "undefined" in it. dh_sphinxdoc catches such issues and
produces an error about them.

So, to fix this issue, you should copy sphinx/themes/basic/layout.html from
the latest stable version of Sphinx to lmfit-py's basic_layout.html, applying
the one-line change which is described in [2] and [3].

[1]: doc/sphinx/theme/sphinx13/*
[2]: https://github.com/lmfit/lmfit-py/commit/29e4712036606913149e16b246340a7fbedd8829
[3]: https://github.com/lmfit/lmfit-py/commit/e2418377c9870e02c820d0fe40d2232187864a81
[4]: https://github.com/sphinx-doc/sphinx/commit/8e730ae303ae686705ea12f44ef11da926a87cf5

--
Dmitry Shachnev

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Spinx help needed Andreas Tille <andreas@an3as.eu> - 2024-02-15 08:40 +0100
  Re: Spinx help needed c.buhtz@posteo.jp - 2024-02-15 09:20 +0100
  Re: Spinx help needed Dmitry Shachnev <mitya57@debian.org> - 2024-02-15 09:50 +0100
    Re: Spinx help needed Andreas Tille <andreas@an3as.eu> - 2024-02-15 19:20 +0100
      Re: Spinx help needed Dmitry Shachnev <mitya57@debian.org> - 2024-02-15 20:00 +0100
        Re: Spinx help needed Andreas Tille <andreas@an3as.eu> - 2024-02-15 20:10 +0100

csiph-web