@@ -136,6 +136,42 @@ BuildWorkflow:
136
136
- Publish_GitHub_Wiki_Content
137
137
` ` `
138
138
139
+ # ## `Copy_Source_Wiki_Folder`
140
+
141
+ This build task will copy the content of the wiki source folder if it exist
142
+ (the parameter `WikiSourceFolderName` defaults to `WikiSource`). The wiki
143
+ source folder should be located under the source folder, e.g. `source/WikiSource`.
144
+ The wiki source folder is meant to contain additional documentation that
145
+ will be added to folder `WikiOutput` during build, and then published to
146
+ the wiki during the deploy stage (if either the command `Publish-WikiContent`
147
+ or the task `Publish_GitHub_Wiki_Content` is used).
148
+
149
+ if the `Home.md` is present in the folder specified in `WikiSourceFolderName`
150
+ it will be copied to `WikiOutput` and all module version placeholders (`#.#.#`)
151
+ of the content the file will be replaced with the built module version.
152
+
153
+ # ## `Create_Wiki_Output_Folder`
154
+
155
+ This build task creates the folder `output/WikiContent`.
156
+
157
+ Below is an example how the build task can be used when a repository is
158
+ based on the [Sampler](https://github.com/gaelcolas/Sampler) project.
159
+
160
+ ` ` ` yaml
161
+ BuildWorkflow:
162
+ '.':
163
+ - build
164
+
165
+ docs:
166
+ - Create_Wiki_Output_Folder
167
+ - Generate_Markdown_For_Public_Commands
168
+ - Clean_Markdown_Of_Public_Commands
169
+ - Copy_Source_Wiki_Folder
170
+ - Generate_Wiki_Sidebar
171
+ - Clean_Markdown_Metadata
172
+ - Package_Wiki_Content
173
+ ` ` `
174
+
139
175
# ## `Generate_Conceptual_Help`
140
176
141
177
This build task runs the command `New-DscResourcePowerShellHelp`.
@@ -304,22 +340,14 @@ BuildWorkflow:
304
340
305
341
# ## `Generate_Wiki_Content`
306
342
307
- This build task runs the command `New-DscResourceWikiPage` to build
308
- documentation for DSC resources.
343
+ This is a metatask that runs the task (in order) :
309
344
310
- The task will also copy the content of the wiki source folder if it exist
311
- (the parameter `WikiSourceFolderName` defaults to `WikiSource`). The wiki
312
- source folder should be located under the source folder, e.g. `source/WikiSource`.
313
- The wiki source folder is meant to contain additional documentation that
314
- will be added to folder `WikiOutput` during build, and then published to
315
- the wiki during the deploy stage (if either the command `Publish-WikiContent`
316
- or the task `Publish_GitHub_Wiki_Content` is used).
317
-
318
- if the `Home.md` is present in the folder specified in `WikiSourceFolderName`
319
- it will be copied to `WikiOutput` and all module version placeholders (`#.#.#`)
320
- of the content the file will be replaced with the built module version.
321
-
322
- See the command `New-DscResourceWikiPage` for more information.
345
+ - ` Create_Wiki_Output_Folder`
346
+ - ` Generate_Markdown_For_Public_Commands`
347
+ - ` Generate_External_Help_File_For_Public_Commands`
348
+ - ` Clean_Markdown_Of_Public_Commands`
349
+ - ` Generate_Markdown_For_DSC_Resources`
350
+ - ` Copy_Source_Wiki_Folder`
323
351
324
352
Below is an example how the build task can be used when a repository is
325
353
based on the [Sampler](https://github.com/gaelcolas/Sampler) project.
@@ -337,6 +365,29 @@ BuildWorkflow:
337
365
- Generate_Wiki_Content
338
366
` ` `
339
367
368
+ # ## `Generate_Markdown_For_DSC_Resources`
369
+
370
+ This build task runs the command `New-DscResourceWikiPage` to build
371
+ documentation for DSC resources.
372
+
373
+ See the command `New-DscResourceWikiPage` for more information.
374
+
375
+ Below is an example how the build task can be used when a repository is
376
+ based on the [Sampler](https://github.com/gaelcolas/Sampler) project.
377
+
378
+ ` ` ` yaml
379
+ BuildWorkflow:
380
+ '.':
381
+ - build
382
+
383
+ docs:
384
+ - Generate_Conceptual_Help
385
+ - Create_Wiki_Output_Folder
386
+ - Generate_Markdown_For_DSC_Resources
387
+ - Copy_Source_Wiki_Folder
388
+ - Package_Wiki_Content
389
+ ` ` `
390
+
340
391
# ## `Generate_Wiki_Sidebar`
341
392
342
393
This build task runs the command `New-GitHubWikiSidebar` (PlatyPS command) that
0 commit comments