Skip to content

Commit 96abbbc

Browse files
committed
Update prepare-pages.ps1
1 parent 5d2e782 commit 96abbbc

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
@@ -37,7 +37,7 @@ Add-Content -Path $indexDestination -Value (Get-Content -Path (Join-Path $Projec
3737
# We leave them checked-in so they render correctly in the GitHub repo, but we convert them for Pages
3838
Get-ChildItem -Path (Join-Path $docs "*" "*.md") -Recurse | ForEach-Object {
3939
$fileContent = Get-Content -Path $_
40-
Set-Content -Path $_ -Value ($fileContent -replace "> \[!(\w+)\]", { "{: .$("$($_.Groups[1])".ToLower()) }" })
40+
Set-Content -Path $_ -Value ($fileContent -replace "> \[!(\w+)\]", { "{: .$("$($_.Groups[1])".ToLower()) }" } -replace ".md", ".html")
4141
}
4242

4343
# Loop through package directories and copy documentation

0 commit comments

Comments
 (0)