From 931e5c6fa8e3e8d527a5e20a530e30850d544510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Mon, 14 Jun 2021 12:01:52 +0200 Subject: [PATCH 1/5] fix myst-parser warning blocking ci --- .gitignore | 1 + requirements/docs.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 65ccbe93ab378..4c616c9948f8a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ docs/source/api docs/source/*.md docs/source/generated docs/source/*/generated +docs/source/notebooks # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/requirements/docs.txt b/requirements/docs.txt index b7e5641697757..79c9428994ef8 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,5 +1,5 @@ sphinx>=4.0 -myst-parser +myst-parser<=0.14 nbsphinx>=0.8.5 ipython[notebook] pandoc>=1.0 From 89b96b1d4c287a912e1fd5d43151d967d9e2dd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Mon, 14 Jun 2021 12:04:56 +0200 Subject: [PATCH 2/5] add note --- requirements/docs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/docs.txt b/requirements/docs.txt index 79c9428994ef8..0cdd8b1de5b6c 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,5 +1,5 @@ sphinx>=4.0 -myst-parser<=0.14 +myst-parser<=0.14 # temporary, until https://github.com/executablebooks/MyST-Parser/issues/394 resolved nbsphinx>=0.8.5 ipython[notebook] pandoc>=1.0 From c6f701d3c71f7e3b5c679bb6282df06b438cb8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Mon, 14 Jun 2021 12:51:19 +0200 Subject: [PATCH 3/5] try better solution --- docs/source/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 58a1a96510dda..a462078968772 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -122,6 +122,12 @@ def _transform_changelog(path_in: str, path_out: str) -> None: nbsphinx_allow_errors = True nbsphinx_requirejs_path = '' + +# myst-parser, forcing to parse all html pages with mathjax +# https://github.com/executablebooks/MyST-Parser/issues/394 +myst_update_mathjax = False + + # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # From f9f947fe802c6e0f28dc2b6c498fd5eb15b9c128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Mon, 14 Jun 2021 12:52:01 +0200 Subject: [PATCH 4/5] revert --- requirements/docs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/docs.txt b/requirements/docs.txt index 0cdd8b1de5b6c..b7e5641697757 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,5 +1,5 @@ sphinx>=4.0 -myst-parser<=0.14 # temporary, until https://github.com/executablebooks/MyST-Parser/issues/394 resolved +myst-parser nbsphinx>=0.8.5 ipython[notebook] pandoc>=1.0 From 80ea31bd0b4b2fee0f027a88cd40c2c61c67a97c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 10:53:52 +0000 Subject: [PATCH 5/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/conf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index a462078968772..613303f478221 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -122,12 +122,10 @@ def _transform_changelog(path_in: str, path_out: str) -> None: nbsphinx_allow_errors = True nbsphinx_requirejs_path = '' - # myst-parser, forcing to parse all html pages with mathjax # https://github.com/executablebooks/MyST-Parser/issues/394 myst_update_mathjax = False - # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: #