Skip to content

Commit cd25f0a

Browse files
authored
Fix docs build (Azure#2632)
1 parent 21cb478 commit cd25f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline.build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ task BuildRuleDocs Build, Dependencies, {
384384
Recommendation = $_.Info.Recommendation
385385
Pillar = $_.Tag.'Azure.WAF/pillar'
386386
Control = $_.Tag.'Azure.MCSB.v1/control'
387-
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '/')[-1])"
387+
Source = "https://github.com/Azure/PSRule.Rules.Azure/blob/main/src/PSRule.Rules.Azure/rules/$(($_.Source.Path -split '[/\\]')[-1])"
388388
}
389389
}
390390
$metadata | ConvertTo-Json -Depth 5 | Set-Content -Path ./docs/en/rules/metadata.json -Force;
@@ -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)