File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
3838Get-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
You can’t perform that action at this time.
0 commit comments