Skip to content

Commit

Permalink
doc: use permalinks for option declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
danth committed Feb 23, 2025
1 parent f440107 commit 1398fc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ let
inherit (configuration) options;
transformOptions =
let
commit = inputs.self.rev or "master";
declarationPrefix = toString inputs.self;
in
option:
Expand All @@ -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;

Expand Down

0 comments on commit 1398fc4

Please sign in to comment.