From 154fd0e94e52ba1ee2a85c7c234cca367b67418c Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:37:11 +0200 Subject: [PATCH] FIX: rename templates to `*.rst.jinja` (#25) --- .cspell.json | 2 +- .vscode/settings.json | 3 +-- pyproject.toml | 2 +- .../templates/{module.rst_t => module.rst.jinja} | 0 .../templates/{package.rst_t => package.rst.jinja} | 0 src/sphinx_api_relink/templates/{toc.rst_t => toc.rst.jinja} | 0 6 files changed, 3 insertions(+), 4 deletions(-) rename src/sphinx_api_relink/templates/{module.rst_t => module.rst.jinja} (100%) rename src/sphinx_api_relink/templates/{package.rst_t => package.rst.jinja} (100%) rename src/sphinx_api_relink/templates/{toc.rst_t => toc.rst.jinja} (100%) diff --git a/.cspell.json b/.cspell.json index bcc34ed..37eebea 100644 --- a/.cspell.json +++ b/.cspell.json @@ -14,7 +14,7 @@ "transisions" ], "ignorePaths": [ - "**/*.rst_t", + "**/*.rst.jinja", "**/.cspell.json", ".editorconfig", ".envrc", diff --git a/.vscode/settings.json b/.vscode/settings.json index 2224708..fcc4f54 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -37,8 +37,7 @@ "diffEditor.experimental.showMoves": true, "editor.formatOnSave": true, "files.associations": { - "**/pixi.lock": "yaml", - "*.rst_t": "jinja" + "**/pixi.lock": "yaml" }, "files.watcherExclude": { "**/*_cache/**": true, diff --git a/pyproject.toml b/pyproject.toml index b77b038..c5cae5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ package-dir = {"" = "src"} [tool.setuptools.package-data] "*" = [ "py.typed", - "templates/*.rst_t", + "templates/*.rst.jinja", ] [tool.setuptools.packages.find] diff --git a/src/sphinx_api_relink/templates/module.rst_t b/src/sphinx_api_relink/templates/module.rst.jinja similarity index 100% rename from src/sphinx_api_relink/templates/module.rst_t rename to src/sphinx_api_relink/templates/module.rst.jinja diff --git a/src/sphinx_api_relink/templates/package.rst_t b/src/sphinx_api_relink/templates/package.rst.jinja similarity index 100% rename from src/sphinx_api_relink/templates/package.rst_t rename to src/sphinx_api_relink/templates/package.rst.jinja diff --git a/src/sphinx_api_relink/templates/toc.rst_t b/src/sphinx_api_relink/templates/toc.rst.jinja similarity index 100% rename from src/sphinx_api_relink/templates/toc.rst_t rename to src/sphinx_api_relink/templates/toc.rst.jinja