Hello community,
here is the log from the commit of package python-nbsphinx for openSUSE:Factory checked in at 2020-07-01 14:27:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbsphinx (Old)
and /work/SRC/openSUSE:Factory/.python-nbsphinx.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbsphinx"
Wed Jul 1 14:27:25 2020 rev:7 rq:818058 version:0.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbsphinx/python-nbsphinx.changes 2020-06-10 00:50:05.507207998 +0200
+++ /work/SRC/openSUSE:Factory/.python-nbsphinx.new.3060/python-nbsphinx.changes 2020-07-01 14:27:28.522912783 +0200
@@ -1,0 +2,6 @@
+Wed Jul 1 08:45:30 UTC 2020 - Marketa Calabkova
+
+- Update to 0.7.1
+ * Avoid links on scaled images
+
+-------------------------------------------------------------------
Old:
----
nbsphinx-0.7.0.tar.gz
New:
----
nbsphinx-0.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nbsphinx.spec ++++++
--- /var/tmp/diff_new_pack.cXkmuS/_old 2020-07-01 14:27:29.006914283 +0200
+++ /var/tmp/diff_new_pack.cXkmuS/_new 2020-07-01 14:27:29.010914296 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-nbsphinx
-Version: 0.7.0
+Version: 0.7.1
Release: 0
Summary: Jupyter Notebook Tools for Sphinx
License: MIT
++++++ nbsphinx-0.7.0.tar.gz -> nbsphinx-0.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/NEWS.rst new/nbsphinx-0.7.1/NEWS.rst
--- old/nbsphinx-0.7.0/NEWS.rst 2020-05-08 13:42:27.000000000 +0200
+++ new/nbsphinx-0.7.1/NEWS.rst 2020-06-16 19:00:15.000000000 +0200
@@ -1,3 +1,6 @@
+Version 0.7.1 (2020-06-16):
+ * Avoid links on scaled images
+
Version 0.7.0 (2020-05-08):
* Warnings can be suppressed with ``suppress_warnings``.
* ``<img>`` tags are handled in Markdown cells; the ``alt``, ``width``,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/PKG-INFO new/nbsphinx-0.7.1/PKG-INFO
--- old/nbsphinx-0.7.0/PKG-INFO 2020-05-08 13:45:10.372964600 +0200
+++ new/nbsphinx-0.7.1/PKG-INFO 2020-06-16 19:01:18.869664700 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: nbsphinx
-Version: 0.7.0
+Version: 0.7.1
Summary: Jupyter Notebook Tools for Sphinx
Home-page: https://nbsphinx.readthedocs.io/
Author: Matthias Geier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/doc/conf.py new/nbsphinx-0.7.1/doc/conf.py
--- old/nbsphinx-0.7.0/doc/conf.py 2020-05-07 14:56:57.000000000 +0200
+++ new/nbsphinx-0.7.1/doc/conf.py 2020-06-14 21:15:21.000000000 +0200
@@ -22,9 +22,6 @@
# Don't add .txt suffix to source files:
html_sourcelink_suffix = ''
-# Work-around until https://github.com/sphinx-doc/sphinx/issues/4229 is solved:
-html_scaled_image_link = False
-
# List of arguments to be passed to the kernel that executes the notebooks:
nbsphinx_execute_arguments = [
"--InlineBackend.figure_formats={'svg', 'pdf'}",
@@ -49,7 +46,7 @@
This page was generated from
<a class="reference external" href="https://github.com/spatialaudio/nbsphinx/blob/{{ env.config.release|e }}/{{ docname|e }}">{{ docname|e }}</a>.
Interactive online version:
- <a href="https://mybinder.org/v2/gh/spatialaudio/nbsphinx/{{ env.config.release|e }}?filepath={{ docname|e }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>.
+ <span style="white-space: nowrap;"><a href="https://mybinder.org/v2/gh/spatialaudio/nbsphinx/{{ env.config.release|e }}?filepath={{ docname|e }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>.</span>
<script>
if (document.location.host) {
$(document.currentScript).replaceWith(
@@ -100,6 +97,7 @@
project = 'nbsphinx'
author = 'Matthias Geier'
copyright = '2020, ' + author
+html_show_copyright = False
linkcheck_ignore = [
r'http://localhost:\d+/',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/doc/markdown-cells.ipynb new/nbsphinx-0.7.1/doc/markdown-cells.ipynb
--- old/nbsphinx-0.7.0/doc/markdown-cells.ipynb 2020-04-26 19:18:32.000000000 +0200
+++ new/nbsphinx-0.7.1/doc/markdown-cells.ipynb 2020-06-12 09:32:09.000000000 +0200
@@ -292,7 +292,7 @@
" for installation instructions.\n",
"\n",
" The external programs `inkscape` or `rsvg-convert`\n",
- " (Debian/Ubuntu package `librsvg2-bin`)\n",
+ " (Debian/Ubuntu package `librsvg2-bin`; `conda` package `librsvg`)\n",
" are needed, respectively.\n",
"\n",
"* `'sphinx.ext.imgconverter'`:\n",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/doc/usage.ipynb new/nbsphinx-0.7.1/doc/usage.ipynb
--- old/nbsphinx-0.7.0/doc/usage.ipynb 2020-05-08 13:26:03.000000000 +0200
+++ new/nbsphinx-0.7.1/doc/usage.ipynb 2020-06-16 18:50:51.000000000 +0200
@@ -152,20 +152,6 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "#### `html_scaled_image_link`\n",
- "\n",
- "As a work-around -- until https://github.com/sphinx-doc/sphinx/issues/4229 is solved --\n",
- "you should set [html_scaled_image_link](http://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sc...) to `False`:\n",
- "\n",
- "```python\n",
- "html_scaled_image_link = False\n",
- "```"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
"#### `html_sourcelink_suffix`\n",
"\n",
"\n",
@@ -769,10 +755,6 @@
"\n",
"### 3rd-Party Themes\n",
"\n",
- "* [alabaster_jupyterhub](https://github.com/jupyterhub/alabaster-jupyterhub):\n",
- " [example](https://nbsphinx.readthedocs.io/en/alabaster-jupyterhub-theme/),\n",
- " [usage](https://github.com/spatialaudio/nbsphinx/compare/alabaster-jupyterhub-theme^...alabaster-jupyterhub-theme)\n",
- " \n",
"* [basicstrap](https://pythonhosted.org/sphinxjp.themes.basicstrap/):\n",
" [example](https://nbsphinx.readthedocs.io/en/basicstrap-theme/),\n",
" [usage](https://github.com/spatialaudio/nbsphinx/compare/basicstrap-theme^...basicstrap-theme)\n",
@@ -801,10 +783,6 @@
" [example](https://nbsphinx.readthedocs.io/en/guzzle-theme/),\n",
" [usage](https://github.com/spatialaudio/nbsphinx/compare/guzzle-theme^...guzzle-theme)\n",
"\n",
- "* [julia](https://github.com/JuliaLang/JuliaDoc):\n",
- " [example](https://nbsphinx.readthedocs.io/en/julia-theme/),\n",
- " [usage](https://github.com/spatialaudio/nbsphinx/compare/julia-theme^...julia-theme)\n",
- "\n",
"* [jupyter](https://github.com/jupyter/jupyter-sphinx-theme/):\n",
" [example](https://nbsphinx.readthedocs.io/en/jupyter-theme/),\n",
" [usage](https://github.com/spatialaudio/nbsphinx/compare/jupyter-theme^...jupyter-theme)\n",
@@ -829,6 +807,10 @@
" [example](https://nbsphinx.readthedocs.io/en/sizzle-theme/),\n",
" [usage](https://github.com/spatialaudio/nbsphinx/compare/sizzle-theme^...sizzle-theme)\n",
"\n",
+ "* [sphinx_book_theme](https://sphinx-book-theme.readthedocs.io/):\n",
+ " [example](https://nbsphinx.readthedocs.io/en/sphinx-book-theme/),\n",
+ " [usage](https://github.com/spatialaudio/nbsphinx/compare/sphinx-book-theme^...sphinx-book-theme)\n",
+ "\n",
"* [sphinx_material](https://github.com/bashtage/sphinx-material):\n",
" [example](https://nbsphinx.readthedocs.io/en/material-theme/),\n",
" [usage](https://github.com/spatialaudio/nbsphinx/compare/material-theme^...material-theme)\n",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/src/nbsphinx.egg-info/PKG-INFO new/nbsphinx-0.7.1/src/nbsphinx.egg-info/PKG-INFO
--- old/nbsphinx-0.7.0/src/nbsphinx.egg-info/PKG-INFO 2020-05-08 13:45:10.000000000 +0200
+++ new/nbsphinx-0.7.1/src/nbsphinx.egg-info/PKG-INFO 2020-06-16 19:01:18.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: nbsphinx
-Version: 0.7.0
+Version: 0.7.1
Summary: Jupyter Notebook Tools for Sphinx
Home-page: https://nbsphinx.readthedocs.io/
Author: Matthias Geier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbsphinx-0.7.0/src/nbsphinx.py new/nbsphinx-0.7.1/src/nbsphinx.py
--- old/nbsphinx-0.7.0/src/nbsphinx.py 2020-05-08 13:43:41.000000000 +0200
+++ new/nbsphinx-0.7.1/src/nbsphinx.py 2020-06-16 18:58:17.000000000 +0200
@@ -23,7 +23,7 @@
https://nbsphinx.readthedocs.io/
"""
-__version__ = '0.7.0'
+__version__ = '0.7.1'
import collections.abc
import copy
@@ -157,6 +157,7 @@
.. image:: {{ output.metadata.filenames[datatype] | posix_path }}
{%- if datatype in output.metadata %}
+ :class: no-scaled-link
{%- set width = output.metadata[datatype].width %}
{%- if width %}
:width: {{ width }}
@@ -1264,16 +1265,24 @@
if 'src' not in attrs:
return
img_path = nbconvert.filters.posix_path(attrs['src'])
+ if img_path.startswith('data'):
+ # Allow multi-line data, see issue #474
+ img_path = img_path.replace('\n', '')
lines = ['image:: ' + img_path]
indent = ' ' * 4
+ classes = []
if 'class' in attrs:
- lines.append(indent + ':class: ' + attrs['class'])
+ classes.append(attrs['class'])
if 'alt' in attrs:
lines.append(indent + ':alt: ' + attrs['alt'])
if 'width' in attrs:
lines.append(indent + ':width: ' + attrs['width'])
if 'height' in attrs:
lines.append(indent + ':height: ' + attrs['height'])
+ if {'width', 'height'}.intersection(attrs):
+ classes.append('no-scaled-link')
+ if classes:
+ lines.append(indent + ':class: ' + ' '.join(classes))
definition = '\n'.join(lines)
hex_id = uuid.uuid4().hex