Skip to content

Commit 84d5251

Browse files
authored
Update documentation.yml (#541)
Correct the indentation for embedded script properly. Fix a missing `$`, exclude `Home.md`.
1 parent b6fb1e2 commit 84d5251

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ jobs:
7474
- name: Post-Process
7575
run: |
7676
foreach ($module in "CoreGraphics","SwiftWin32","SwiftWin32UI") {
77-
Get-ChildItem -Path site\$module -Recurse -File -Include "*.md" -Exclude _Footer.md,_Sidebar.md,index.md | ForEach-Object {
77+
Get-ChildItem -Path site\$module -Recurse -File -Include "*.md" -Exclude Home.md,_Footer.md,_Sidebar.md,index.md | ForEach-Object {
7878
Set-Content $_.FullName -value @"
79-
---
80-
layout: default
81-
title: $(_.BaseName -replace '(?<=\w)_','.')
82-
parent: $($_.Directory.BaseName)
83-
---
84-
"@,$(Get-Content $_.FullName)
79+
---
80+
layout: default
81+
title: $($_.BaseName -replace '(?<=\w)_','.')
82+
parent: $($_.Directory.BaseName)
83+
---
84+
"@,$(Get-Content $_.FullName)
8585
}
8686
}
8787

0 commit comments

Comments
 (0)