From 7dea5052c42fda09f0bb20eef83d1c8c5fc9db7c Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 8 Jul 2019 10:40:54 +0100 Subject: [PATCH 1/3] remove `sphinx.ext.imgconverter` from sphinx auto-builds It causes builds containing SVG output to fail --- .vscode/settings.json | 2 +- ipypublish/__init__.py | 2 +- ipypublish/sphinx/config.yaml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b052764..acdfab6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,7 +21,7 @@ "restructuredtext.updateDelay": 100000, "python.testing.unittestEnabled": false, "python.testing.nosetestsEnabled": false, - "python.testing.pyTestEnabled": true, + "python.testing.pytestEnabled": true, "python.linting.pylintEnabled": false, "python.linting.pylamaEnabled": false, "python.linting.enabled": true, diff --git a/ipypublish/__init__.py b/ipypublish/__init__.py index f62dc9f..505899f 100644 --- a/ipypublish/__init__.py +++ b/ipypublish/__init__.py @@ -1,3 +1,3 @@ from ipypublish.scripts import nb_setup # noqa: F401 -__version__ = '0.10.2' +__version__ = '0.10.3' diff --git a/ipypublish/sphinx/config.yaml b/ipypublish/sphinx/config.yaml index 1fb77ae..f582c89 100644 --- a/ipypublish/sphinx/config.yaml +++ b/ipypublish/sphinx/config.yaml @@ -24,7 +24,6 @@ extensions: [ 'sphinx.ext.mathjax', # convert latex math to html 'sphinxcontrib.bibtex', # allows for :cite: and .. bibligraphy:: 'sphinx.ext.todo', # allows for .. todo:: directive - 'sphinx.ext.imgconverter' # converts svg to pdf in latex output ] # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos: false From a78a3503e388648480d58f861291f08d6a96644f Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 8 Jul 2019 10:40:54 +0100 Subject: [PATCH 2/3] remove `sphinx.ext.imgconverter` from sphinx auto-builds It causes builds containing SVG output to fail --- .vscode/settings.json | 2 +- ipypublish/__init__.py | 2 +- ipypublish/sphinx/config.yaml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b052764..acdfab6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,7 +21,7 @@ "restructuredtext.updateDelay": 100000, "python.testing.unittestEnabled": false, "python.testing.nosetestsEnabled": false, - "python.testing.pyTestEnabled": true, + "python.testing.pytestEnabled": true, "python.linting.pylintEnabled": false, "python.linting.pylamaEnabled": false, "python.linting.enabled": true, diff --git a/ipypublish/__init__.py b/ipypublish/__init__.py index f62dc9f..505899f 100644 --- a/ipypublish/__init__.py +++ b/ipypublish/__init__.py @@ -1,3 +1,3 @@ from ipypublish.scripts import nb_setup # noqa: F401 -__version__ = '0.10.2' +__version__ = '0.10.3' diff --git a/ipypublish/sphinx/config.yaml b/ipypublish/sphinx/config.yaml index 1fb77ae..f582c89 100644 --- a/ipypublish/sphinx/config.yaml +++ b/ipypublish/sphinx/config.yaml @@ -24,7 +24,6 @@ extensions: [ 'sphinx.ext.mathjax', # convert latex math to html 'sphinxcontrib.bibtex', # allows for :cite: and .. bibligraphy:: 'sphinx.ext.todo', # allows for .. todo:: directive - 'sphinx.ext.imgconverter' # converts svg to pdf in latex output ] # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos: false From ebf01aa53480a6fa2823d16eb07c726781c8f9ff Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 8 Jul 2019 11:14:43 +0100 Subject: [PATCH 3/3] add additional known sphinx roles --- ipypublish/filters_pandoc/definitions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipypublish/filters_pandoc/definitions.py b/ipypublish/filters_pandoc/definitions.py index a60661b..fbfa8f5 100644 --- a/ipypublish/filters_pandoc/definitions.py +++ b/ipypublish/filters_pandoc/definitions.py @@ -65,4 +65,6 @@ ) RST_KNOWN_ROLES = ( - "py:attr", "py:meth", "py:class", "py:func", "py:mod") + "py:attr", "py:meth", "py:class", "py:func", "py:mod", + "attr", "meth", "class", "func", "mod", + "download", "doc", "file", "program")