Fix docs build (#2632)
This commit is contained in:
Родитель
21cb478228
Коммит
cd25f0a4bc
|
@ -384,7 +384,7 @@ task BuildRuleDocs Build, Dependencies, {
|
|||
Recommendation = $_.Info.Recommendation
|
||||
Pillar = $_.Tag.'Azure.WAF/pillar'
|
||||
Control = $_.Tag.'Azure.MCSB.v1/control'
|
||||
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '/')[-1])"
|
||||
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '[/\\]')[-1])"
|
||||
}
|
||||
}
|
||||
$metadata | ConvertTo-Json -Depth 5 | Set-Content -Path ./docs/en/rules/metadata.json -Force;
|
||||
|
@ -409,7 +409,7 @@ task BuildRuleDocs Build, Dependencies, {
|
|||
Recommendation = $_.Info.Recommendation
|
||||
Pillar = $_.Tag.'Azure.WAF/pillar'
|
||||
Control = $_.Tag.'Azure.MCSB.v1/control'
|
||||
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split @('/', '\'))[-1])"
|
||||
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '[/\\]')[-1])"
|
||||
}
|
||||
}
|
||||
$metadata | ConvertTo-Json -Depth 5 | Set-Content -Path ./docs/es/rules/metadata.json -Force;
|
||||
|
|
Загрузка…
Ссылка в новой задаче