Commit 71c21f4
authored
🩹 [Patch]: Update to use
## Description
This pull request introduces several improvements to the documentation
generation process, CI workflows, and PowerShell module metadata. The
most significant changes include enhanced and more robust documentation
generation, updates to GitHub Actions workflows for better security and
linting, and improvements to module help comments for consistency.
**Documentation generation improvements:**
* The `Build-PSModuleDocumentation.ps1` script now generates markdown
help per command, handles documentation file organization to match
source structure, and fixes frontmatter titles for compatibility. This
makes the documentation process more robust and the output more
consistent.
[[1]](diffhunk://#diff-95b236851bd9052577a2cdf569f08e195e7d6cc424f6cb6d074ccc10b2cb7241L50-R75)
[[2]](diffhunk://#diff-95b236851bd9052577a2cdf569f08e195e7d6cc424f6cb6d074ccc10b2cb7241L91-R148)
* The script now uses the full module name
`Microsoft.PowerShell.PlatyPS` for installation, ensuring compatibility.
**GitHub Actions workflow enhancements:**
* The `Action-Test.yml` workflow now requests explicit permissions for
reading contents and writing statuses, uses a full-depth fetch for
checkouts, logs file changes, commits documentation updates, and adds a
markdown linter step.
[[1]](diffhunk://#diff-a12ae5c885b0673c0ff6f70c2670886907590d624626e07da4c52e01aeaf56a4L18-R20)
[[2]](diffhunk://#diff-a12ae5c885b0673c0ff6f70c2670886907590d624626e07da4c52e01aeaf56a4R29-R31)
[[3]](diffhunk://#diff-a12ae5c885b0673c0ff6f70c2670886907590d624626e07da4c52e01aeaf56a4R46-R63)
* The `Linter.yml` workflow disables certain linters for performance and
disables credential persistence for increased security.
[[1]](diffhunk://#diff-482e65806ed9e4a7320f14964764086b91fed4a28d12e4efde1776472e147e79R24)
[[2]](diffhunk://#diff-482e65806ed9e4a7320f14964764086b91fed4a28d12e4efde1776472e147e79R34-R35)
**PowerShell module metadata improvements:**
* Added `.DESCRIPTION` sections to all module functions for better help
output, and added `.NOTES` with control instructions to
`Set-PSModuleTest` and its corresponding public function.
[[1]](diffhunk://#diff-b6253bdc18cdabe21d009dc3778e7ef0d84effe3d28242d670a938b0f710920cR259-R261)
[[2]](diffhunk://#diff-b6253bdc18cdabe21d009dc3778e7ef0d84effe3d28242d670a938b0f710920cR288-R290)
[[3]](diffhunk://#diff-b6253bdc18cdabe21d009dc3778e7ef0d84effe3d28242d670a938b0f710920cR319-R331)
[[4]](diffhunk://#diff-b6253bdc18cdabe21d009dc3778e7ef0d84effe3d28242d670a938b0f710920cR356-R358)
[[5]](diffhunk://#diff-1d4bb1ca6780e5c612c9b2db51bb1c07c381ef6608cd52a7780ec786ad6946cdR10-R15)
Link:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.platyps/new-markdowncommandhelp?view=ps-modulesMicrosoft.PowerShell.PlatyPS for docs generation (#19)1 parent e9f43e3 commit 71c21f4
File tree
6 files changed
+92
-8
lines changed- .github/workflows
- scripts
- helpers
- tests/srcTestRepo
- outputs/module/PSModuleTest
- src/functions/public/SomethingElse
6 files changed
+92
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
52 | 76 | | |
53 | 77 | | |
54 | 78 | | |
| |||
88 | 112 | | |
89 | 113 | | |
90 | 114 | | |
91 | | - | |
| 115 | + | |
| 116 | + | |
92 | 117 | | |
93 | | - | |
| 118 | + | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
97 | 122 | | |
98 | 123 | | |
99 | 124 | | |
100 | | - | |
| 125 | + | |
101 | 126 | | |
102 | 127 | | |
103 | 128 | | |
104 | 129 | | |
105 | 130 | | |
106 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
107 | 140 | | |
| 141 | + | |
108 | 142 | | |
109 | 143 | | |
110 | 144 | | |
111 | 145 | | |
112 | 146 | | |
113 | 147 | | |
114 | | - | |
| 148 | + | |
115 | 149 | | |
116 | 150 | | |
117 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
| |||
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
285 | 291 | | |
286 | 292 | | |
287 | 293 | | |
| |||
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
313 | 322 | | |
314 | 323 | | |
315 | 324 | | |
316 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
317 | 332 | | |
318 | 333 | | |
319 | 334 | | |
| |||
338 | 353 | | |
339 | 354 | | |
340 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
341 | 359 | | |
342 | 360 | | |
343 | 361 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments