From da7c6c41eff8aadbdeadb9cefa9515b764aa1598 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 22 Mar 2024 12:00:43 +0000 Subject: [PATCH] docs: fix github link branch (#1300) Nixvim uses "main" rather than "master". --- docs/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/default.nix b/docs/default.nix index 5829de32..70fa7b79 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -19,8 +19,8 @@ nixvimPath = toString ./..; - gitHubDeclaration = user: repo: subpath: { - url = "https://github.com/${user}/${repo}/blob/master/${subpath}"; + gitHubDeclaration = user: repo: branch: subpath: { + url = "https://github.com/${user}/${repo}/blob/${branch}/${subpath}"; name = "<${repo}/${subpath}>"; }; @@ -32,10 +32,10 @@ decl: if lib.hasPrefix nixvimPath (toString decl) then - gitHubDeclaration "nix-community" "nixvim" + gitHubDeclaration "nix-community" "nixvim" "main" (lib.removePrefix "/" (lib.removePrefix nixvimPath (toString decl))) else if decl == "lib/modules.nix" - then gitHubDeclaration "NixOS" "nixpkgs" decl + then gitHubDeclaration "NixOS" "nixpkgs" "master" decl else decl ) opt.declarations;