From 3cf9baa7e13162e603216b6b4a0082b524aebd29 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Fri, 13 Dec 2019 11:41:44 -0600 Subject: [PATCH 1/2] Keep intersphinx objects.inv after build --- scripts/nbsite_cleandisthtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nbsite_cleandisthtml.py b/scripts/nbsite_cleandisthtml.py index 1d95c476..dae71979 100644 --- a/scripts/nbsite_cleandisthtml.py +++ b/scripts/nbsite_cleandisthtml.py @@ -40,7 +40,7 @@ def IGetFiles(d): except: pass -for file_ in ("objects.inv",): +for file_ in (): f = os.path.join(htmldir,file_) try: if dry_run: From 891ef2480b866beb733ff8964ac75018f1aed08e Mon Sep 17 00:00:00 2001 From: David Hoese Date: Fri, 13 Dec 2019 12:19:41 -0600 Subject: [PATCH 2/2] Update delete test to reflect keeping objects.inv --- nbsite/tests/test_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbsite/tests/test_cmd.py b/nbsite/tests/test_cmd.py index d7fadd58..568bdf48 100644 --- a/nbsite/tests/test_cmd.py +++ b/nbsite/tests/test_cmd.py @@ -429,7 +429,7 @@ def test_build_deletes_by_default(tmp_project_with_docs_skeleton): build('html', str(project / "builtdocs"), project_root=str(project), examples_assets='') assert not (project / "builtdocs" / ".doctrees").is_dir() assert (project / "builtdocs" / "First_Notebook.html").is_file() - assert len(list((project / "builtdocs").iterdir())) == 9 + assert len(list((project / "builtdocs").iterdir())) == 10 @pytest.mark.slow def test_build_with_clean_dry_run_does_not_delete(tmp_project_with_docs_skeleton):