From 5f12da5092f9be94ad73baf61df0c073a5635226 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Fri, 22 Sep 2023 15:49:24 +0200 Subject: [PATCH 1/3] Add configuration to md link check and ignore Documenter (at)ref --- .markdown-link-config.json | 7 +++++++ .pre-commit-config.yaml | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 .markdown-link-config.json diff --git a/.markdown-link-config.json b/.markdown-link-config.json new file mode 100644 index 00000000..de14e9ec --- /dev/null +++ b/.markdown-link-config.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "@ref" + } + ] +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 084d359d..fd61345f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,3 +51,5 @@ repos: rev: v3.11.2 hooks: - id: markdown-link-check + args: + - --config=.markdown-link-config.json From 37462db03f1eb21833024fa9048f1d490e783a5c Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Fri, 22 Sep 2023 15:49:54 +0200 Subject: [PATCH 2/3] Change md lint to fix --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd61345f..49f1c39c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.37.0 hooks: - - id: markdownlint + - id: markdownlint-fix - repo: https://github.com/citation-file-format/cffconvert rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c hooks: From f587777aef186a83644e813be1851e0a79011fe4 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Fri, 22 Sep 2023 15:52:57 +0200 Subject: [PATCH 3/3] Only ignore Project.toml, not all toml --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index 73dd09c7..9118e426 100644 --- a/copier.yml +++ b/copier.yml @@ -62,6 +62,6 @@ _skip_if_exists: - "**/*.jl" - "!docs/make.jl" - "**/*.md" - - "**/*.toml" + - "**/Project.toml" - CITATION.cff - LICENSE