Skip to content

Commit f24ba32

Browse files
committed
Update prepare-pages.ps1
1 parent 21b84ae commit f24ba32

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Pipelines/Scripts/prepare-pages.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ Copy-Item -Path (Join-Path $ProjectRoot "images" "*") -Destination $images -Recu
2121
Copy-Item -Path (Join-Path $ProjectRoot "org.mixedrealitytoolkit.standardassets" "Textures" "Logos" "MRTK_Logo_White.png") -Destination $images -Force
2222
Copy-Item -Path (Join-Path $ProjectRoot "org.mixedrealitytoolkit.standardassets" "Textures" "Logos" "IconMRTKLogo.png") -Destination $images -Force
2323

24-
Copy-Item -Path (Join-Path $ProjectRoot "LICENSE.md") -Destination $docs -Force
24+
$licenseDestination = Join-Path $docs "LICENSE.md"
25+
# Create home page, add front matter, and copy content
26+
New-Item -Path $licenseDestination -ItemType File -Force -Value @"
27+
---
28+
title: License
29+
nav_order: 1
30+
parent: Home
31+
---
32+
33+
34+
"@
35+
Add-Content -Path $licenseDestination -Value (Get-Content -Path (Join-Path $ProjectRoot "LICENSE.md"))
2536

2637
$indexDestination = Join-Path $docs "index.md"
2738
# Create home page, add front matter, and copy content

0 commit comments

Comments
 (0)