Skip to content

Commit ccf91ad

Browse files
committed
Update prepare-pages.ps1
1 parent 84ef945 commit ccf91ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pipelines/Scripts/prepare-pages.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Add-Content -Path $destination -Value (Get-Content -Path (Join-Path $ProjectRoot
7676
# We leave them checked-in so they render correctly in the GitHub repo, but we convert them for Pages
7777
Get-ChildItem -Path (Join-Path $docs "*" "*.md") -Recurse | ForEach-Object {
7878
$fileContent = Get-Content -Path $_
79-
Set-Content -Path $_ -Value ($fileContent -replace "> \[!(\w+)\]", { "{: .$("$($_.Groups[1])".ToLower()) }" })
79+
Set-Content -Path $_ -Value ($fileContent -replace "> \[!(\w+)\]", { "{: .$("$($_.Groups[1])".ToLower()) }" } -replace "docs/", "")
8080
}
8181

8282
# Loop through package directories and copy documentation

0 commit comments

Comments
 (0)