[med-svn] [Git][med-team/python-skbio][master] Replace add_javascript() in sphinx config
Andreas Tille (@tille)
gitlab at salsa.debian.org
Wed Oct 13 07:46:35 BST 2021
Andreas Tille pushed to branch master at Debian Med / python-skbio
Commits:
050ec8a7 by Andreas Tille at 2021-10-13T08:46:19+02:00
Replace add_javascript() in sphinx config
- - - - -
3 changed files:
- debian/changelog
- debian/patches/series
- + debian/patches/sphinx_add_javascript.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,5 +1,6 @@
python-skbio (0.5.6-5) UNRELEASED; urgency=medium
+ [ Steffen Moeller ]
* Team upload.
* d/u/metadata: Added refs to registries
* Standards-Version: 4.6.0
@@ -8,6 +9,9 @@ python-skbio (0.5.6-5) UNRELEASED; urgency=medium
(Closes: #991981)
- Improved cleaning to allow repeated builds
+ [ Andreas Tille ]
+ * Replace add_javascript() in sphinx config
+
-- Steffen Moeller <moeller at debian.org> Mon, 06 Sep 2021 17:27:49 +0200
python-skbio (0.5.6-4) unstable; urgency=medium
=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ soften_test
pandas1.1-ordination-fix.patch
pandas1.1-valueerror.patch
local_inventory
+sphinx_add_javascript.patch
=====================================
debian/patches/sphinx_add_javascript.patch
=====================================
@@ -0,0 +1,13 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Wed, 13 Oct 2021 08:44:29 +0200
+Description: add_javascript() was deprecated in v1.8 and removed in v4.0. add_js_file() is a successor of the API.
+
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -514,5 +514,5 @@ _closure()
+ # Add the 'copybutton' javascript, to hide/show the prompt in code
+ # examples, originally taken from scikit-learn's doc/conf.py
+ def setup(app):
+- app.add_javascript('copybutton.js')
++ app.add_js_file('copybutton.js')
+ app.add_stylesheet('style.css')
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/050ec8a7bf6797417381667f45bd9752671cb277
--
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/050ec8a7bf6797417381667f45bd9752671cb277
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211013/c824a87b/attachment-0001.htm>
More information about the debian-med-commit
mailing list