]> git.ardis.lu - ArdisUtilities/commitdiff
Add "Related Links" section
authorArdis Lu <ardisglu@gmail.com>
Mon, 8 Jan 2024 04:09:46 +0000 (20:09 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 8 Jan 2024 04:09:46 +0000 (20:09 -0800)
ArdisUtilities/ArdisUtilities.psm1

index 3f6dee900e9a23120db3446df458f488d0a92a9e..97f4528d4d719eda83bf1a9590a046107a7ec379 100644 (file)
@@ -801,6 +801,13 @@ function Get-HelpAsMarkdown {
       $output.Add('```')
       $counter++
     }
+
+    if ($null -ne $help.relatedLinks) {
+      $output.Add('## Related Links')
+      foreach ($link in $help.relatedLinks.navigationLink) {
+        $output.Add($link.uri)
+      }
+    }
   }
 
   end {
This page took 0.043913 seconds and 4 git commands to generate.