Radish alpha
r
Radicle Improvement Proposals (RIPs)
Radicle
Git (anonymous pull)
Log in to clone via SSH
flake: Use lychee for link checking
Fintan Halpenny committed 23 days ago
commit 7ea99bece25bd5cff30fbd66f27cadc6643c68ae
parent 7e993a9bec13c00a924cb147bca54e16d45aa934
3 files changed +28 -0
modified .gitignore
@@ -1 +1,3 @@
result
+
.lycheecache
+
.direnv/
modified flake.nix
@@ -17,7 +17,21 @@
      devShells.default = pkgs.mkShell {
        buildInputs = [
          pkgs.asciidoctor
+
          pkgs.lychee
        ];
      };
+

+
      checks.links = pkgs.testers.lycheeLinkCheck {
+
        site = pkgs.lib.sources.sourceFilesBySuffices ./. [".md" ".adoc"];
+
        extraConfig = {
+
          extensions = ["md" "adoc"];
+
          include_fragments = true;
+
          exclude = [
+
            "^rad:.*$"
+
            "^web\\+rad:.*$"
+
            "^vscode:.*$"
+
          ];
+
        };
+
      };
    });
}
added lychee.toml
@@ -0,0 +1,12 @@
+
extensions = ["md", "adoc"]
+
include_fragments = true
+
# Exclude custom URI schemes that lychee cannot resolve
+
exclude = [
+
  '^rad:',
+
  '^web\+rad:',
+
  '^vscode:',
+
]
+
include_mail = false
+
timeout = 20
+
max_retries = 2
+
retry_wait_time = 2