From eab48409989b50f413df3763113ed7a79fa64ff8 Mon Sep 17 00:00:00 2001 From: Thomas Isensee <26852629+thomasisensee@users.noreply.github.com> Date: Fri, 30 Jan 2026 12:09:46 +0100 Subject: [PATCH 1/2] Remove outdated nbsphinx_link --- {{cookiecutter.project_slug}}/doc/conf.py | 1 - {{cookiecutter.project_slug}}/pyproject.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/doc/conf.py b/{{cookiecutter.project_slug}}/doc/conf.py index 465dd9e..28a81af 100644 --- a/{{cookiecutter.project_slug}}/doc/conf.py +++ b/{{cookiecutter.project_slug}}/doc/conf.py @@ -19,7 +19,6 @@ extensions = [ {%- if cookiecutter.notebooks == "Yes" %} "nbsphinx", - "nbsphinx_link", {%- endif %} "sphinx_mdinclude", "sphinx.ext.autodoc", diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 4a1a6e4..45907a0 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -60,7 +60,6 @@ docs = [ {%- if cookiecutter.notebooks == "Yes" %} "ipykernel", "nbsphinx", - "nbsphinx-link", {%- endif %} "sphinx", "sphinx_mdinclude", From 94092c5db8a4e850e964f26f27849fe0d147f373 Mon Sep 17 00:00:00 2001 From: Thomas Isensee <26852629+thomasisensee@users.noreply.github.com> Date: Fri, 30 Jan 2026 12:19:31 +0100 Subject: [PATCH 2/2] Remove demo.nblink and reference the notebook directly in index.rst --- hooks/post_gen_project.py | 1 - {{cookiecutter.project_slug}}/doc/demo.nblink | 3 --- {{cookiecutter.project_slug}}/doc/index.rst | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 {{cookiecutter.project_slug}}/doc/demo.nblink diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index ebe91e2..e31ada7 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -59,7 +59,6 @@ def conditional_remove(condition, path): conditional_remove("{{ cookiecutter.gitlab_ci }}" == "No", ".gitlab-ci.yml") conditional_remove(not {{ have_precommit }}, ".pre-commit-config.yaml") conditional_remove("{{ cookiecutter.notebooks }}" == "No", "notebooks") -conditional_remove("{{ cookiecutter.notebooks }}" == "No", "doc/demo.nblink") conditional_remove("{{ cookiecutter.commandlineinterface }}" == "No", "src/{{ cookiecutter|modname }}/__main__.py") conditional_remove("{{ cookiecutter.commandlineinterface }}" == "No", "tests/test_cli.py") conditional_remove(os.stat("TODO.md").st_size == 0, "TODO.md") diff --git a/{{cookiecutter.project_slug}}/doc/demo.nblink b/{{cookiecutter.project_slug}}/doc/demo.nblink deleted file mode 100644 index e0294ef..0000000 --- a/{{cookiecutter.project_slug}}/doc/demo.nblink +++ /dev/null @@ -1,3 +0,0 @@ -{ - "path": "../notebooks/demo.ipynb" -} diff --git a/{{cookiecutter.project_slug}}/doc/index.rst b/{{cookiecutter.project_slug}}/doc/index.rst index 3054caa..fb75e29 100644 --- a/{{cookiecutter.project_slug}}/doc/index.rst +++ b/{{cookiecutter.project_slug}}/doc/index.rst @@ -7,7 +7,7 @@ intro {%- if cookiecutter.notebooks == "Yes" %} - demo + ../notebooks/demo.ipynb {%- endif %} api