Skip to content

Commit fefac0b

Browse files
Merge branch 'main' into asd
2 parents 6b5959d + ab2632b commit fefac0b

6 files changed

Lines changed: 59 additions & 1 deletion

File tree

.github/workflows/Process-PSModule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ permissions:
2727

2828
jobs:
2929
Process-PSModule:
30-
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@ea19a3eb1293246d1b00e4faae1544442c3be0ec # v6.1.1
30+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@d4020f3c9c3621cebae5d8bf4ffaf10f55c1784a # v6.1.2
3131
secrets:
3232
APIKEY: ${{ secrets.APIKEY }}
3333
TestData: >-
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function Get-IndexSectionTest {
2+
<#
3+
.SYNOPSIS
4+
Performs tests on a module.
5+
6+
.DESCRIPTION
7+
Performs tests on a module.
8+
9+
.EXAMPLE
10+
Get-IndexSectionTest -Name 'World'
11+
12+
"Hello, World!"
13+
#>
14+
[CmdletBinding()]
15+
param (
16+
# Name of the person to greet.
17+
[Parameter(Mandatory)]
18+
[string] $Name
19+
)
20+
Write-Output "Hello, $Name!"
21+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Index Section
2+
3+
This section's landing page is provided by an `index.md` file.
4+
5+
When Process-PSModule builds the documentation site, this page becomes the landing page for the **Index Section** group in the navigation on GitHub Pages.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
function Get-NamedSectionTest {
2+
<#
3+
.SYNOPSIS
4+
Performs tests on a module.
5+
6+
.DESCRIPTION
7+
Performs tests on a module.
8+
9+
.EXAMPLE
10+
Get-NamedSectionTest -Name 'World'
11+
12+
"Hello, World!"
13+
#>
14+
[CmdletBinding()]
15+
param (
16+
# Name of the person to greet.
17+
[Parameter(Mandatory)]
18+
[string] $Name
19+
)
20+
Write-Output "Hello, $Name!"
21+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Named Section
2+
3+
This section's landing page is provided by a file named after its folder (`NamedSection.md`).
4+
5+
When Process-PSModule builds the documentation site, this page becomes the landing page for the **Named Section** group in the navigation on GitHub Pages.

tests/PSModuleTest.Tests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ Describe 'Module' {
2222
It 'Function: Test-PSModuleTest' {
2323
Test-PSModuleTest -Name 'World' | Should -Be 'Hello, World!'
2424
}
25+
It 'Function: Get-IndexSectionTest' {
26+
Get-IndexSectionTest -Name 'World' | Should -Be 'Hello, World!'
27+
}
28+
It 'Function: Get-NamedSectionTest' {
29+
Get-NamedSectionTest -Name 'World' | Should -Be 'Hello, World!'
30+
}
2531
}

0 commit comments

Comments
 (0)