Skip to content

Commit ecebb6b

Browse files
committed
Update prepare-pages.ps1
1 parent 6c26acc commit ecebb6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Pipelines/Scripts/prepare-pages.ps1

Lines changed: 2 additions & 2 deletions
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 "./org.mixedrealitytoolkit.", "")
4141
}
4242

4343
# Loop through package directories and copy documentation
@@ -55,7 +55,7 @@ Get-ChildItem -Path (Join-Path $ProjectRoot "*" "package.json") | ForEach-Object
5555
$packageName = $packageName.Matches[0].Value
5656
$packageFriendlyName = (Select-String -Pattern "`"displayName`": `"(.+)`"" -Path $_ | Select-Object -First 1).Matches.Groups[1].Value
5757
$packagePath = $_.DirectoryName
58-
$packageDocsPath = Join-Path $docs $packageName
58+
$packageDocsPath = Join-Path $docs $packageName.Split('.')[-1]
5959

6060
New-Item -Path $packageDocsPath -ItemType Directory -Force
6161

0 commit comments

Comments
 (0)