mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
replace links in autogenerated docs for better viewing on gitlab
This commit is contained in:
parent
adb967c282
commit
4cbeb4e491
2 changed files with 20 additions and 17 deletions
|
|
@ -11,5 +11,8 @@ let
|
|||
optionsDoc = pkgs.nixosOptionsDoc {
|
||||
options = builtins.removeAttrs optEval.options [ "_module" ];
|
||||
};
|
||||
replaceLinkNamesPattern = ''sR\[/nix/store/[a-z0-9]+-source/R[../R'';
|
||||
replaceLinkContentsPattern = ''sR\(file:///nix/store/[a-z0-9]+-source/R(../R'';
|
||||
in
|
||||
pkgs.runCommand "options-doc.md" {} "cat ${optionsDoc.optionsCommonMark} >> $out"
|
||||
pkgs.runCommand "options-doc.md" {} ''
|
||||
sed -r '${replaceLinkNamesPattern};${replaceLinkContentsPattern}' '${optionsDoc.optionsCommonMark}' >> $out''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue