mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Update documentation generation to use shared software report module (#6834)
This commit is contained in:
committed by
GitHub
parent
f7f519dcc4
commit
447c8387a2
@@ -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)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user