From 1398fc4dc8fd8e844ca23f275e87c988b0aa2c3f Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Wed, 19 Feb 2025 13:51:27 +0000 Subject: [PATCH] doc: use permalinks for option declarations --- docs/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/default.nix b/docs/default.nix index 7b71913b..6929f997 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -38,6 +38,7 @@ let inherit (configuration) options; transformOptions = let + commit = inputs.self.rev or "master"; declarationPrefix = toString inputs.self; in option: @@ -53,7 +54,7 @@ let "declaration not in ${declarationPrefix}: ${declarationString}" { name = "<${declarationWithoutprefix}>"; - url = "https://github.com/danth/stylix/blob/master/${declarationWithoutprefix}"; + url = "https://github.com/danth/stylix/blob/${commit}/${declarationWithoutprefix}"; } ) option.declarations;