mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31: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
|
|
@ -20,7 +20,7 @@ boolean
|
||||||
` true `
|
` true `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ list of (one of “start”, “stop”, “temp”, “vulnix”)
|
||||||
` [ ] `
|
` [ ] `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ attribute set of (submodule)
|
||||||
```
|
```
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -105,7 +105,7 @@ boolean
|
||||||
` true `
|
` true `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ null or string
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -147,7 +147,7 @@ attribute set of (submodule)
|
||||||
` { } `
|
` { } `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ boolean
|
||||||
` true `
|
` true `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -189,7 +189,7 @@ null or floating point number
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -210,7 +210,7 @@ null or string
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ null or floating point number
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -266,7 +266,7 @@ attribute set of (submodule)
|
||||||
```
|
```
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -288,7 +288,7 @@ null or (list of string)
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -309,7 +309,7 @@ null or string
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -331,7 +331,7 @@ null or string
|
||||||
` null `
|
` null `
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -347,7 +347,7 @@ Path to a file containing Telegram api_id, api_hash, and bot token, separated by
|
||||||
string
|
string
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -363,6 +363,6 @@ ID of chat where to send alerts\.
|
||||||
signed integer
|
signed integer
|
||||||
|
|
||||||
*Declared by:*
|
*Declared by:*
|
||||||
- [/nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options\.nix](file:///nix/store/jm7cx941zr5pl113s5nxvfqpaqf89ysl-source/modules/options.nix)
|
- [../modules/options\.nix](../modules/options.nix)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,8 @@ let
|
||||||
optionsDoc = pkgs.nixosOptionsDoc {
|
optionsDoc = pkgs.nixosOptionsDoc {
|
||||||
options = builtins.removeAttrs optEval.options [ "_module" ];
|
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
|
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