diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index 7e17239..22061b9 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -31,5 +31,11 @@ jobs: secrets: APIKEY: ${{ secrets.APIKEY }} TestData: >- - { "secrets": { "TEST_SECRET": "${{ secrets.TEST_SECRET }}" }, - "variables": { "TEST_VARIABLE": ${{ toJSON(vars.TEST_VARIABLE) }} } } + { + "secrets": { + "TEST_SECRET": "${{ secrets.TEST_SECRET }}" + }, + "variables": { + "TEST_VARIABLE": "${{ vars.TEST_VARIABLE }}" + } + } diff --git a/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 b/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 deleted file mode 100644 index 9c36ed5..0000000 --- a/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -function Get-IndexSectionTest { - <# - .SYNOPSIS - Performs tests on a module. - - .DESCRIPTION - Performs tests on a module. - - .EXAMPLE - Get-IndexSectionTest -Name 'World' - - "Hello, World!" - #> - [CmdletBinding()] - param ( - # Name of the person to greet. - [Parameter(Mandatory)] - [string] $Name - ) - Write-Output "Hello, $Name!" -} diff --git a/src/functions/public/IndexSection/index.md b/src/functions/public/IndexSection/index.md deleted file mode 100644 index 7b29823..0000000 --- a/src/functions/public/IndexSection/index.md +++ /dev/null @@ -1,5 +0,0 @@ -# Index Section - -This section's landing page is provided by an `index.md` file. - -When Process-PSModule builds the documentation site, this page becomes the landing page for the **Index Section** group in the navigation on GitHub Pages. diff --git a/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 b/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 deleted file mode 100644 index 4ec9f6e..0000000 --- a/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -function Get-NamedSectionTest { - <# - .SYNOPSIS - Performs tests on a module. - - .DESCRIPTION - Performs tests on a module. - - .EXAMPLE - Get-NamedSectionTest -Name 'World' - - "Hello, World!" - #> - [CmdletBinding()] - param ( - # Name of the person to greet. - [Parameter(Mandatory)] - [string] $Name - ) - Write-Output "Hello, $Name!" -} diff --git a/src/functions/public/NamedSection/NamedSection.md b/src/functions/public/NamedSection/NamedSection.md deleted file mode 100644 index 6adff38..0000000 --- a/src/functions/public/NamedSection/NamedSection.md +++ /dev/null @@ -1,5 +0,0 @@ -# Named Section - -This section's landing page is provided by a file named after its folder (`NamedSection.md`). - -When Process-PSModule builds the documentation site, this page becomes the landing page for the **Named Section** group in the navigation on GitHub Pages. diff --git a/src/functions/public/SomethingElse/SomethingElse.md b/src/functions/public/SomethingElse/index.md similarity index 100% rename from src/functions/public/SomethingElse/SomethingElse.md rename to src/functions/public/SomethingElse/index.md diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index 6694cf1..59ee010 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -24,10 +24,4 @@ Describe 'Module' { It 'Function: Test-PSModuleTest' { Test-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' } - It 'Function: Get-IndexSectionTest' { - Get-IndexSectionTest -Name 'World' | Should -Be 'Hello, World!' - } - It 'Function: Get-NamedSectionTest' { - Get-NamedSectionTest -Name 'World' | Should -Be 'Hello, World!' - } }