From f0ef3e20ad9bb6dd1c0c6a6550048e44d1d0a4a3 Mon Sep 17 00:00:00 2001 From: Thomas Schill <33845624+tms-bananaquit@users.noreply.github.com> Date: Tue, 22 Aug 2023 14:48:39 -0400 Subject: [PATCH 1/4] Update setup.cfg --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 9e193bef..cb73934a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,6 +63,7 @@ dev = sphinxcontrib-bibtex sphinx-rtd-theme tox + wilds format = bandit From 36d65fc4e0886adad86d1274338a1279e89be69e Mon Sep 17 00:00:00 2001 From: Thomas Schill <33845624+tms-bananaquit@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:52:29 -0400 Subject: [PATCH 2/4] Remove wilds dependency --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index cb73934a..9e193bef 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,7 +63,6 @@ dev = sphinxcontrib-bibtex sphinx-rtd-theme tox - wilds format = bandit From 57bde1c1e776ed6347cebfd13ec467b8b26eaf14 Mon Sep 17 00:00:00 2001 From: Thomas Schill <33845624+tms-bananaquit@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:56:26 -0400 Subject: [PATCH 3/4] add nbsphinx execute-never option to wilds_datasets metadata field --- docs/source/examples/nlp/wilds_datasets.ipynb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/examples/nlp/wilds_datasets.ipynb b/docs/source/examples/nlp/wilds_datasets.ipynb index 419e9ae2..044a0bef 100644 --- a/docs/source/examples/nlp/wilds_datasets.ipynb +++ b/docs/source/examples/nlp/wilds_datasets.ipynb @@ -2,7 +2,10 @@ "cells": [ { "cell_type": "markdown", - "metadata": {}, + "metadata": {"nbsphinx": { + "execute": "never" + } + }, "source": [ "#### Overview \n", "\n", From 2ca152d2d27643f8919ba9a7f6335993fb080306 Mon Sep 17 00:00:00 2001 From: Thomas Schill <33845624+tms-bananaquit@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:34:21 -0400 Subject: [PATCH 4/4] revert metadata change, add nb to exclusions in conf.py --- docs/source/conf.py | 3 ++- docs/source/examples/nlp/wilds_datasets.ipynb | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 1f97db8f..7500b475 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -59,7 +59,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ["_build", "**.ipynb_checkpoints"] +exclude_patterns = ["_build", "**.ipynb_checkpoints", "**wilds_datasets.ipynb"] # -- Options for HTML output ------------------------------------------------- @@ -117,6 +117,7 @@ def run_apidoc(_): # Get path to directory containing this file, conf.py. DOCS_DIRECTORY = os.path.dirname(os.path.abspath(getsourcefile(lambda: 0))) + # Resolve the pandoc dependency for the runner. # There may be better options now, since pandoc is available to GitHub actions, # but I'm not sure how to make it talk with nbsphinx. diff --git a/docs/source/examples/nlp/wilds_datasets.ipynb b/docs/source/examples/nlp/wilds_datasets.ipynb index 044a0bef..419e9ae2 100644 --- a/docs/source/examples/nlp/wilds_datasets.ipynb +++ b/docs/source/examples/nlp/wilds_datasets.ipynb @@ -2,10 +2,7 @@ "cells": [ { "cell_type": "markdown", - "metadata": {"nbsphinx": { - "execute": "never" - } - }, + "metadata": {}, "source": [ "#### Overview \n", "\n",