[Windows] Update documentation generation to use shared software report module (#6834)

This commit is contained in:
bogdan-damian-bgd
2022-12-30 10:24:22 +01:00
committed by GitHub
parent f7f519dcc4
commit 447c8387a2
10 changed files with 349 additions and 535 deletions

View File

@@ -18,7 +18,7 @@ function Get-NginxVersion {
return $Matches.Version
}
function Get-ApacheMarkdown
function Get-ApacheSection
{
$name = "Apache"
$apachePort = "80"
@@ -35,7 +35,7 @@ function Get-ApacheMarkdown
}
}
function Get-NginxMarkdown
function Get-NginxSection
{
$name = "Nginx"
$nginxPort = "80"
@@ -53,13 +53,8 @@ function Get-NginxMarkdown
}
function Build-WebServersSection {
$output = ""
$output += New-MDHeader "Web Servers" -Level 3
$output += @(
(Get-ApacheMarkdown),
(Get-NginxMarkdown)
) | Sort-Object Name | New-MDTable
$output += New-MDNewLine
return $output
return @(
(Get-ApacheSection),
(Get-NginxSection)
)
}