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/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}}/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 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",