Skip to content

Commit 712c575

Browse files
committed
Convert GitHub admonitions to just-the-docs syntax
1 parent 3dbc006 commit 712c575

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Pipelines/Scripts/prepare-pages.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ parent: Packages
3333
3434
3535
"@
36-
Add-Content -Path "./$packageName.md" -Value (Get-Content -Path (Join-Path $packagePath "README.md"))
36+
$readmeContent = (Get-Content -Path (Join-Path $packagePath "README.md"))
37+
$readmeContent = $readmeContent -replace "> \[!(\w+)\]", { "{: . $("$($_.Groups[1])".ToLower()) }" } # Convert GitHub admonitions to just-the-docs syntax
38+
Add-Content -Path "./$packageName.md" -Value $readmeContent
3739

3840
# Create CHANGELOG, add front matter, and copy content
3941
New-Item -Path "./$packageName.CHANGELOG.md" -Value @"

0 commit comments

Comments
 (0)