Skip to content

Commit 21cb478

Browse files
authored
Fix docs build (Azure#2628)
1 parent cab0ba5 commit 21cb478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline.build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ task BuildRuleDocs Build, Dependencies, {
409409
Recommendation = $_.Info.Recommendation
410410
Pillar = $_.Tag.'Azure.WAF/pillar'
411411
Control = $_.Tag.'Azure.MCSB.v1/control'
412-
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '/', '\')[-1])"
412+
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split @('/', '\'))[-1])"
413413
}
414414
}
415415
$metadata | ConvertTo-Json -Depth 5 | Set-Content -Path ./docs/es/rules/metadata.json -Force;

0 commit comments

Comments
 (0)