File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 70
70
swift doc generate Sources\SwiftWin32 --module-name SwiftWin32 --output site\SwiftWin32 --base-url https://compnerd.github.io/swift-win32/SwiftWin32
71
71
swift doc generate Sources\SwiftWin32UI --module-name SwiftWin32UI --output site\SwiftWin32UI --base-url https://compnerd.github.io/swift-win32/SwiftWin32UI
72
72
73
+ - name : Post-Process
74
+ run : |
75
+ foreach ($module in "CoreGraphics","SwiftWin32","SwiftWin32UI") {
76
+ Get-ChildItem -Path site\$module -Recurse -File -Include "*.md" -Exclude _Footer.md,_Sidebar.md,index.md | ForEach-Object {
77
+ Set-Content $_.FullName -value @"
78
+ ---
79
+ layout: default
80
+ title: $(_.BaseName -replace '(?<=\w)_','.')
81
+ parent: $($_.Directory.BaseName)
82
+ ---
83
+ "@,$(Get-Content $_.FullName)
84
+ }
85
+ }
86
+
73
87
- name : Deploy
74
88
run : |
75
89
git -C site add --all
You can’t perform that action at this time.
0 commit comments