From 86d5fba0385d0a0b2991499a2908915f2945192a Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 21:18:46 -0800 Subject: [PATCH 001/177] feat: WebSocket module scaffolding ( Fixes #1 ) --- WebSocket.psd1 | 16 ++++++++++++++++ WebSocket.psm1 | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 WebSocket.psd1 create mode 100644 WebSocket.psm1 diff --git a/WebSocket.psd1 b/WebSocket.psd1 new file mode 100644 index 0000000..ba12dca --- /dev/null +++ b/WebSocket.psd1 @@ -0,0 +1,16 @@ +@{ + ModuleVersion = '0.1' + RootModule = 'WebSocket.psm1' + Guid = '75c70c8b-e5eb-4a60-982e-a19110a1185d' + Author = 'James Brundage' + CompanyName = 'StartAutomating' + Copyright = '2024 StartAutomating' + Description = 'Work with WebSockets in PowerShell' + PrivateData = @{ + PSData = @{ + Tags = @('WebSocket', 'WebSockets', 'Networking', 'Web') + ProjectURI = 'https://github.com/PowerShellWeb/WebSocket' + LicenseURI = 'https://github.com/PowerShellWeb/WebSocket/blob/main/LICENSE' + } + } +} \ No newline at end of file diff --git a/WebSocket.psm1 b/WebSocket.psm1 new file mode 100644 index 0000000..41a1efb --- /dev/null +++ b/WebSocket.psm1 @@ -0,0 +1,36 @@ +$commandsPath = Join-Path $PSScriptRoot Commands +:ToIncludeFiles foreach ($file in (Get-ChildItem -Path "$commandsPath" -Filter "*-*" -Recurse)) { + if ($file.Extension -ne '.ps1') { continue } # Skip if the extension is not .ps1 + foreach ($exclusion in '\.[^\.]+\.ps1$') { + if (-not $exclusion) { continue } + if ($file.Name -match $exclusion) { + continue ToIncludeFiles # Skip excluded files + } + } + . $file.FullName +} + +$myModule = $MyInvocation.MyCommand.ScriptBlock.Module +$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $myModule) +$myModule.pstypenames.insert(0, $myModule.Name) + +New-PSDrive -Name $MyModule.Name -PSProvider FileSystem -Scope Global -Root $PSScriptRoot -ErrorAction Ignore + +if ($home) { + $MyModuleProfileDirectory = Join-Path ([Environment]::GetFolderPath("LocalApplicationData")) $MyModule.Name + if (-not (Test-Path $MyModuleProfileDirectory)) { + $null = New-Item -ItemType Directory -Path $MyModuleProfileDirectory -Force + } + New-PSDrive -Name "My$($MyModule.Name)" -PSProvider FileSystem -Scope Global -Root $MyModuleProfileDirectory -ErrorAction Ignore +} + +# Set a script variable of this, set to the module +# (so all scripts in this scope default to the correct `$this`) +$script:this = $myModule + +#region Custom +#endregion Custom + +Export-ModuleMember -Alias * -Function * -Variable $myModule.Name + + From 0e86ae644bd91f2b0c256a6a8432b43f56226303 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 22:44:47 -0800 Subject: [PATCH 002/177] feat: WebSocket Workflow ( Fixes #3, Fixes #4 ) --- Build/GitHub/Jobs/BuildWebSocket.psd1 | 34 +++++++++++++++++++++ Build/WebSocket.GitHubWorkflow.PSDevOps.ps1 | 15 +++++++++ 2 files changed, 49 insertions(+) create mode 100644 Build/GitHub/Jobs/BuildWebSocket.psd1 create mode 100644 Build/WebSocket.GitHubWorkflow.PSDevOps.ps1 diff --git a/Build/GitHub/Jobs/BuildWebSocket.psd1 b/Build/GitHub/Jobs/BuildWebSocket.psd1 new file mode 100644 index 0000000..b503a74 --- /dev/null +++ b/Build/GitHub/Jobs/BuildWebSocket.psd1 @@ -0,0 +1,34 @@ +@{ + "runs-on" = "ubuntu-latest" + if = '${{ success() }}' + steps = @( + @{ + name = 'Check out repository' + uses = 'actions/checkout@v2' + }, + @{ + name = 'GitLogger' + uses = 'GitLogging/GitLoggerAction@main' + id = 'GitLogger' + }, + @{ + name = 'Use PSSVG Action' + uses = 'StartAutomating/PSSVG@main' + id = 'PSSVG' + }, + @{ + name = 'Use PipeScript Action' + uses = 'StartAutomating/PipeScript@main' + id = 'PipeScript' + }, + 'RunEZOut', + 'RunHelpOut' + <#@{ + name = 'Run WebSocket (on branch)' + if = '${{github.ref_name != ''main''}}' + uses = './' + id = 'WebSocketAction' + },#> + #'BuildAndPublishContainer' + ) +} \ No newline at end of file diff --git a/Build/WebSocket.GitHubWorkflow.PSDevOps.ps1 b/Build/WebSocket.GitHubWorkflow.PSDevOps.ps1 new file mode 100644 index 0000000..b6303d7 --- /dev/null +++ b/Build/WebSocket.GitHubWorkflow.PSDevOps.ps1 @@ -0,0 +1,15 @@ +#requires -Module PSDevOps +Import-BuildStep -SourcePath ( + Join-Path $PSScriptRoot 'GitHub' +) -BuildSystem GitHubWorkflow + +Push-Location ($PSScriptRoot | Split-Path) +New-GitHubWorkflow -Name "Build WebSocket Module" -On Push, + PullRequest, + Demand -Job TestPowerShellOnLinux, + TagReleaseAndPublish, BuildWebSocket -Environment ([Ordered]@{ + REGISTRY = 'ghcr.io' + IMAGE_NAME = '${{ github.repository }}' + }) -OutputPath .\.github\workflows\BuildWebSocket.yml + +Pop-Location \ No newline at end of file From af0c39e4dd30116b6ea2a1ef698e465f794b39f9 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 22:45:30 -0800 Subject: [PATCH 003/177] feat: WebSocket Workflow ( Fixes #3, Fixes #4 ) Adding generated workflow --- .github/workflows/BuildWebSocket.yml | 509 +++++++++++++++++++++++++++ 1 file changed, 509 insertions(+) create mode 100644 .github/workflows/BuildWebSocket.yml diff --git a/.github/workflows/BuildWebSocket.yml b/.github/workflows/BuildWebSocket.yml new file mode 100644 index 0000000..46cfbb2 --- /dev/null +++ b/.github/workflows/BuildWebSocket.yml @@ -0,0 +1,509 @@ + +name: Build WebSocket Module +on: + push: + pull_request: + workflow_dispatch: +jobs: + TestPowerShellOnLinux: + runs-on: ubuntu-latest + steps: + - name: InstallPester + id: InstallPester + shell: pwsh + run: | + $Parameters = @{} + $Parameters.PesterMaxVersion = ${env:PesterMaxVersion} + foreach ($k in @($parameters.Keys)) { + if ([String]::IsNullOrEmpty($parameters[$k])) { + $parameters.Remove($k) + } + } + Write-Host "::debug:: InstallPester $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" + & {<# + .Synopsis + Installs Pester + .Description + Installs Pester + #> + param( + # The maximum pester version. Defaults to 4.99.99. + [string] + $PesterMaxVersion = '4.99.99' + ) + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser -MaximumVersion $PesterMaxVersion -SkipPublisherCheck -AllowClobber + Import-Module Pester -Force -PassThru -MaximumVersion $PesterMaxVersion} @Parameters + - name: Check out repository + uses: actions/checkout@v4 + - name: RunPester + id: RunPester + shell: pwsh + run: | + $Parameters = @{} + $Parameters.ModulePath = ${env:ModulePath} + $Parameters.PesterMaxVersion = ${env:PesterMaxVersion} + $Parameters.NoCoverage = ${env:NoCoverage} + $Parameters.NoCoverage = $parameters.NoCoverage -match 'true'; + foreach ($k in @($parameters.Keys)) { + if ([String]::IsNullOrEmpty($parameters[$k])) { + $parameters.Remove($k) + } + } + Write-Host "::debug:: RunPester $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" + & {<# + .Synopsis + Runs Pester + .Description + Runs Pester tests after importing a PowerShell module + #> + param( + # The module path. If not provided, will default to the second half of the repository ID. + [string] + $ModulePath, + # The Pester max version. By default, this is pinned to 4.99.99. + [string] + $PesterMaxVersion = '4.99.99', + + # If set, will not collect code coverage. + [switch] + $NoCoverage + ) + + $global:ErrorActionPreference = 'continue' + $global:ProgressPreference = 'silentlycontinue' + + $orgName, $moduleName = $env:GITHUB_REPOSITORY -split "/" + if (-not $ModulePath) { $ModulePath = ".\$moduleName.psd1" } + $importedPester = Import-Module Pester -Force -PassThru -MaximumVersion $PesterMaxVersion + $importedModule = Import-Module $ModulePath -Force -PassThru + $importedPester, $importedModule | Out-Host + + $codeCoverageParameters = @{ + CodeCoverage = "$($importedModule | Split-Path)\*-*.ps1" + CodeCoverageOutputFile = ".\$moduleName.Coverage.xml" + } + + if ($NoCoverage) { + $codeCoverageParameters = @{} + } + + + $result = + Invoke-Pester -PassThru -Verbose -OutputFile ".\$moduleName.TestResults.xml" -OutputFormat NUnitXml @codeCoverageParameters + + if ($result.FailedCount -gt 0) { + "::debug:: $($result.FailedCount) tests failed" + foreach ($r in $result.TestResult) { + if (-not $r.Passed) { + "::error::$($r.describe, $r.context, $r.name -join ' ') $($r.FailureMessage)" + } + } + throw "::error:: $($result.FailedCount) tests failed" + } + } @Parameters + - name: PublishTestResults + uses: actions/upload-artifact@v3 + with: + name: PesterResults + path: '**.TestResults.xml' + if: ${{always()}} + TagReleaseAndPublish: + runs-on: ubuntu-latest + if: ${{ success() }} + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: TagModuleVersion + id: TagModuleVersion + shell: pwsh + run: | + $Parameters = @{} + $Parameters.ModulePath = ${env:ModulePath} + $Parameters.UserEmail = ${env:UserEmail} + $Parameters.UserName = ${env:UserName} + $Parameters.TagVersionFormat = ${env:TagVersionFormat} + $Parameters.TagAnnotationFormat = ${env:TagAnnotationFormat} + foreach ($k in @($parameters.Keys)) { + if ([String]::IsNullOrEmpty($parameters[$k])) { + $parameters.Remove($k) + } + } + Write-Host "::debug:: TagModuleVersion $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" + & {param( + [string] + $ModulePath, + + # The user email associated with a git commit. + [string] + $UserEmail, + + # The user name associated with a git commit. + [string] + $UserName, + + # The tag version format (default value: 'v$(imported.Version)') + # This can expand variables. $imported will contain the imported module. + [string] + $TagVersionFormat = 'v$($imported.Version)', + + # The tag version format (default value: '$($imported.Name) $(imported.Version)') + # This can expand variables. $imported will contain the imported module. + [string] + $TagAnnotationFormat = '$($imported.Name) $($imported.Version)' + ) + + + $gitHubEvent = if ($env:GITHUB_EVENT_PATH) { + [IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json + } else { $null } + + + @" + ::group::GitHubEvent + $($gitHubEvent | ConvertTo-Json -Depth 100) + ::endgroup:: + "@ | Out-Host + + if (-not ($gitHubEvent.head_commit.message -match "Merge Pull Request #(?\d+)") -and + (-not $gitHubEvent.psobject.properties['inputs'])) { + "::warning::Pull Request has not merged, skipping Tagging" | Out-Host + return + } + + + + $imported = + if (-not $ModulePath) { + $orgName, $moduleName = $env:GITHUB_REPOSITORY -split "/" + Import-Module ".\$moduleName.psd1" -Force -PassThru -Global + } else { + Import-Module $modulePath -Force -PassThru -Global + } + + if (-not $imported) { return } + + $targetVersion =$ExecutionContext.InvokeCommand.ExpandString($TagVersionFormat) + $existingTags = git tag --list + + @" + Target Version: $targetVersion + + Existing Tags: + $($existingTags -join [Environment]::NewLine) + "@ | Out-Host + + $versionTagExists = $existingTags | Where-Object { $_ -match $targetVersion } + + if ($versionTagExists) { + "::warning::Version $($versionTagExists)" + return + } + + if (-not $UserName) { $UserName = $env:GITHUB_ACTOR } + if (-not $UserEmail) { $UserEmail = "$UserName@github.com" } + git config --global user.email $UserEmail + git config --global user.name $UserName + + git tag -a $targetVersion -m $ExecutionContext.InvokeCommand.ExpandString($TagAnnotationFormat) + git push origin --tags + + if ($env:GITHUB_ACTOR) { + exit 0 + }} @Parameters + - name: ReleaseModule + id: ReleaseModule + shell: pwsh + run: | + $Parameters = @{} + $Parameters.ModulePath = ${env:ModulePath} + $Parameters.UserEmail = ${env:UserEmail} + $Parameters.UserName = ${env:UserName} + $Parameters.TagVersionFormat = ${env:TagVersionFormat} + $Parameters.ReleaseNameFormat = ${env:ReleaseNameFormat} + $Parameters.ReleaseAsset = ${env:ReleaseAsset} + $Parameters.ReleaseAsset = $parameters.ReleaseAsset -split ';' -replace '^[''"]' -replace '[''"]$' + foreach ($k in @($parameters.Keys)) { + if ([String]::IsNullOrEmpty($parameters[$k])) { + $parameters.Remove($k) + } + } + Write-Host "::debug:: ReleaseModule $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" + & {param( + [string] + $ModulePath, + + # The user email associated with a git commit. + [string] + $UserEmail, + + # The user name associated with a git commit. + [string] + $UserName, + + # The tag version format (default value: 'v$(imported.Version)') + # This can expand variables. $imported will contain the imported module. + [string] + $TagVersionFormat = 'v$($imported.Version)', + + # The release name format (default value: '$($imported.Name) $($imported.Version)') + [string] + $ReleaseNameFormat = '$($imported.Name) $($imported.Version)', + + # Any assets to attach to the release. Can be a wildcard or file name. + [string[]] + $ReleaseAsset + ) + + + $gitHubEvent = if ($env:GITHUB_EVENT_PATH) { + [IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json + } else { $null } + + + @" + ::group::GitHubEvent + $($gitHubEvent | ConvertTo-Json -Depth 100) + ::endgroup:: + "@ | Out-Host + + if (-not ($gitHubEvent.head_commit.message -match "Merge Pull Request #(?\d+)") -and + (-not $gitHubEvent.psobject.properties['inputs'])) { + "::warning::Pull Request has not merged, skipping GitHub release" | Out-Host + return + } + + + + $imported = + if (-not $ModulePath) { + $orgName, $moduleName = $env:GITHUB_REPOSITORY -split "/" + Import-Module ".\$moduleName.psd1" -Force -PassThru -Global + } else { + Import-Module $modulePath -Force -PassThru -Global + } + + if (-not $imported) { return } + + $targetVersion =$ExecutionContext.InvokeCommand.ExpandString($TagVersionFormat) + $targetReleaseName = $targetVersion + $releasesURL = 'https://api.github.com/repos/${{github.repository}}/releases' + "Release URL: $releasesURL" | Out-Host + $listOfReleases = Invoke-RestMethod -Uri $releasesURL -Method Get -Headers @{ + "Accept" = "application/vnd.github.v3+json" + "Authorization" = 'Bearer ${{ secrets.GITHUB_TOKEN }}' + } + + $releaseExists = $listOfReleases | Where-Object tag_name -eq $targetVersion + + if ($releaseExists) { + "::warning::Release '$($releaseExists.Name )' Already Exists" | Out-Host + $releasedIt = $releaseExists + } else { + $releasedIt = Invoke-RestMethod -Uri $releasesURL -Method Post -Body ( + [Ordered]@{ + owner = '${{github.owner}}' + repo = '${{github.repository}}' + tag_name = $targetVersion + name = $ExecutionContext.InvokeCommand.ExpandString($ReleaseNameFormat) + body = + if ($env:RELEASENOTES) { + $env:RELEASENOTES + } elseif ($imported.PrivateData.PSData.ReleaseNotes) { + $imported.PrivateData.PSData.ReleaseNotes + } else { + "$($imported.Name) $targetVersion" + } + draft = if ($env:RELEASEISDRAFT) { [bool]::Parse($env:RELEASEISDRAFT) } else { $false } + prerelease = if ($env:PRERELEASE) { [bool]::Parse($env:PRERELEASE) } else { $false } + } | ConvertTo-Json + ) -Headers @{ + "Accept" = "application/vnd.github.v3+json" + "Content-type" = "application/json" + "Authorization" = 'Bearer ${{ secrets.GITHUB_TOKEN }}' + } + } + + + + + + if (-not $releasedIt) { + throw "Release failed" + } else { + $releasedIt | Out-Host + } + + $releaseUploadUrl = $releasedIt.upload_url -replace '\{.+$' + + if ($ReleaseAsset) { + $fileList = Get-ChildItem -Recurse + $filesToRelease = + @(:nextFile foreach ($file in $fileList) { + foreach ($relAsset in $ReleaseAsset) { + if ($relAsset -match '[\*\?]') { + if ($file.Name -like $relAsset) { + $file; continue nextFile + } + } elseif ($file.Name -eq $relAsset -or $file.FullName -eq $relAsset) { + $file; continue nextFile + } + } + }) + + $releasedFiles = @{} + foreach ($file in $filesToRelease) { + if ($releasedFiles[$file.Name]) { + Write-Warning "Already attached file $($file.Name)" + continue + } else { + $fileBytes = [IO.File]::ReadAllBytes($file.FullName) + $releasedFiles[$file.Name] = + Invoke-RestMethod -Uri "${releaseUploadUrl}?name=$($file.Name)" -Headers @{ + "Accept" = "application/vnd.github+json" + "Authorization" = 'Bearer ${{ secrets.GITHUB_TOKEN }}' + } -Body $fileBytes -ContentType Application/octet-stream + $releasedFiles[$file.Name] + } + } + + "Attached $($releasedFiles.Count) file(s) to release" | Out-Host + } + + + + } @Parameters + - name: PublishPowerShellGallery + id: PublishPowerShellGallery + shell: pwsh + run: | + $Parameters = @{} + $Parameters.ModulePath = ${env:ModulePath} + $Parameters.Exclude = ${env:Exclude} + $Parameters.Exclude = $parameters.Exclude -split ';' -replace '^[''"]' -replace '[''"]$' + foreach ($k in @($parameters.Keys)) { + if ([String]::IsNullOrEmpty($parameters[$k])) { + $parameters.Remove($k) + } + } + Write-Host "::debug:: PublishPowerShellGallery $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')" + & {param( + [string] + $ModulePath, + + [string[]] + $Exclude = @('*.png', '*.mp4', '*.jpg','*.jpeg', '*.gif', 'docs[/\]*') + ) + + $gitHubEvent = if ($env:GITHUB_EVENT_PATH) { + [IO.File]::ReadAllText($env:GITHUB_EVENT_PATH) | ConvertFrom-Json + } else { $null } + + if (-not $Exclude) { + $Exclude = @('*.png', '*.mp4', '*.jpg','*.jpeg', '*.gif','docs[/\]*') + } + + + @" + ::group::GitHubEvent + $($gitHubEvent | ConvertTo-Json -Depth 100) + ::endgroup:: + "@ | Out-Host + + @" + ::group::PSBoundParameters + $($PSBoundParameters | ConvertTo-Json -Depth 100) + ::endgroup:: + "@ | Out-Host + + if (-not ($gitHubEvent.head_commit.message -match "Merge Pull Request #(?\d+)") -and + (-not $gitHubEvent.psobject.properties['inputs'])) { + "::warning::Pull Request has not merged, skipping Gallery Publish" | Out-Host + return + } + + + $imported = + if (-not $ModulePath) { + $orgName, $moduleName = $env:GITHUB_REPOSITORY -split "/" + Import-Module ".\$moduleName.psd1" -Force -PassThru -Global + } else { + Import-Module $modulePath -Force -PassThru -Global + } + + if (-not $imported) { return } + + $foundModule = try { Find-Module -Name $imported.Name -ErrorAction SilentlyContinue} catch {} + + if ($foundModule -and (([Version]$foundModule.Version) -ge ([Version]$imported.Version))) { + "::warning::Gallery Version of $moduleName is more recent ($($foundModule.Version) >= $($imported.Version))" | Out-Host + } else { + + $gk = '${{secrets.GALLERYKEY}}' + + $rn = Get-Random + $moduleTempFolder = Join-Path $pwd "$rn" + $moduleTempPath = Join-Path $moduleTempFolder $moduleName + New-Item -ItemType Directory -Path $moduleTempPath -Force | Out-Host + + Write-Host "Staging Directory: $ModuleTempPath" + + $imported | Split-Path | + Get-ChildItem -Force | + Where-Object Name -NE $rn | + Copy-Item -Destination $moduleTempPath -Recurse + + $moduleGitPath = Join-Path $moduleTempPath '.git' + Write-Host "Removing .git directory" + if (Test-Path $moduleGitPath) { + Remove-Item -Recurse -Force $moduleGitPath + } + + if ($Exclude) { + "::notice::Attempting to Exlcude $exclude" | Out-Host + Get-ChildItem $moduleTempPath -Recurse | + Where-Object { + foreach ($ex in $exclude) { + if ($_.FullName -like $ex) { + "::notice::Excluding $($_.FullName)" | Out-Host + return $true + } + } + } | + Remove-Item + } + + Write-Host "Module Files:" + Get-ChildItem $moduleTempPath -Recurse + Write-Host "Publishing $moduleName [$($imported.Version)] to Gallery" + Publish-Module -Path $moduleTempPath -NuGetApiKey $gk + if ($?) { + Write-Host "Published to Gallery" + } else { + Write-Host "Gallery Publish Failed" + exit 1 + } + } + } @Parameters + BuildWebSocket: + runs-on: ubuntu-latest + if: ${{ success() }} + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: GitLogger + uses: GitLogging/GitLoggerAction@main + id: GitLogger + - name: Use PSSVG Action + uses: StartAutomating/PSSVG@main + id: PSSVG + - name: Use PipeScript Action + uses: StartAutomating/PipeScript@main + id: PipeScript + - name: UseEZOut + uses: StartAutomating/EZOut@master + - name: UseHelpOut + uses: StartAutomating/HelpOut@master +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} From 0a135684907965497a30e6eb7e3e42ec92df801f Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 22:58:05 -0800 Subject: [PATCH 004/177] feat: WebSocket Module source ( Fixes #7 ) --- WebSocket.ps.psm1 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 WebSocket.ps.psm1 diff --git a/WebSocket.ps.psm1 b/WebSocket.ps.psm1 new file mode 100644 index 0000000..562e155 --- /dev/null +++ b/WebSocket.ps.psm1 @@ -0,0 +1,26 @@ +$commandsPath = Join-Path $PSScriptRoot Commands +[include('*-*')]$commandsPath + +$myModule = $MyInvocation.MyCommand.ScriptBlock.Module +$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $myModule) +$myModule.pstypenames.insert(0, $myModule.Name) + +New-PSDrive -Name $MyModule.Name -PSProvider FileSystem -Scope Global -Root $PSScriptRoot -ErrorAction Ignore + +if ($home) { + $MyModuleProfileDirectory = Join-Path ([Environment]::GetFolderPath("LocalApplicationData")) $MyModule.Name + if (-not (Test-Path $MyModuleProfileDirectory)) { + $null = New-Item -ItemType Directory -Path $MyModuleProfileDirectory -Force + } + New-PSDrive -Name "My$($MyModule.Name)" -PSProvider FileSystem -Scope Global -Root $MyModuleProfileDirectory -ErrorAction Ignore +} + +# Set a script variable of this, set to the module +# (so all scripts in this scope default to the correct `$this`) +$script:this = $myModule + +#region Custom +#endregion Custom + +Export-ModuleMember -Alias * -Function * -Variable $myModule.Name + From 2b77c37a4161d5ab15f6ec076b046c7db5a36776 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 22:59:36 -0800 Subject: [PATCH 005/177] feat: Get-WebSocket ( Fixes #2 ) --- Commands/Get-WebSocket.ps1 | 217 +++++++++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 Commands/Get-WebSocket.ps1 diff --git a/Commands/Get-WebSocket.ps1 b/Commands/Get-WebSocket.ps1 new file mode 100644 index 0000000..37ee9b3 --- /dev/null +++ b/Commands/Get-WebSocket.ps1 @@ -0,0 +1,217 @@ +function Get-WebSocket { + <# + .SYNOPSIS + WebSockets in PowerShell. + .DESCRIPTION + Get-WebSocket allows you to connect to a websocket and handle the output. + .EXAMPLE + # Create a WebSocket job that connects to a WebSocket and outputs the results. + Get-WebSocket -WebSocketUri "wss://localhost:9669" + .EXAMPLE + # Get is the default verb, so we can just say WebSocket. + websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post + .EXAMPLE + websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | + Foreach-Object { + $in = $_ + if ($in.commit.record.text -match '[\p{IsHighSurrogates}\p{IsLowSurrogates}]+') { + $matches.0 + } + } + #> + [CmdletBinding(PositionalBinding=$false)] + param( + # The Uri of the WebSocket to connect to. + [Parameter(Position=0,ValueFromPipelineByPropertyName)] + [Alias('Url','Uri')] + [uri]$WebSocketUri, + + # A ScriptBlock that will handle the output of the WebSocket. + [ScriptBlock] + $Handler, + + # Any variables to declare in the WebSocket job. + [Collections.IDictionary] + $Variable = @{}, + + # The name of the WebSocket job. + [string] + $Name, + + # The script to run when the WebSocket job starts. + [ScriptBlock] + $InitializationScript = {}, + + # The buffer size. Defaults to 16kb. + [int] + $BufferSize = 16kb, + + # The ScriptBlock to run after connection to a websocket. + # This can be useful for making any initial requests. + [ScriptBlock] + $OnConnect, + + # The ScriptBlock to run when an error occurs. + [ScriptBlock] + $OnError, + + # The ScriptBlock to run when the WebSocket job outputs an object. + [ScriptBlock] + $OnOutput, + + # The Scriptblock to run when the WebSocket job produces a warning. + [ScriptBlock] + $OnWarning, + + # If set, will tail the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. + [switch] + $Watch, + + # The maximum time to wait for a connection to be established. + # By default, this is 7 seconds. + [TimeSpan] + $ConnectionTimeout = '00:00:07', + + # The Runspace where the handler should run. + # Runspaces allow you to limit the scope of the handler. + [Runspace] + $Runspace, + + # The RunspacePool where the handler should run. + # RunspacePools allow you to limit the scope of the handler to a pool of runspaces. + [Management.Automation.Runspaces.RunspacePool] + [Alias('Pool')] + $RunspacePool + ) + + begin { + $SocketJob = { + param([Collections.IDictionary]$Variable) + + foreach ($keyValue in $variable.GetEnumerator()) { + $ExecutionContext.SessionState.PSVariable.Set($keyValue.Key, $keyValue.Value) + } + + if ((-not $WebSocketUri) -or $webSocket) { + throw "No WebSocketUri" + } + + if (-not $WebSocketUri.Scheme) { + $WebSocketUri = [uri]"wss://$WebSocketUri" + } + + if (-not $BufferSize) { + $BufferSize = 16kb + } + + $CT = [Threading.CancellationToken]::None + + if (-not $webSocket) { + $ws = [Net.WebSockets.ClientWebSocket]::new() + $null = $ws.ConnectAsync($WebSocketUri, $CT).Wait() + } else { + $ws = $WebSocket + } + + $Variable.WebSocket = $ws + + + while ($true) { + if ($ws.State -ne 'Open') {break } + $Buf = [byte[]]::new($BufferSize) + $Seg = [ArraySegment[byte]]::new($Buf) + $null = $ws.ReceiveAsync($Seg, $CT).Wait() + $JS = $OutputEncoding.GetString($Buf, 0, $Buf.Count) + if ([string]::IsNullOrWhitespace($JS)) { continue } + try { + $webSocketMessage = ConvertFrom-Json $JS + if ($handler) { + $psCmd = + if ($runspace.LanguageMode -eq 'NoLanguage' -or + $runspacePool.InitialSessionState.LanguageMode -eq 'NoLanguage') { + $handler.GetPowerShell() + } elseif ($Runspace -or $RunspacePool) { + [PowerShell]::Create().AddScript($handler) + } + if ($psCmd) { + if ($Runspace) { + $psCmd.Runspace = $Runspace + } elseif ($RunspacePool) { + $psCmd.RunspacePool = $RunspacePool + } + } else { + $webSocketMessage | . $handler + } + + } else { + $webSocketMessage + } + } catch { + Write-Error $_ + } + } + } + } + + process { + foreach ($keyValuePair in $PSBoundParameters.GetEnumerator()) { + $Variable[$keyValuePair.Key] = $keyValuePair.Value + } + $webSocketJob = + if ($WebSocketUri) { + if (-not $name) { + $Name = $WebSocketUri + } + + Start-ThreadJob -ScriptBlock $SocketJob -Name $Name -InitializationScript $InitializationScript -ArgumentList $Variable + } elseif ($WebSocket) { + if (-not $name) { + $name = "websocket" + } + Start-ThreadJob -ScriptBlock $SocketJob -Name $Name -InitializationScript $InitializationScript -ArgumentList $Variable + } + + $subscriptionSplat = @{ + EventName = 'DataAdded' + MessageData = $webSocketJob + SupportEvent = $true + } + $eventSubscriptions = @( + if ($OnOutput) { + Register-ObjectEvent @subscriptionSplat -InputObject $webSocketJob.Output -Action $OnOutput + } + if ($OnError) { + Register-ObjectEvent @subscriptionSplat -InputObject $webSocketJob.Error -Action $OnError + } + if ($OnWarning) { + Register-ObjectEvent @subscriptionSplat -InputObject $webSocketJob.Warning -Action $OnWarning + } + ) + if ($eventSubscriptions) { + $variable['EventSubscriptions'] = $eventSubscriptions + } + + $webSocketConnectTimeout = [DateTime]::Now + $ConnectionTimeout + while (-not $variable['WebSocket'] -and + ([DateTime]::Now -lt $webSocketConnectTimeout)) { + Start-Sleep -Milliseconds 0 + } + + foreach ($keyValuePair in $Variable.GetEnumerator()) { + $webSocketJob.psobject.properties.add( + [psnoteproperty]::new($keyValuePair.Key, $keyValuePair.Value), $true + ) + } + $webSocketJob.pstypenames.insert(0, 'WebSocketJob') + if ($Watch) { + do { + $webSocketJob | Receive-Job + Start-Sleep -Milliseconds ( + 7, 11, 13, 17, 19, 23 | Get-Random + ) + } while ($webSocketJob.State -in 'Running','NotStarted') + } else { + $webSocketJob + } + } +} From 089aa75779de5e60a5c0954598ee3963dc217a6a Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 23:04:06 -0800 Subject: [PATCH 006/177] feat: WebSocket logo ( Fixes #5 ) --- Build/WebSocket.PSSVG.ps1 | 106 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Build/WebSocket.PSSVG.ps1 diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 new file mode 100644 index 0000000..d2c9d71 --- /dev/null +++ b/Build/WebSocket.PSSVG.ps1 @@ -0,0 +1,106 @@ +#requires -Module PSSVG + +$AssetsPath = $PSScriptRoot | Split-Path | Join-Path -ChildPath "Assets" + +if (-not (Test-Path $AssetsPath)) { + New-Item -ItemType Directory -Path $AssetsPath | Out-Null +} +$myName = $MyInvocation.MyCommand.Name -replace '\.PSSVG\.ps1$' + +$strokeWidth = '0.5%' +$fontName = 'Noto Sans' +foreach ($variant in '','Animated') { + $outputPath = if (-not $variant) { + Join-Path $assetsPath "$myName.svg" + } else { + Join-Path $assetsPath "$myName-$variant.svg" + } + $symbolDefinition = SVG.symbol -Id 'PowerShellWeb' @( + svg -content $( + $fillParameters = [Ordered]@{ + Fill = '#4488FF' + Class = 'foreground-fill' + } + + $strokeParameters = [Ordered]@{ + Stroke = '#4488FF' + Class = 'foreground-stroke' + StrokeWidth = $strokeWidth + } + + $transparentFill = [Ordered]@{Fill='transparent'} + $animationDuration = [Ordered]@{ + Dur = "4.2s" + RepeatCount = "indefinite" + } + + SVG.GoogleFont -FontName $fontName + + svg.symbol -Id psChevron -Content @( + svg.polygon -Points (@( + "40,20" + "45,20" + "60,50" + "35,80" + "32.5,80" + "55,50" + ) -join ' ') + ) -ViewBox 100, 100 + + + + SVG.circle -CX 50% -Cy 50% -R 42% @transparentFill @strokeParameters -Content @( + ) + SVG.ellipse -Cx 50% -Cy 50% -Rx 23% -Ry 42% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '23%;16%;23%' -AttributeName rx @animationDuration + } + ) + SVG.ellipse -Cx 50% -Cy 50% -Rx 16% -Ry 42% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '16%;23%;16%' -AttributeName rx @animationDuration + } + ) -Opacity .9 + SVG.ellipse -Cx 50% -Cy 50% -Rx 15% -Ry 42% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '15%;16%;15%' -AttributeName rx @animationDuration + } + ) -Opacity .8 + SVG.ellipse -Cx 50% -Cy 50% -Rx 42% -Ry 23% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '23%;16%;23%' -AttributeName ry @animationDuration + } + ) + SVG.ellipse -Cx 50% -Cy 50% -Rx 42% -Ry 16% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '16%;23%;16%' -AttributeName ry @animationDuration + } + ) -Opacity .9 + SVG.ellipse -Cx 50% -Cy 50% -Rx 42% -Ry 15% @transparentFill @strokeParameters -Content @( + if ($variant -match 'animate') { + svg.animate -Values '15%;16%;15%' -AttributeName ry @animationDuration + } + ) -Opacity .8 + + svg.use -Href '#psChevron' -Y 29% @fillParameters -Height 42% + ) -ViewBox 0, 0, 200, 200 -TransformOrigin 50%, 50% + ) + + $TextSplat = [Ordered]@{ + FontFamily=$fontName + FontSize='4.2em' + Style="font-family:`"$fontName`",sans-serif" + Fill='#4488FF' + Class='foreground-fill' + DominantBaseline='middle' + } + + svg -Content @( + SVG.GoogleFont -FontName $fontName + $symbolDefinition + SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% + SVG.Text -X 42% -Y 50% @TextSplat -Content '||' + SVG.Text -X 52% -Y 50% @TextSplat -Content '||' + SVG.text -X 50% -Y 80% -TextAnchor middle -FontFamily $fontName -Style "font-family:`"$fontName`",sans-serif" -FontSize 4.2em -Fill '#4488FF' -Content 'WebSocket' -Class 'foreground-fill' -DominantBaseline middle + ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 +} From 280e883fc1603afec9eee6f4b72e1805c0b7dd37 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:05:45 +0000 Subject: [PATCH 007/177] feat: WebSocket logo ( Fixes #5 ) --- Assets/WebSocket.svg | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Assets/WebSocket.svg diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg new file mode 100644 index 0000000..c6d1957 --- /dev/null +++ b/Assets/WebSocket.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + || + || + WebSocket + From 90e7ca68cf818bbfe1444bc2e705548e12f9d81b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:05:45 +0000 Subject: [PATCH 008/177] feat: WebSocket logo ( Fixes #5 ) --- Assets/WebSocket-Animated.svg | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Assets/WebSocket-Animated.svg diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg new file mode 100644 index 0000000..7c09134 --- /dev/null +++ b/Assets/WebSocket-Animated.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + || + || + WebSocket + From 46c381de095f9e5674ca055ebf409f24b30c5b38 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 23:27:41 -0800 Subject: [PATCH 009/177] feat: HelpOut WebSocket ( Fixes #9 ) --- Build/WebSocket.HelpOut.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Build/WebSocket.HelpOut.ps1 diff --git a/Build/WebSocket.HelpOut.ps1 b/Build/WebSocket.HelpOut.ps1 new file mode 100644 index 0000000..34be7dc --- /dev/null +++ b/Build/WebSocket.HelpOut.ps1 @@ -0,0 +1,14 @@ +#requires -Module HelpOut + +#region Load the Module +$ModuleName = 'WebSocket' +Push-Location ($PSScriptRoot | Split-Path) +if (-not (Get-Module $ModuleName)) { + Import-Module .\ -Global -PassThru | Out-Host +} +#endregion Load the Module + +# This will save the MarkdownHelp to the docs folder, and output all of the files created. +Save-MarkdownHelp -PassThru -Module $ModuleName -ExcludeCommandType Alias + +Pop-Location \ No newline at end of file From f6658e392aa9b898db3f5f64b9344e79f44f1f84 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:29:47 +0000 Subject: [PATCH 010/177] feat: HelpOut WebSocket ( Fixes #9 ) --- docs/Get-WebSocket.md | 148 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 docs/Get-WebSocket.md diff --git a/docs/Get-WebSocket.md b/docs/Get-WebSocket.md new file mode 100644 index 0000000..346fd07 --- /dev/null +++ b/docs/Get-WebSocket.md @@ -0,0 +1,148 @@ +Get-WebSocket +------------- + +### Synopsis +WebSockets in PowerShell. + +--- + +### Description + +Get-WebSocket allows you to connect to a websocket and handle the output. + +--- + +### Examples +Create a WebSocket job that connects to a WebSocket and outputs the results. + +```PowerShell +Get-WebSocket -WebSocketUri "wss://localhost:9669" +``` +Get is the default verb, so we can just say WebSocket. + +```PowerShell +websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post +``` +> EXAMPLE 3 + +```PowerShell +websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | + Foreach-Object { + $in = $_ + if ($in.commit.record.text -match '[\p{IsHighSurrogates}\p{IsLowSurrogates}]+') { + $matches.0 + } + } +``` + +--- + +### Parameters +#### **WebSocketUri** +The Uri of the WebSocket to connect to. + +|Type |Required|Position|PipelineInput |Aliases | +|-------|--------|--------|---------------------|-----------| +|`[Uri]`|false |1 |true (ByPropertyName)|Url
Uri| + +#### **Handler** +A ScriptBlock that will handle the output of the WebSocket. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **Variable** +Any variables to declare in the WebSocket job. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[IDictionary]`|false |named |false | + +#### **Name** +The name of the WebSocket job. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |named |false | + +#### **InitializationScript** +The script to run when the WebSocket job starts. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **BufferSize** +The buffer size. Defaults to 16kb. + +|Type |Required|Position|PipelineInput| +|---------|--------|--------|-------------| +|`[Int32]`|false |named |false | + +#### **OnConnect** +The ScriptBlock to run after connection to a websocket. +This can be useful for making any initial requests. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **OnError** +The ScriptBlock to run when an error occurs. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **OnOutput** +The ScriptBlock to run when the WebSocket job outputs an object. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **OnWarning** +The Scriptblock to run when the WebSocket job produces a warning. + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |named |false | + +#### **Watch** +If set, will tail the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Switch]`|false |named |false | + +#### **ConnectionTimeout** +The maximum time to wait for a connection to be established. +By default, this is 7 seconds. + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[TimeSpan]`|false |named |false | + +#### **Runspace** +The Runspace where the handler should run. +Runspaces allow you to limit the scope of the handler. + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[Runspace]`|false |named |false | + +#### **RunspacePool** +The RunspacePool where the handler should run. +RunspacePools allow you to limit the scope of the handler to a pool of runspaces. + +|Type |Required|Position|PipelineInput|Aliases| +|----------------|--------|--------|-------------|-------| +|`[RunspacePool]`|false |named |false |Pool | + +--- + +### Syntax +```PowerShell +Get-WebSocket [[-WebSocketUri] ] [-Handler ] [-Variable ] [-Name ] [-InitializationScript ] [-BufferSize ] [-OnConnect ] [-OnError ] [-OnOutput ] [-OnWarning ] [-Watch] [-ConnectionTimeout ] [-Runspace ] [-RunspacePool ] [] +``` From 0aa18f8f2fa07843b3eadef32bb49f8013ee80e6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:29:47 +0000 Subject: [PATCH 011/177] feat: HelpOut WebSocket ( Fixes #9 ) --- docs/_data/Help/Get-WebSocket.json | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs/_data/Help/Get-WebSocket.json diff --git a/docs/_data/Help/Get-WebSocket.json b/docs/_data/Help/Get-WebSocket.json new file mode 100644 index 0000000..8824722 --- /dev/null +++ b/docs/_data/Help/Get-WebSocket.json @@ -0,0 +1,49 @@ +{ + "Synopsis": "WebSockets in PowerShell.", + "Description": "Get-WebSocket allows you to connect to a websocket and handle the output.", + "Parameters": [ + { + "Name": null, + "Type": null, + "Description": "", + "Required": false, + "Position": 0, + "Aliases": null, + "DefaultValue": null, + "Globbing": false, + "PipelineInput": null, + "variableLength": false + } + ], + "Notes": [ + null + ], + "CommandType": "Function", + "Component": [ + null + ], + "Inputs": [ + null + ], + "Outputs": [ + null + ], + "Links": [], + "Examples": [ + { + "Title": "EXAMPLE 1", + "Markdown": "Create a WebSocket job that connects to a WebSocket and outputs the results.", + "Code": "Get-WebSocket -WebSocketUri \"wss://localhost:9669\"" + }, + { + "Title": "EXAMPLE 2", + "Markdown": "Get is the default verb, so we can just say WebSocket.", + "Code": "websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post" + }, + { + "Title": "EXAMPLE 3", + "Markdown": "", + "Code": "websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}]+') {\n $matches.0 \n }\n }" + } + ] +} \ No newline at end of file From 0978841dc9dc5cb0ef7c7cfec1320929703ac96a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:29:47 +0000 Subject: [PATCH 012/177] feat: HelpOut WebSocket ( Fixes #9 ) --- docs/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 docs/README.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..0fea519 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,2 @@ +# WebSocket +Work with WebSockets in PowerShell From ab26df1f2862068de5bb6deceaee0b7eb21acabd Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:29:47 +0000 Subject: [PATCH 013/177] feat: HelpOut WebSocket ( Fixes #9 ) --- docs/Assets/WebSocket-Animated.svg | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/Assets/WebSocket-Animated.svg diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg new file mode 100644 index 0000000..7c09134 --- /dev/null +++ b/docs/Assets/WebSocket-Animated.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + || + || + WebSocket + From 771a43e1a27af5a4b30a9d0467d038d105df0d50 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:29:48 +0000 Subject: [PATCH 014/177] feat: HelpOut WebSocket ( Fixes #9 ) --- docs/Assets/WebSocket.svg | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/Assets/WebSocket.svg diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg new file mode 100644 index 0000000..c6d1957 --- /dev/null +++ b/docs/Assets/WebSocket.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + || + || + WebSocket + From 3f287c8c925440a86e53e1ce5ab98e843e11558c Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 23:45:14 -0800 Subject: [PATCH 015/177] docs: Adding Logo to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0fea519..0ab2595 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ +
+ WebSocket Logo (Animated) +
+ # WebSocket Work with WebSockets in PowerShell From 2aba9295afa2adae14e5d45b6f892bf107450f49 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:47:11 +0000 Subject: [PATCH 016/177] docs: Adding Logo to README --- docs/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/README.md b/docs/README.md index 0fea519..0ab2595 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,2 +1,6 @@ +
+ WebSocket Logo (Animated) +
+ # WebSocket Work with WebSockets in PowerShell From bab63cf75e8a8110d126b42911ae69a743211eea Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 23:53:06 -0800 Subject: [PATCH 017/177] docs: CONTRIBUTING.md ( Fixes #11 ) --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ff18c8f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,7 @@ +# Contibuting + +We welcome suggestions and careful contributions. + +To suggest something, please [open an issue](https://github.com/PowerShellWeb/WebSocket/issues) or start a [discussion](https://github.com/PowerShellWeb/WebSocket/discussion) + +To add a feature, please open an issue and create a pull request. From 6c13a8f73c8278ed6213772ff3c992c38c1e3c9d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:55:20 +0000 Subject: [PATCH 018/177] docs: CONTRIBUTING.md ( Fixes #11 ) --- docs/CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/CONTRIBUTING.md diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md new file mode 100644 index 0000000..ff18c8f --- /dev/null +++ b/docs/CONTRIBUTING.md @@ -0,0 +1,7 @@ +# Contibuting + +We welcome suggestions and careful contributions. + +To suggest something, please [open an issue](https://github.com/PowerShellWeb/WebSocket/issues) or start a [discussion](https://github.com/PowerShellWeb/WebSocket/discussion) + +To add a feature, please open an issue and create a pull request. From 1909b037728ee782012e9ebf2d87deb0c20b56ce Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Tue, 26 Nov 2024 23:57:19 -0800 Subject: [PATCH 019/177] docs: CODE_OF_CONDUCT.md ( Fixes #13 ) --- CODE_OF_CONDUCT.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..ca2e753 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,9 @@ +# Code of Conduct + +We have a simple subjective code of conduct: + +1. Be Respectful +2. Be Helpful +3. Do No Harm + +Failure to follow the code of conduct may result in blocks or banishment. \ No newline at end of file From ba666c9e98497a0221137cd4a112bfae28dbbe6b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 07:59:33 +0000 Subject: [PATCH 020/177] docs: CODE_OF_CONDUCT.md ( Fixes #13 ) --- docs/CODE_OF_CONDUCT.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/CODE_OF_CONDUCT.md diff --git a/docs/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..a132093 --- /dev/null +++ b/docs/CODE_OF_CONDUCT.md @@ -0,0 +1,9 @@ +# Code of Conduct + +We have a simple subjective code of conduct: + +1. Be Respectful +2. Be Helpful +3. Do No Harm + +Failure to follow the code of conduct may result in blocks or banishment. From 3b4ccefc95e368b6e8c48430e6f9c0038a122f0d Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:03:25 -0800 Subject: [PATCH 021/177] docs: SECURITY.md ( Fixes #12 ) --- SECURITY.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..2b6cad9 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,20 @@ +# Security + +We take security seriously. If you believe you have discovered a vulnerability, please [file an issue](https://github.com/PowerShellWeb/WebSocket/issues). + +## Special Security Considerations + +WebSockets are not inherantly dangerous, but what comes out of them might well be. + +In order to avoid data poisoning attacks, please _never_ directly run any code from the internet that you do not trust. + +Please also assume all WebSockets are untrustworthy. + +There are a few easy ways to do this. + +WebSocket responses should never: + +1. Be piped into `Invoke-Expression` +2. Be expanded with `.ExpandString` +3. Be directly placed into a `SQL` query + From a748a6e7517566dc26d932fc16e1aadbf2a25708 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:05:20 +0000 Subject: [PATCH 022/177] docs: SECURITY.md ( Fixes #12 ) --- docs/SECURITY.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/SECURITY.md diff --git a/docs/SECURITY.md b/docs/SECURITY.md new file mode 100644 index 0000000..d713011 --- /dev/null +++ b/docs/SECURITY.md @@ -0,0 +1,19 @@ +# Security + +We take security seriously. If you believe you have discovered a vulnerability, please [file an issue](https://github.com/PowerShellWeb/WebSocket/issues). + +## Special Security Considerations + +WebSockets are not inherantly dangerous, but what comes out of them might well be. + +In order to avoid data poisoning attacks, please _never_ directly run any code from the internet that you do not trust. + +Please also assume all WebSockets are untrustworthy. + +There are a few easy ways to do this. + +WebSocket responses should never: + +1. Be piped into `Invoke-Expression` +2. Be expanded with `.ExpandString` +3. Be directly placed into a `SQL` query From 86c76a26d0c8b4aa2d75d89470a02c055285940b Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:04:59 -0800 Subject: [PATCH 023/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement --- Build/WebSocket.PSSVG.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index d2c9d71..f80ea53 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -100,7 +100,7 @@ foreach ($variant in '','Animated') { $symbolDefinition SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% SVG.Text -X 42% -Y 50% @TextSplat -Content '||' - SVG.Text -X 52% -Y 50% @TextSplat -Content '||' + SVG.Text -X 56% -Y 50% @TextSplat -Content '||' SVG.text -X 50% -Y 80% -TextAnchor middle -FontFamily $fontName -Style "font-family:`"$fontName`",sans-serif" -FontSize 4.2em -Fill '#4488FF' -Content 'WebSocket' -Class 'foreground-fill' -DominantBaseline middle ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 } From e6b3c2cf58b26478329c135e5728c553e0cdd4c0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:06:38 +0000 Subject: [PATCH 024/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement --- Assets/WebSocket.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg index c6d1957..586a3e6 100644 --- a/Assets/WebSocket.svg +++ b/Assets/WebSocket.svg @@ -21,6 +21,6 @@ || - || + || WebSocket From 56072ce862f0c50c49e3382b1ee602e31ffba6a8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:06:38 +0000 Subject: [PATCH 025/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement --- Assets/WebSocket-Animated.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg index 7c09134..96db9da 100644 --- a/Assets/WebSocket-Animated.svg +++ b/Assets/WebSocket-Animated.svg @@ -33,6 +33,6 @@ || - || + || WebSocket From 49930e5d824c6765156294da5fbb787c27a3d3f0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:07:00 +0000 Subject: [PATCH 026/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement --- docs/Assets/WebSocket-Animated.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg index 7c09134..96db9da 100644 --- a/docs/Assets/WebSocket-Animated.svg +++ b/docs/Assets/WebSocket-Animated.svg @@ -33,6 +33,6 @@ || - || + || WebSocket From c53c28c11d895ffff63a8126a9042f18ff37d195 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:07:00 +0000 Subject: [PATCH 027/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement --- docs/Assets/WebSocket.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg index c6d1957..586a3e6 100644 --- a/docs/Assets/WebSocket.svg +++ b/docs/Assets/WebSocket.svg @@ -21,6 +21,6 @@ || - || + || WebSocket From bfc7b98a5b20f05d796140435de9fbea750fab49 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:07:24 -0800 Subject: [PATCH 028/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement, using more splatting --- Build/WebSocket.PSSVG.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index f80ea53..f1fcee2 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -99,8 +99,8 @@ foreach ($variant in '','Animated') { SVG.GoogleFont -FontName $fontName $symbolDefinition SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% - SVG.Text -X 42% -Y 50% @TextSplat -Content '||' - SVG.Text -X 56% -Y 50% @TextSplat -Content '||' - SVG.text -X 50% -Y 80% -TextAnchor middle -FontFamily $fontName -Style "font-family:`"$fontName`",sans-serif" -FontSize 4.2em -Fill '#4488FF' -Content 'WebSocket' -Class 'foreground-fill' -DominantBaseline middle + SVG.Text -X 43% -Y 50% @TextSplat -Content '||' + SVG.Text -X 55% -Y 50% @TextSplat -Content '||' + SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 } From 4328c5c1809b6a27b8e29e427555ebcb7235bcf2 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:09:17 +0000 Subject: [PATCH 029/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement, using more splatting --- Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg index 586a3e6..b308886 100644 --- a/Assets/WebSocket.svg +++ b/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From c986225361ed39b0a0fb5278884cad2f7d0506e7 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:09:17 +0000 Subject: [PATCH 030/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement, using more splatting --- Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg index 96db9da..4c72160 100644 --- a/Assets/WebSocket-Animated.svg +++ b/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From 4a5c2bbbc57bcea9a27e097e1c54cef57bfb8d66 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:09:30 -0800 Subject: [PATCH 031/177] style: WebSocket logo ( Fixes #5 ) Nudging plug placement --- Build/WebSocket.PSSVG.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index f1fcee2..c6e741c 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -99,8 +99,8 @@ foreach ($variant in '','Animated') { SVG.GoogleFont -FontName $fontName $symbolDefinition SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% - SVG.Text -X 43% -Y 50% @TextSplat -Content '||' - SVG.Text -X 55% -Y 50% @TextSplat -Content '||' + SVG.Text -X 42% -Y 50% @TextSplat -Content '||' + SVG.Text -X 54% -Y 50% @TextSplat -Content '||' SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 } From df53cfda4cc99314ea5d172628a1530ff39adf27 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:09:39 +0000 Subject: [PATCH 032/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement, using more splatting --- docs/Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg index 96db9da..4c72160 100644 --- a/docs/Assets/WebSocket-Animated.svg +++ b/docs/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From 85480cf34ea69c1cdf579208e538eaed9afd794a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:09:39 +0000 Subject: [PATCH 033/177] style: WebSocket logo ( Fixes #5 ) Updating plug placement, using more splatting --- docs/Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg index 586a3e6..b308886 100644 --- a/docs/Assets/WebSocket.svg +++ b/docs/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From 7b46b1f443e2cd535f3badf9d39434af823f4fce Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:11:18 +0000 Subject: [PATCH 034/177] Merge branch 'Initialize-WebSocket' of https://github.com/PowerShellWeb/WebSocket into Initialize-WebSocket --- Assets/WebSocket.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg index b308886..e88049a 100644 --- a/Assets/WebSocket.svg +++ b/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || + || + || WebSocket From d5cf66e231d4023242d7e8f787c54cb14ab6cb99 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:11:18 +0000 Subject: [PATCH 035/177] Merge branch 'Initialize-WebSocket' of https://github.com/PowerShellWeb/WebSocket into Initialize-WebSocket --- Assets/WebSocket-Animated.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg index 4c72160..c0299af 100644 --- a/Assets/WebSocket-Animated.svg +++ b/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || + || + || WebSocket From e9ef7e1949cf7631da51151bff00e502d1228e7c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:11:39 +0000 Subject: [PATCH 036/177] Merge branch 'Initialize-WebSocket' of https://github.com/PowerShellWeb/WebSocket into Initialize-WebSocket --- docs/Assets/WebSocket-Animated.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg index 4c72160..c0299af 100644 --- a/docs/Assets/WebSocket-Animated.svg +++ b/docs/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || + || + || WebSocket From 0be8a26a15a07db532a78734dfa4110b2c5d224e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:11:39 +0000 Subject: [PATCH 037/177] Merge branch 'Initialize-WebSocket' of https://github.com/PowerShellWeb/WebSocket into Initialize-WebSocket --- docs/Assets/WebSocket.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg index b308886..e88049a 100644 --- a/docs/Assets/WebSocket.svg +++ b/docs/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || + || + || WebSocket From eac43724bf9434c9b35284c5bcd8d370075bd43c Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:26:18 -0800 Subject: [PATCH 038/177] feat: Get-WebSocket ( Fixes #2 ) Adding Examples and aliasing -Watch to -Tail --- Commands/Get-WebSocket.ps1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Commands/Get-WebSocket.ps1 b/Commands/Get-WebSocket.ps1 index 37ee9b3..72b4384 100644 --- a/Commands/Get-WebSocket.ps1 +++ b/Commands/Get-WebSocket.ps1 @@ -15,7 +15,16 @@ function Get-WebSocket { Foreach-Object { $in = $_ if ($in.commit.record.text -match '[\p{IsHighSurrogates}\p{IsLowSurrogates}]+') { - $matches.0 + Write-Host $matches.0 -NoNewline + } + } + .EXAMPLE + $emojiPattern = '[\p{IsHighSurrogates}\p{IsLowSurrogates}\p{IsVariationSelectors}\p{IsCombiningHalfMarks}]+)' + websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | + Foreach-Object { + $in = $_ + if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)"") { + Write-Host $matches.0 -NoNewline } } #> @@ -63,7 +72,8 @@ function Get-WebSocket { [ScriptBlock] $OnWarning, - # If set, will tail the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. + # If set, will watch the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. + [Alias('Tail')] [switch] $Watch, From 0d1a6431b9e42113256ae5196a3b505c96bd142a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:28:12 +0000 Subject: [PATCH 039/177] feat: Get-WebSocket ( Fixes #2 ) Adding Examples and aliasing -Watch to -Tail --- docs/Get-WebSocket.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/Get-WebSocket.md b/docs/Get-WebSocket.md index 346fd07..ab80f95 100644 --- a/docs/Get-WebSocket.md +++ b/docs/Get-WebSocket.md @@ -30,10 +30,20 @@ websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.f Foreach-Object { $in = $_ if ($in.commit.record.text -match '[\p{IsHighSurrogates}\p{IsLowSurrogates}]+') { - $matches.0 + Write-Host $matches.0 -NoNewline } } ``` +> EXAMPLE 4 + +$emojiPattern = '[\p{IsHighSurrogates}\p{IsLowSurrogates}\p{IsVariationSelectors}\p{IsCombiningHalfMarks}]+)' +websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | + Foreach-Object { + $in = $_ + if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)"") { + Write-Host $matches.0 -NoNewline + } + } --- @@ -110,11 +120,11 @@ The Scriptblock to run when the WebSocket job produces a warning. |`[ScriptBlock]`|false |named |false | #### **Watch** -If set, will tail the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. +If set, will watch the output of the WebSocket job, outputting results continuously instead of outputting a websocket job. -|Type |Required|Position|PipelineInput| -|----------|--------|--------|-------------| -|`[Switch]`|false |named |false | +|Type |Required|Position|PipelineInput|Aliases| +|----------|--------|--------|-------------|-------| +|`[Switch]`|false |named |false |Tail | #### **ConnectionTimeout** The maximum time to wait for a connection to be established. From 40b2796fcb4d9c47281cafeb00dfdb9f3916c4ad Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:28:12 +0000 Subject: [PATCH 040/177] feat: Get-WebSocket ( Fixes #2 ) Adding Examples and aliasing -Watch to -Tail --- docs/_data/Help/Get-WebSocket.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/_data/Help/Get-WebSocket.json b/docs/_data/Help/Get-WebSocket.json index 8824722..491acaa 100644 --- a/docs/_data/Help/Get-WebSocket.json +++ b/docs/_data/Help/Get-WebSocket.json @@ -43,7 +43,12 @@ { "Title": "EXAMPLE 3", "Markdown": "", - "Code": "websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}]+') {\n $matches.0 \n }\n }" + "Code": "websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}]+') {\n Write-Host $matches.0 -NoNewline\n }\n }" + }, + { + "Title": "EXAMPLE 4", + "Markdown": "", + "Code": "$emojiPattern = '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}\\p{IsVariationSelectors}\\p{IsCombiningHalfMarks}]+)'\nwebsocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match \"(?>(?:$emojiPattern|\\#\\w+)\"\") {\n Write-Host $matches.0 -NoNewline\n }\n }" } ] } \ No newline at end of file From 241f7fbb73195148185bde70a2abfef6bfce6d39 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:28:19 -0800 Subject: [PATCH 041/177] docs: README content ( Fixes #1 ) --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 0ab2595..5b5b4f2 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,31 @@ # WebSocket + Work with WebSockets in PowerShell + +WebSocket is a small PowerShell module that helps you work with WebSockets. + +It has a single command: Get-WebSocket. + +Because `Get` is the default verb in PowerShell, you can just call it `WebSocket`. + + +### Installing and Importing + +~~~PowerShell +Install-Module WebSocket -Scope CurrentUser -Force +Import-Module WebSocket -Force -PassThru +~~~ + +### Get-WebSocket + +To connect to a websocket and start listening for results, use [Get-WebSocket](Get-WebSocket.md) + +~~~PowerShell +# Because get is the default verb, we can just say `WebSocket` +# The `-Watch` parameter will continually watch for results +websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Watch +~~~ + +To stop watching a websocket, simply stop the background job. \ No newline at end of file From 729763daa5c8ce6525bc9193cf8bb9751a46bdf4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:30:35 +0000 Subject: [PATCH 042/177] docs: README content ( Fixes #1 ) --- docs/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/README.md b/docs/README.md index 0ab2595..f263805 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,4 +3,31 @@ # WebSocket + Work with WebSockets in PowerShell + +WebSocket is a small PowerShell module that helps you work with WebSockets. + +It has a single command: Get-WebSocket. + +Because `Get` is the default verb in PowerShell, you can just call it `WebSocket`. + + +### Installing and Importing + +~~~PowerShell +Install-Module WebSocket -Scope CurrentUser -Force +Import-Module WebSocket -Force -PassThru +~~~ + +### Get-WebSocket + +To connect to a websocket and start listening for results, use [Get-WebSocket](Get-WebSocket.md) + +~~~PowerShell +# Because get is the default verb, we can just say `WebSocket` +# The `-Watch` parameter will continually watch for results +websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Watch +~~~ + +To stop watching a websocket, simply stop the background job. From 8e0e2907ed1237a90dcad928a32042a146b52ae8 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:31:23 -0800 Subject: [PATCH 043/177] style: WebSocket Logo ( Fixes #5 ) Anchoring text to middle --- Build/WebSocket.PSSVG.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index c6e741c..96f119d 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -93,6 +93,7 @@ foreach ($variant in '','Animated') { Fill='#4488FF' Class='foreground-fill' DominantBaseline='middle' + TextAnchor='middle' } svg -Content @( From a4614b2d679b77a8e3e2be6dc8f0d650696d2b33 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:33:09 +0000 Subject: [PATCH 044/177] style: WebSocket Logo ( Fixes #5 ) Anchoring text to middle --- Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg index e88049a..de229be 100644 --- a/Assets/WebSocket.svg +++ b/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From c8c5fc2f08a51255b26f36fac964766a66b70609 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:33:09 +0000 Subject: [PATCH 045/177] style: WebSocket Logo ( Fixes #5 ) Anchoring text to middle --- Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg index c0299af..e593d8f 100644 --- a/Assets/WebSocket-Animated.svg +++ b/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From 76bf3289615ab5aafb2f782f9814605c09194cb5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:33:30 +0000 Subject: [PATCH 046/177] style: WebSocket Logo ( Fixes #5 ) Anchoring text to middle --- docs/Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg index c0299af..e593d8f 100644 --- a/docs/Assets/WebSocket-Animated.svg +++ b/docs/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From c7c8df121c426a78f214cf6c1016827ebfe8d1f6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:33:30 +0000 Subject: [PATCH 047/177] style: WebSocket Logo ( Fixes #5 ) Anchoring text to middle --- docs/Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg index e88049a..de229be 100644 --- a/docs/Assets/WebSocket.svg +++ b/docs/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From 789efd66b385f5d12b7502088f5b5c8da62b32ae Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:34:01 -0800 Subject: [PATCH 048/177] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- Build/WebSocket.PSSVG.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index 96f119d..b29c434 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -92,8 +92,7 @@ foreach ($variant in '','Animated') { Style="font-family:`"$fontName`",sans-serif" Fill='#4488FF' Class='foreground-fill' - DominantBaseline='middle' - TextAnchor='middle' + DominantBaseline='middle' } svg -Content @( @@ -102,6 +101,6 @@ foreach ($variant in '','Animated') { SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% SVG.Text -X 42% -Y 50% @TextSplat -Content '||' SVG.Text -X 54% -Y 50% @TextSplat -Content '||' - SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' + SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' -TextAnchor 'middle' ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 } From 880cf022f6d3625c56ee9d293c27ef4fcd7b0d91 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:35:40 +0000 Subject: [PATCH 049/177] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket.svg b/Assets/WebSocket.svg index de229be..6974911 100644 --- a/Assets/WebSocket.svg +++ b/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From 4c44b362a49cb8b365aaf5e574b2be4fd92e730d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:35:40 +0000 Subject: [PATCH 050/177] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/WebSocket-Animated.svg b/Assets/WebSocket-Animated.svg index e593d8f..3542af9 100644 --- a/Assets/WebSocket-Animated.svg +++ b/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From 016359aaba3e579d083cadd50a5afdeb0093c233 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:36:00 +0000 Subject: [PATCH 051/177] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- docs/Assets/WebSocket-Animated.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket-Animated.svg b/docs/Assets/WebSocket-Animated.svg index e593d8f..3542af9 100644 --- a/docs/Assets/WebSocket-Animated.svg +++ b/docs/Assets/WebSocket-Animated.svg @@ -32,7 +32,7 @@ - || - || - WebSocket + || + || + WebSocket From 33983eada82b641065242172c63acbde268aa3e8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 08:36:00 +0000 Subject: [PATCH 052/177] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- docs/Assets/WebSocket.svg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Assets/WebSocket.svg b/docs/Assets/WebSocket.svg index de229be..6974911 100644 --- a/docs/Assets/WebSocket.svg +++ b/docs/Assets/WebSocket.svg @@ -20,7 +20,7 @@ - || - || - WebSocket + || + || + WebSocket From 5e5e1e1cfec9f3b2c598c22453b4ba22857440ce Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:40:11 -0800 Subject: [PATCH 053/177] feat: WebSocket Container.init.ps1 ( Fixes #16 ) --- Container.init.ps1 | 111 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 Container.init.ps1 diff --git a/Container.init.ps1 b/Container.init.ps1 new file mode 100644 index 0000000..352fe81 --- /dev/null +++ b/Container.init.ps1 @@ -0,0 +1,111 @@ +<# +.SYNOPSIS + Initializes a container during build. +.DESCRIPTION + Initializes the container image with the necessary modules and packages. + + This script should be called from the Dockerfile, during the creation of the container image. + + ~~~Dockerfile + # Thank you Microsoft! Thank you PowerShell! Thank you Docker! + FROM mcr.microsoft.com/powershell + # Set the shell to PowerShell (thanks again, Docker!) + SHELL ["/bin/pwsh", "-nologo", "-command"] + # Run the initialization script. This will do all remaining initialization in a single layer. + RUN --mount=type=bind,src=./,target=/Initialize ./Initialize/Container.init.ps1 + ~~~ + + The scripts arguments can be provided with either an `ARG` or `ENV` instruction in the Dockerfile. +.NOTES + Did you know that in PowerShell you can 'use' namespaces that do not really exist? + This seems like a nice way to describe a relationship to a container image. + That is why this file is using the namespace 'mcr.microsoft.com/powershell'. + (this does nothing, but most likely will be used in the future) +#> +using namespace 'mcr.microsoft.com/powershell AS powerShell' + +param( +# The name of the module to be installed. +[string]$ModuleName = $( + if ($env:ModuleName) { $env:ModuleName } + else { + (Get-ChildItem -Path $PSScriptRoot | + Where-Object Extension -eq '.psd1' | + Select-String 'ModuleVersion\s=' | + Select-Object -ExpandProperty Path -First 1) -replace '\.psd1$' + } +), +# The packages to be installed. +[string[]]$InstallAptGet = @($env:InstallAptGet -split ','), +# The modules to be installed. +[string[]]$InstallModule = @($env:InstallModule -split ','), +# The Ruby gems to be installed. +[string[]]$InstallRubyGem = @($env:InstallRubyGem -split ','), + +# If set, will keep the .git directories. +[switch]$KeepGit = $($env:KeepGit -match $true) +) + +# Copy all container-related scripts to the root of the container. +Get-ChildItem -Path $PSScriptRoot | + Where-Object Name -Match '^Container\..+?\.ps1$' | + Copy-Item -Destination / + +# Create a profile +New-Item -Path $Profile -ItemType File -Force | Out-Null + +if ($ModuleName) { + # Get the root module directory + $rootModuleDirectory = @($env:PSModulePath -split '[;:]')[0] + + # Determine the path to the module destination. + $moduleDestination = "$rootModuleDirectory/$ModuleName" + # Copy the module to the destination + # (this is being used instead of the COPY statement in Docker, to avoid additional layers). + Copy-Item -Path "$psScriptRoot" -Destination $moduleDestination -Recurse -Force + + # and import this module in the profile + Add-Content -Path $profile -Value "Import-Module $ModuleName" -Force +} + +# If we have modules to install +if ($InstallModule) { + # Install the modules + Install-Module -Name $InstallModule -Force -AcceptLicense -Scope CurrentUser + # and import them in the profile + Add-Content -Path $Profile -Value "Import-Module '$($InstallModule -join "','")'" -Force +} + +# If we have packages to install +if ($InstallAptGet) { + # install the packages + apt-get update && + apt-get install -y @InstallAptGet '--no-install-recommends' && + apt-get clean | + Out-Host +} + +if ($InstallRubyGem) { + # Install the Ruby gems + gem install @InstallRubyGem +} + +if ($ModuleName) { + # In our profile, push into the module's directory + Add-Content -Path $Profile -Value "Get-Module $ModuleName | Split-Path | Push-Location" -Force +} + +if (-not $KeepGit) { + # Remove the .git directories from any modules + Get-ChildItem -Path $rootModuleDirectory -Directory -Force -Recurse | + Where-Object Name -eq '.git' | + Remove-Item -Recurse -Force +} + +# Congratulations! You have successfully initialized the container image. +# This script should work in about any module, with minor adjustments. +# If you have any adjustments, please put them below here, in the `#region Custom` + +#region Custom + +#endregion Custom \ No newline at end of file From a117c89b74a8484e6eaa18681d8e7cb76c1f0f94 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:41:38 -0800 Subject: [PATCH 054/177] feat: WebSocket Container.start.ps1 ( Fixes #17 ) --- Container.start.ps1 | 73 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Container.start.ps1 diff --git a/Container.start.ps1 b/Container.start.ps1 new file mode 100644 index 0000000..dd49394 --- /dev/null +++ b/Container.start.ps1 @@ -0,0 +1,73 @@ +<# +.SYNOPSIS + Starts the container. +.DESCRIPTION + Starts a container. + + This script should be called from the Dockerfile as the ENTRYPOINT (or from within the ENTRYPOINT). + + It should be deployed to the root of the container image. + + ~~~Dockerfile + # Thank you Microsoft! Thank you PowerShell! Thank you Docker! + FROM mcr.microsoft.com/powershell + # Set the shell to PowerShell (thanks again, Docker!) + SHELL ["/bin/pwsh", "-nologo", "-command"] + # Run the initialization script. This will do all remaining initialization in a single layer. + RUN --mount=type=bind,src=./,target=/Initialize ./Initialize/Container.init.ps1 + + ENTRYPOINT ["pwsh", "-nologo", "-file", "/Container.start.ps1"] + ~~~ +.NOTES + Did you know that in PowerShell you can 'use' namespaces that do not really exist? + This seems like a nice way to describe a relationship to a container image. + That is why this file is using the namespace 'mcr.microsoft.com/powershell'. + (this does nothing, but most likely will be used in the future) +#> +using namespace 'ghcr.io/powershellweb/websocket' + +param() + +$env:IN_CONTAINER = $true +$PSStyle.OutputRendering = 'Ansi' + +$mountedFolders = @(if (Test-Path '/proc/mounts') { + (Select-String "\S+\s(?

\S+).+rw?,.+symlinkroot=/mnt/host" "/proc/mounts").Matches.Groups | + Where-Object Name -eq p | + Get-Item -path { $_.Value } +}) + +if ($mountedFolders) { + "Mounted $($mountedFolders.Length) folders:" | Out-Host + $mountedFolders | Out-Host +} + +if ($args) { + # If there are arguments, output them (you could handle them in a more complex way). + "$args" | Out-Host + $global:ContainerStartArguments = @() + $args + + #region Custom + + #endregion Custom +} else { + # If there are no arguments, see if there is a Microservice.ps1 + if (Test-Path './Microservice.ps1') { + # If there is a Microservice.ps1, run it. + . ./Microservice.ps1 + } + #region Custom + else + { + + } + #endregion Custom +} + +# If you want to do something when the container is stopped, you can register an event. +# This can call a script that does some cleanup, or sends a message as the service is exiting. +Register-EngineEvent -SourceIdentifier PowerShell.Exiting -Action { + if (Test-Path '/Container.stop.ps1') { + & /Container.stop.ps1 + } +} | Out-Null \ No newline at end of file From 780aa40f494a6b6c4f6e8c257c84de7833750a29 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:42:26 -0800 Subject: [PATCH 055/177] feat: WebSocket Container.stop.ps1 ( Fixes #18 ) --- Container.stop.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Container.stop.ps1 diff --git a/Container.stop.ps1 b/Container.stop.ps1 new file mode 100644 index 0000000..edb66db --- /dev/null +++ b/Container.stop.ps1 @@ -0,0 +1,9 @@ +<# +.SYNOPSIS + Stops the container. +.DESCRIPTION + This script is called when the container is about to stop. + + It can be used to perform any necessary cleanup before the container is stopped. +#> +"Container now exiting, thank you for using WebSocket!" | Out-Host From cdad7e3d1b274a07f1d8a7a297eb77c3a6ce1bd8 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:43:39 -0800 Subject: [PATCH 056/177] feat: WebSocket Dockerfile ( Fixes #15 ) --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6df5630 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Thank you Microsoft! Thank you PowerShell! Thank you Docker! +FROM mcr.microsoft.com/powershell AS powershell + +# Set the module name to the name of the module we are building +ENV ModuleName=WebSocket +ENV InstallAptGet="git","curl","ca-certificates","libc6","libgcc1" +ENV InstallModule="ugit" +# Copy the module into the container +RUN --mount=type=bind,src=./,target=/Initialize /bin/pwsh -nologo -command /Initialize/Container.init.ps1 +# Set the entrypoint to the script we just created. +ENTRYPOINT [ "/bin/pwsh","-nologo","-noexit","-file","/Container.start.ps1" ] \ No newline at end of file From f44e5b9b4e71bff68616a2fbe26e8a56554f6514 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:44:37 -0800 Subject: [PATCH 057/177] feat: WebSocket Container ( Fixes #8 ) --- .github/workflows/BuildWebSocket.yml | 40 +++++++++++++ Build/GitHub/Jobs/BuildWebSocket.psd1 | 2 +- .../Steps/BuildAndPublishContainer.psd1 | 57 +++++++++++++++++++ 3 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 Build/GitHub/Steps/BuildAndPublishContainer.psd1 diff --git a/.github/workflows/BuildWebSocket.yml b/.github/workflows/BuildWebSocket.yml index 46cfbb2..6718250 100644 --- a/.github/workflows/BuildWebSocket.yml +++ b/.github/workflows/BuildWebSocket.yml @@ -504,6 +504,46 @@ jobs: uses: StartAutomating/EZOut@master - name: UseHelpOut uses: StartAutomating/HelpOut@master + - name: Log in to ghcr.io + uses: docker/login-action@master + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + env: + REGISTRY: ghcr.io + - name: Extract Docker Metadata (for branch) + if: ${{github.ref_name != 'main' && github.ref_name != 'master' && github.ref_name != 'latest'}} + id: meta + uses: docker/metadata-action@master + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + - name: Extract Docker Metadata (for main) + if: ${{github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest'}} + id: metaMain + uses: docker/metadata-action@master + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + flavor: latest=true + - name: Build and push Docker image (from main) + if: ${{github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'latest'}} + uses: docker/build-push-action@master + with: + context: . + push: true + tags: ${{ steps.metaMain.outputs.tags }} + labels: ${{ steps.metaMain.outputs.labels }} + - name: Build and push Docker image (from branch) + if: ${{github.ref_name != 'main' && github.ref_name != 'master' && github.ref_name != 'latest'}} + uses: docker/build-push-action@master + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} diff --git a/Build/GitHub/Jobs/BuildWebSocket.psd1 b/Build/GitHub/Jobs/BuildWebSocket.psd1 index b503a74..a097d8c 100644 --- a/Build/GitHub/Jobs/BuildWebSocket.psd1 +++ b/Build/GitHub/Jobs/BuildWebSocket.psd1 @@ -29,6 +29,6 @@ uses = './' id = 'WebSocketAction' },#> - #'BuildAndPublishContainer' + 'BuildAndPublishContainer' ) } \ No newline at end of file diff --git a/Build/GitHub/Steps/BuildAndPublishContainer.psd1 b/Build/GitHub/Steps/BuildAndPublishContainer.psd1 new file mode 100644 index 0000000..4145af3 --- /dev/null +++ b/Build/GitHub/Steps/BuildAndPublishContainer.psd1 @@ -0,0 +1,57 @@ +@{ + 'name'='Log in to ghcr.io' + 'uses'='docker/login-action@master' + 'with'=@{ + 'registry'='${{ env.REGISTRY }}' + 'username'='${{ github.actor }}' + 'password'='${{ secrets.GITHUB_TOKEN }}' + } + env = @{ + 'REGISTRY'='ghcr.io' + } +} +@{ + name = 'Extract Docker Metadata (for branch)' + if = '${{github.ref_name != ''main'' && github.ref_name != ''master'' && github.ref_name != ''latest''}}' + id = 'meta' + uses = 'docker/metadata-action@master' + with = @{ + 'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}' + } + env = @{ + REGISTRY = 'ghcr.io' + IMAGE_NAME = '${{ github.repository }}' + } +} +@{ + name = 'Extract Docker Metadata (for main)' + if = '${{github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest''}}' + id = 'metaMain' + uses = 'docker/metadata-action@master' + with = @{ + 'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}' + 'flavor'='latest=true' + } +} +@{ + name = 'Build and push Docker image (from main)' + if = '${{github.ref_name == ''main'' || github.ref_name == ''master'' || github.ref_name == ''latest''}}' + uses = 'docker/build-push-action@master' + with = @{ + 'context'='.' + 'push'='true' + 'tags'='${{ steps.metaMain.outputs.tags }}' + 'labels'='${{ steps.metaMain.outputs.labels }}' + } +} +@{ + name = 'Build and push Docker image (from branch)' + if = '${{github.ref_name != ''main'' && github.ref_name != ''master'' && github.ref_name != ''latest''}}' + uses = 'docker/build-push-action@master' + with = @{ + 'context'='.' + 'push'='true' + 'tags'='${{ steps.meta.outputs.tags }}' + 'labels'='${{ steps.meta.outputs.labels }}' + } +} \ No newline at end of file From b35781b7d226a4d3903b0b25eb6aeebdf3997da4 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:05:07 -0800 Subject: [PATCH 058/177] feat: WebSocket Example fix ( Fixes #2 ) --- Commands/Get-WebSocket.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/Get-WebSocket.ps1 b/Commands/Get-WebSocket.ps1 index 72b4384..3723f81 100644 --- a/Commands/Get-WebSocket.ps1 +++ b/Commands/Get-WebSocket.ps1 @@ -23,7 +23,7 @@ function Get-WebSocket { websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | Foreach-Object { $in = $_ - if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)"") { + if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)") { Write-Host $matches.0 -NoNewline } } From b505e855cc1054902d6459a63cb590201d2e4836 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:07:19 +0000 Subject: [PATCH 059/177] feat: WebSocket Example fix ( Fixes #2 ) --- docs/Get-WebSocket.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/Get-WebSocket.md b/docs/Get-WebSocket.md index ab80f95..a867234 100644 --- a/docs/Get-WebSocket.md +++ b/docs/Get-WebSocket.md @@ -36,14 +36,16 @@ websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.f ``` > EXAMPLE 4 +```PowerShell $emojiPattern = '[\p{IsHighSurrogates}\p{IsLowSurrogates}\p{IsVariationSelectors}\p{IsCombiningHalfMarks}]+)' websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail | Foreach-Object { $in = $_ - if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)"") { + if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)") { Write-Host $matches.0 -NoNewline } } +``` --- From 8ce23176882685224b816e3aba1889c4a550ae23 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:07:20 +0000 Subject: [PATCH 060/177] feat: WebSocket Example fix ( Fixes #2 ) --- docs/_data/Help/Get-WebSocket.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/Help/Get-WebSocket.json b/docs/_data/Help/Get-WebSocket.json index 491acaa..1d24148 100644 --- a/docs/_data/Help/Get-WebSocket.json +++ b/docs/_data/Help/Get-WebSocket.json @@ -48,7 +48,7 @@ { "Title": "EXAMPLE 4", "Markdown": "", - "Code": "$emojiPattern = '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}\\p{IsVariationSelectors}\\p{IsCombiningHalfMarks}]+)'\nwebsocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match \"(?>(?:$emojiPattern|\\#\\w+)\"\") {\n Write-Host $matches.0 -NoNewline\n }\n }" + "Code": "$emojiPattern = '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}\\p{IsVariationSelectors}\\p{IsCombiningHalfMarks}]+)'\nwebsocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match \"(?>(?:$emojiPattern|\\#\\w+)\") {\n Write-Host $matches.0 -NoNewline\n }\n }" } ] } \ No newline at end of file From b10c3d5755b6743a065679487d03522228973bb1 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:14:14 -0800 Subject: [PATCH 061/177] feat: WebSocket Website ( Fixes #19 ) --- Build/GitHub/Jobs/BuildWebSocket.psd1 | 7 +- Build/WebSocket.PSJekyll.ps1 | 119 ++++++++++++++++++++++++++ CHANGELOG.md | 8 ++ 3 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 Build/WebSocket.PSJekyll.ps1 create mode 100644 CHANGELOG.md diff --git a/Build/GitHub/Jobs/BuildWebSocket.psd1 b/Build/GitHub/Jobs/BuildWebSocket.psd1 index a097d8c..fa581af 100644 --- a/Build/GitHub/Jobs/BuildWebSocket.psd1 +++ b/Build/GitHub/Jobs/BuildWebSocket.psd1 @@ -22,7 +22,12 @@ id = 'PipeScript' }, 'RunEZOut', - 'RunHelpOut' + 'RunHelpOut', + @{ + name = 'Use PSJekyll Action' + uses = 'PowerShellWeb/PSJekyll@main' + id = 'PSJekyll' + }, <#@{ name = 'Run WebSocket (on branch)' if = '${{github.ref_name != ''main''}}' diff --git a/Build/WebSocket.PSJekyll.ps1 b/Build/WebSocket.PSJekyll.ps1 new file mode 100644 index 0000000..1be60aa --- /dev/null +++ b/Build/WebSocket.PSJekyll.ps1 @@ -0,0 +1,119 @@ +$sitePath = Join-Path $PSScriptRoot 'docs' + +$sourceModule = Get-Module PSJekyll +if (-not $sourceModule) { + $sourceModule = Import-Module ($PSScriptRoot | Split-Path) -PassThru +} + + +Push-Location $sitePath +$PSJekyll.CurrentSite.Domain = "websocket.powershellweb.com" +$PSJekyll.CurrentSite.Data = @{LastDateBuilt = [datetime]::UtcNow.Date.ToString('yyyy-MM-dd')} +$PSJekyll.CurrentSite.Data = @{ + "PSModule/Info" = $sourceModule | + Select-Object -Property Name, + Version, + Description, + Copyright, + CompanyName, + Author, + @{ + Name = 'Tags' + Expression = { @($_.PrivateData.PSData.Tags | Select-Object -Unique)} + } + "PSModule/Exports" = @( + foreach ($command in $sourceModule.ExportedCommands.Values) { + [Ordered]@{ + Name = $command.Name + CommandType = $command.CommandType + Definition = $command.Definition + ParameterName = $command.Parameters.Keys + Parameter = @( + $command.Parameters.Values | + Select-Object -Property Name, + @{ + Name='ParameterType' + Expression = { $_.ParameterType.ToString() } + }, + Position, + Mandatory, + ValueFromPipeline, + ValueFromPipelineByPropertyName, + ValueFromRemainingArguments, + HelpMessage + ) + } + } + ) + + "PSModule/FunctionNames" = $sourceModule.ExportedFunctions.Keys + "PSModule/CmdletNames" = $sourceModule.ExportedCmdlets.Keys + "PSModule/AliasNames" = $sourceModule.ExportedAliases.Keys + "PSModule/Aliases" = @($sourceModule.ExportedAliases.Values | + ForEach-Object { [Ordered]@{Name=$_.Name;Definition=$_.Definition} }) + + "PSModule/VariableNames" = $sourceModule.ExportedVariables.Keys + "PSModule/TypeNames" = $sourceModule.ExportedTypeFiles | + ForEach-Object { (Select-Xml -XPath //Types/Type -Path $_).Node.Name } + +} +$PSJekyll.CurrentSite.Data +# It is important to use [Ordered], otherwise, the order of the keys will be random. +# (this will generate more changes than necessary in the git repository, and will be noisier than desired) +$PSJekyll.CurrentSite.Config = [Ordered]@{ + title = "WebSocket" + description = "Work with WebSockets in PowerShell" + url = "https://websocket.powershellweb.com" + permalink = 'pretty' + palette = 'Konsolas' + analyticsId = 'G-R5C30737B2' + googleFont = 'Noto Sans' + stylesheet = 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css' + defaults = @([Ordered]@{ + values = @{layout='Default'} + }) +} +$PSJekyll.CurrentSite.Config + +foreach ($templateMember in $PSJekyll.Template.psobject.Members) { + if ($templateMember.Name -notmatch '^(?>layout|include)\p{P}{0,}') { + continue + } + $templateFileType = $matches.0 -replace '\p{P}{0,}$' + $templateFileName = $templateMember.Name -replace "^$([Regex]::Escape($templateFileType))\p{P}{0,}" + + if ($templateMember.Name -notmatch '\.([^\.]+?)$') { + $templateFileName += '.html' + } + $templateOut = + if ($templateMember.Invoke) { + $templateMember.Invoke() + } else { + $templateMember.Value + } + try { + $PSJekyll.CurrentSite.$templateFileType = $templateFileName, $templateOut + } catch { + $err = $_ + Write-Error -Message "Failed to set $templateFileName of $templateFileType : $err" + } +} + +$PSJekyll.CurrentSite.Page = 'Tree', "{% include SiteTree.html %}" +$PSJekyll.CurrentSite.Page = 'Repos', "{% include Repos.md %}" +$PSJekyll.CurrentSite.Page = 'Releases', "{% include Releases.md %}" +$PSJekyll.CurrentSite.Page = 'Contibutors', "{% include Contributor.md %}" +$PSJekyll.CurrentSite.Page = 'Members', "{% include OrgMember.md %}" +$PSJekyll.CurrentSite.Page = 'Function', "{% include PSFunctions.md %}" +$PSJekyll.CurrentSite.Page = 'Functions', "{% include PSFunctions.md %}" +$PSJekyll.CurrentSite.Page = 'Alias', "{% include PSAlias.md %}" +$PSJekyll.CurrentSite.Page = 'Aliases', "{% include PSAlias.md %}" +$PSJekyll.CurrentSite.Page = 'Cmdlet', "{% include PSCmdlet.md %}" +$PSJekyll.CurrentSite.Page = 'Cmdlets', "{% include PSCmdlet.md %}" +$PSJekyll.CurrentSite.Page = 'PSTag', "{% include PSTag.md %}" +$PSJekyll.CurrentSite.Page = 'PSTypeName', "{% include PSTypeName.md %}" +$PSJekyll.CurrentSite.Layout +$PSJekyll.CurrentSite.Include +$PSJekyll.CurrentSite.Page + +Pop-Location diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e2147f6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +## WebSocket 0.1 + +> Like It? [Star It](https://github.com/PowerShellWeb/WebSocket) +> Love It? [Support It](https://github.com/sponsors/StartAutomating) + +* Initial Release of WebSocket module + * Get-WebSocket gets content from a WebSocket + * Docker container for WebSocket From 21eb01bf238f34e6f20a5e6f40426d5a613eb4da Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:16:17 +0000 Subject: [PATCH 062/177] feat: WebSocket Website ( Fixes #19 ) --- docs/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/CHANGELOG.md diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md new file mode 100644 index 0000000..e2147f6 --- /dev/null +++ b/docs/CHANGELOG.md @@ -0,0 +1,8 @@ +## WebSocket 0.1 + +> Like It? [Star It](https://github.com/PowerShellWeb/WebSocket) +> Love It? [Support It](https://github.com/sponsors/StartAutomating) + +* Initial Release of WebSocket module + * Get-WebSocket gets content from a WebSocket + * Docker container for WebSocket From 10137ed0aed2b95942303f0696c2a7a1104fb9e0 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:16:21 -0800 Subject: [PATCH 063/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- .github/workflows/BuildWebSocket.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/BuildWebSocket.yml b/.github/workflows/BuildWebSocket.yml index 6718250..2f67fd1 100644 --- a/.github/workflows/BuildWebSocket.yml +++ b/.github/workflows/BuildWebSocket.yml @@ -504,6 +504,9 @@ jobs: uses: StartAutomating/EZOut@master - name: UseHelpOut uses: StartAutomating/HelpOut@master + - name: Use PSJekyll Action + uses: PowerShellWeb/PSJekyll@main + id: PSJekyll - name: Log in to ghcr.io uses: docker/login-action@master with: From 930aaeff01f31cdec22d4a088f31482ef381d786 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:30 +0000 Subject: [PATCH 064/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/LastDateBuilt.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 _data/LastDateBuilt.json diff --git a/_data/LastDateBuilt.json b/_data/LastDateBuilt.json new file mode 100644 index 0000000..96642b6 --- /dev/null +++ b/_data/LastDateBuilt.json @@ -0,0 +1 @@ +"2024-11-27" \ No newline at end of file From 0f003835815c6806aa0c4bafa548e9ca985f116f Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:30 +0000 Subject: [PATCH 065/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/Info.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _data/PSModule/Info.json diff --git a/_data/PSModule/Info.json b/_data/PSModule/Info.json new file mode 100644 index 0000000..5738161 --- /dev/null +++ b/_data/PSModule/Info.json @@ -0,0 +1,23 @@ +{ + "Name": "PSJekyll", + "Version": { + "Major": 0, + "Minor": 1, + "Build": -1, + "Revision": -1, + "MajorRevision": -1, + "MinorRevision": -1 + }, + "Description": "Scarily Simple Static Sites with Jekyll and PowerShell", + "Copyright": "2024", + "CompanyName": "PowerShellWeb", + "Author": "James Brundage", + "Tags": [ + "PowerShellWeb", + "Jekyll", + "Docker", + "Container", + "GitHubAction", + "StaticSite" + ] +} \ No newline at end of file From 8877a85759edcf5f87748a077bce5fab9b3efb88 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:30 +0000 Subject: [PATCH 066/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/FunctionNames.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _data/PSModule/FunctionNames.json diff --git a/_data/PSModule/FunctionNames.json b/_data/PSModule/FunctionNames.json new file mode 100644 index 0000000..1ddd5ff --- /dev/null +++ b/_data/PSModule/FunctionNames.json @@ -0,0 +1,7 @@ +[ + "New-PSJekyll", + "Remove-PSJekyll", + "Set-PSJekyll", + "Start-PSJekyll", + "Stop-PSJekyll" +] \ No newline at end of file From 4ba317a296ba951f3b9988cdabc905bf17fead6e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 067/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/Aliases.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 _data/PSModule/Aliases.json diff --git a/_data/PSModule/Aliases.json b/_data/PSModule/Aliases.json new file mode 100644 index 0000000..4579eb9 --- /dev/null +++ b/_data/PSModule/Aliases.json @@ -0,0 +1,22 @@ +[ + { + "Name": "New-Jekyll", + "Definition": "New-PSJekyll" + }, + { + "Name": "Remove-Jekyll", + "Definition": "Remove-PSJekyll" + }, + { + "Name": "Set-Jekyll", + "Definition": "Set-PSJekyll" + }, + { + "Name": "Start-Jekyll", + "Definition": "Start-PSJekyll" + }, + { + "Name": "Stop-Jekyll", + "Definition": "Stop-PSJekyll" + } +] \ No newline at end of file From 3cceb62211dd66a2883c261abebf7b596d805052 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 068/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/Exports.json | 1874 +++++++++++++++++++++++++++++++++++ 1 file changed, 1874 insertions(+) create mode 100644 _data/PSModule/Exports.json diff --git a/_data/PSModule/Exports.json b/_data/PSModule/Exports.json new file mode 100644 index 0000000..eaca875 --- /dev/null +++ b/_data/PSModule/Exports.json @@ -0,0 +1,1874 @@ +[ + { + "Name": "New-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Creates a new Jekyll site.\n .DESCRIPTION\n Creates a new Jekyll site, using PowerShell.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('New-Jekyll')]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # Creates scaffolding but with empty files\n [switch]\n $Blank,\n\n # Force creation even if PATH already exists\n [switch]\n $Force,\n\n # Safe mode\n [switch]\n $Safe,\n\n # Skip the bundle install\n [switch]\n $SkipBundle,\n\n # The path to the source files\n [string]\n $SourcePath,\n\n # The path to the destination files\n [string]\n $DestinationPath,\n\n # The path to the layout files\n [string]\n $LayoutPath,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace\n )\n\n $jekyllSplat = @(\n $name\n if ($blank) { '--blank' }\n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($skipBundle) { '--skip-bundle' }\n if ($sourcePath) {\"--source $sourcePath\"}\n if ($destinationPath) {\"--destination $destinationPath\"}\n if ($layoutPath) {\"--layouts $layoutPath\"}\n if ($pluginPath) {\"--plugins $($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n )\n\n $newJekyllJob = jekyll new @jekyllSplat &\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job')\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job.New-PSJekyll')\n $newJekyllJob\n", + "ParameterName": [ + "Name", + "Blank", + "Force", + "Safe", + "SkipBundle", + "SourcePath", + "DestinationPath", + "LayoutPath", + "PluginPath", + "LiquidProfile", + "Trace" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Blank", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Force", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Safe", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SkipBundle", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LayoutPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Remove-PSJekyll", + "CommandType": 2, + "Definition": " \n <#\n .SYNOPSIS\n Removes content from Jekyll\n .DESCRIPTION\n Removes files from Jekyll\n\n This is a slightly limited version of Remove-Item.\n #>\n [Alias('Remove-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0,ValueFromPipelineByPropertyName)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path\n )\n \n process {\n if (Test-Path $path) { \n Remove-Item -Path $path \n }\n } \n", + "ParameterName": [ + "Path", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Set-PSJekyll", + "CommandType": 2, + "Definition": " \n <#\n .SYNOPSIS\n Sets the content of a file in Jekyll\n .DESCRIPTION\n Sets the content of a file in Jekyll.\n\n This is only slightly smarter than Set-Content. \n \n It will convert the content to JSON if the file ends in .json, and to CSV if the file ends in .csv or .tsv.\n\n Otherwise, it will create a YAML header and then set the content.\n #>\n [Alias('Set-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path,\n \n # If set, will return the file object\n [switch]\n $PassThru,\n \n # The content to set\n [Parameter(ValueFromPipeline)]\n [object]\n $Content,\n\n # Any metadata to set. \n # This will create a YAML header, which is required for most files in Jekyll to be processed properly.\n [Alias('YamlHeader')]\n [Collections.IDictionary]\n $MetaData = [Ordered]@{}\n )\n \n $allInput = @($input)\n if ((-not $allInput) -and $Content) {\n $allInput = @($Content)\n }\n\n if (-not $allInput) { return }\n if (-not (Test-Path $path)) { \n New-Item -Path $path -Type File -Force | Out-Null\n if (-not $?) { return }\n }\n \n if ($path -match '\\.json$') {\n if ($allInput.Length -eq 1) { \n ConvertTo-Json -InputObject $allInput[0] -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } else {\n ConvertTo-Json -InputObject $allInput -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } \n } \n elseif ($path -match '\\.[ct]sv$') {\n $csvSplat = [Ordered]@{Path=$path}\n if ($path -match '\\.t') {\n $csvSplat.Delimiter = \"`t\"\n }\n $content | \n Export-Csv @csvSplat -NoTypeInformation \n }\n else {\n @(\n $metadata | & $psJekyll.FormatYaml.Script -YamlHeader\n $content\n ) | \n Set-Content -Path $path\n }\n if ($? -and $PassThru) {\n Get-Item -Path $path\n }\n", + "ParameterName": [ + "Path", + "PassThru", + "Content", + "MetaData", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PassThru", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Content", + "ParameterType": "System.Object", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "MetaData", + "ParameterType": "System.Collections.IDictionary", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Start-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Starts a Jekyll server\n .DESCRIPTION\n Starts a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Start-Jekyll')]\n [CmdletBinding()]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # One or more config files to use\n [Alias('Configuration')]\n [string[]]\n $Config,\n\n # The source directory\n [string]\n $SourcePath,\n\n # The destination directory\n [string]\n $DestinationPath,\n \n # The host header\n [string]\n $HostHeader,\n\n # The port to listen on\n [uint]\n $Port,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will show a directory list.\n [switch]\n $ShowDirectoryList,\n\n # If set, will enable live reload.\n [switch]\n $LiveReload,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace, \n\n # Watch for changes and rebuild\n [switch]\n $Watch,\n\n # If set, will publish posts with a future date (previewing them).\n [switch]\n $PreviewFuture,\n\n # The base URL for the site\n [string]\n $BaseUrl,\n\n # If set, will detach the process\n [switch]\n $Detach,\n\n # Enable incremental rebuilds\n [switch]\n $Incremental\n )\n\n if ($env:IN_CONTAINER -and -not $HostHeader) {\n $HostHeader = '*'\n } \n\n $jekyllSplat = @( \n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($Detach) { '--detach' }\n if ($PreviewFuture) { '--future' }\n if ($liveReload) {'--livereload'}\n if ($sourcePath) {\"--source\";\"$sourcePath\"}\n if ($destinationPath) {\"--destination\";\"$destinationPath\"}\n if ($BaseUrl) {\"--baseurl\";\"$BaseUrl\"}\n if ($Incremental) {'--incremental'}\n if ($HostHeader) {\"--host\"; \"$HostHeader\"}\n if ($Port) {\"--port\"; \"$Port\"}\n if ($ShowDirectoryList) {'--show-dir-list'}\n if ($layoutPath) {\"--layouts\"; \"$layoutPath\"}\n if ($pluginPath) {\"--plugins\"; \"$($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n if ($watch) {'--watch'}\n\n )\n \n $startedAfter = [DateTime]::Now\n if ($jekyllSplat -notmatch '--watch') {\n $jekyllSplat += '--watch'\n }\n if ($jekyllSplat -notmatch '--incremental') {\n $jekyllSplat += '--incremental'\n }\n if ($jekyllSplat -notmatch '--trace') {\n $jekyllSplat += '--trace'\n }\n $isGemFilePresent = Test-Path -Path './Gemfile'\n if (-not $isGemFilePresent) {\n Write-Warning \"Gemfile not found in the current directory. Creating a default Gemfile.\"\n $gitRemote = git remote\n if ($gitRemote -isnot [string] -or $gitRemote -notmatch 'fatal') {\n $PSJekyll.Template.'GitHubPages.Gemfile'() > ./Gemfile\n } else {\n $PSJekyll.Template.MinGemFile() > ./Gemfile\n } \n }\n Write-Verbose \"Starting Jekyll server $jekyllSplat\"\n $jobName = if ($hostHeader) { \"PSJekyll.$hostHeader\" } else { \"Start-PSJekyll\" }\n $jekyllJob = \n Start-ThreadJob -ScriptBlock {\n if ($ExecutionContext.SessionState.InvokeCommand.GetCommand('sudo','application')) {\n sudo bundle install\n } else {\n bundle install\n }\n \n if ($args -match '^\\*$' -and $args -match '^--host$') {\n $otherArgs = @($args -notmatch '^(?>--host|\\*)$') \n bundle exec jekyll serve --host '*' @otherArgs\n } else {\n $promptLongForm = @('exec','jekyll','serve') + $args \n bundle @promptLongForm\n } \n } -ArgumentList $jekyllSplat -Name $jobName\n \n $jekyllProcesses = Get-Process *ruby* | Where-Object { $_.StartTime -ge $startedAfter }\n\n Register-EngineEvent -SourceIdentifier PowerShell.Exiting -Action {\n get-process ruby | Stop-Process -Force\n } | Out-Null\n \n $jekyllJob.pstypenames.insert(0,\"PSJekyll.JekyllJob\")\n $jekyllJob.psobject.properties.Add([psnoteproperty]::New(\"Processes\", $jekyllProcesses))\n $jekyllJob\n", + "ParameterName": [ + "Name", + "Config", + "SourcePath", + "DestinationPath", + "HostHeader", + "Port", + "PluginPath", + "ShowDirectoryList", + "LiveReload", + "LiquidProfile", + "Trace", + "Watch", + "PreviewFuture", + "BaseUrl", + "Detach", + "Incremental", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Config", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "HostHeader", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Port", + "ParameterType": "System.UInt32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ShowDirectoryList", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiveReload", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Watch", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PreviewFuture", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "BaseUrl", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Detach", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Incremental", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Stop-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Stops a Jekyll server\n .DESCRIPTION\n Stops a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Stop-Jekyll')] \n param(\n # The name of the Jekyll job\n [Parameter(ValueFromPipelineByPropertyName)]\n [string]\n $Name = '*'\n )\n\n process {\n Get-Job -Name \"Jekyll.$Name\" | Stop-Job\n }\n", + "ParameterName": [ + "Name", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "New-Jekyll", + "CommandType": 1, + "Definition": "New-PSJekyll", + "ParameterName": [ + "Name", + "Blank", + "Force", + "Safe", + "SkipBundle", + "SourcePath", + "DestinationPath", + "LayoutPath", + "PluginPath", + "LiquidProfile", + "Trace" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Blank", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Force", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Safe", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SkipBundle", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LayoutPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Remove-Jekyll", + "CommandType": 1, + "Definition": "Remove-PSJekyll", + "ParameterName": [ + "Path", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Set-Jekyll", + "CommandType": 1, + "Definition": "Set-PSJekyll", + "ParameterName": [ + "Path", + "PassThru", + "Content", + "MetaData", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PassThru", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Content", + "ParameterType": "System.Object", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "MetaData", + "ParameterType": "System.Collections.IDictionary", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Start-Jekyll", + "CommandType": 1, + "Definition": "Start-PSJekyll", + "ParameterName": [ + "Name", + "Config", + "SourcePath", + "DestinationPath", + "HostHeader", + "Port", + "PluginPath", + "ShowDirectoryList", + "LiveReload", + "LiquidProfile", + "Trace", + "Watch", + "PreviewFuture", + "BaseUrl", + "Detach", + "Incremental", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Config", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "HostHeader", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Port", + "ParameterType": "System.UInt32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ShowDirectoryList", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiveReload", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Watch", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PreviewFuture", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "BaseUrl", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Detach", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Incremental", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Stop-Jekyll", + "CommandType": 1, + "Definition": "Stop-PSJekyll", + "ParameterName": [ + "Name", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + } +] \ No newline at end of file From acfc8413b88db147bae542fa303dd91e369b7f41 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 069/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/CmdletNames.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 _data/PSModule/CmdletNames.json diff --git a/_data/PSModule/CmdletNames.json b/_data/PSModule/CmdletNames.json new file mode 100644 index 0000000..ec747fa --- /dev/null +++ b/_data/PSModule/CmdletNames.json @@ -0,0 +1 @@ +null \ No newline at end of file From d7fd9681993c40b91fcb33d4aa28ec8d2d6aeb54 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 070/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/TypeNames.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 _data/PSModule/TypeNames.json diff --git a/_data/PSModule/TypeNames.json b/_data/PSModule/TypeNames.json new file mode 100644 index 0000000..bf2496d --- /dev/null +++ b/_data/PSModule/TypeNames.json @@ -0,0 +1,5 @@ +[ + "PSJekyll", + "PSJekyll.Site", + "PSJekyll.Template" +] \ No newline at end of file From 78c270505cdbc0a3116d5a9f5e4aee28c406f6e5 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 071/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/VariableNames.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 _data/PSModule/VariableNames.json diff --git a/_data/PSModule/VariableNames.json b/_data/PSModule/VariableNames.json new file mode 100644 index 0000000..d19c8e6 --- /dev/null +++ b/_data/PSModule/VariableNames.json @@ -0,0 +1 @@ +"PSJekyll" \ No newline at end of file From f6c2448bfe525961b07b7e1b70e06f43f8a587cd Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 072/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _data/PSModule/AliasNames.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _data/PSModule/AliasNames.json diff --git a/_data/PSModule/AliasNames.json b/_data/PSModule/AliasNames.json new file mode 100644 index 0000000..e775ae1 --- /dev/null +++ b/_data/PSModule/AliasNames.json @@ -0,0 +1,7 @@ +[ + "New-Jekyll", + "Remove-Jekyll", + "Set-Jekyll", + "Start-Jekyll", + "Stop-Jekyll" +] \ No newline at end of file From f895871457ca95d119f20aa65694c06dd980a4dc Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 073/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..f894bca --- /dev/null +++ b/_config.yml @@ -0,0 +1,12 @@ + +title: WebSocket +description: Work with WebSockets in PowerShell +url: https://websocket.powershellweb.com +permalink: pretty +palette: Konsolas +analyticsId: G-R5C30737B2 +googleFont: Noto Sans +stylesheet: https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css +defaults: + - values: + layout: Default From e3efbe79262fb2e3cc4f537152e6c4fa203dd251 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 074/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _layouts/Default.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 _layouts/Default.html diff --git a/_layouts/Default.html b/_layouts/Default.html new file mode 100644 index 0000000..9d96e1c --- /dev/null +++ b/_layouts/Default.html @@ -0,0 +1,27 @@ +--- + +title: Default.html +--- + + + + + + + {% include GoogleAnalytics.html %} + {% include ImportMap.html %} + {% include OpenGraph.html %} + {% include GoogleFont.html %} + {% include 4bitcss.html %} + {% include Margin.html %} + {% include Stylesheet.html %} + {% include Htmx.html %} + + + +{% include Menu.html %} + +{{content}} + +{% include Footer.html %} + \ No newline at end of file From bd40b3387664ecd0f9babe8eac1da8351170885f Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 075/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/4bitcss.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 _includes/4bitcss.html diff --git a/_includes/4bitcss.html b/_includes/4bitcss.html new file mode 100644 index 0000000..8d1ec76 --- /dev/null +++ b/_includes/4bitcss.html @@ -0,0 +1,5 @@ +{% if page.palette %} + +{% elsif site.palette %} + +{% endif %} \ No newline at end of file From 79093971979b1c190643c78022e12a44bc4bb203 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 076/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/PSTag.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/PSTag.md diff --git a/_includes/PSTag.md b/_includes/PSTag.md new file mode 100644 index 0000000..391f486 --- /dev/null +++ b/_includes/PSTag.md @@ -0,0 +1,3 @@ +{% for tagName in site.data.PSModule.Info.Tags %} +* [{{ tagName }}](https://www.powershellgallery.com/packages?q=Tags%3A%22{{tagName}}%22) +{% endfor %} \ No newline at end of file From 4301093f3b6ecd493f5bbd9136a6431bd95479ab Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 077/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/PSFunctions.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/PSFunctions.md diff --git a/_includes/PSFunctions.md b/_includes/PSFunctions.md new file mode 100644 index 0000000..ac0680b --- /dev/null +++ b/_includes/PSFunctions.md @@ -0,0 +1,3 @@ +{% for functionName in site.data.PSModule.FunctionNames %} +* [{{ functionName }}](/{{functionName}}) +{% endfor %} \ No newline at end of file From ecd3e748b2a5f36afcf4ac4c1f876178a7c61299 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 078/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/PSAlias.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/PSAlias.md diff --git a/_includes/PSAlias.md b/_includes/PSAlias.md new file mode 100644 index 0000000..95c1c0d --- /dev/null +++ b/_includes/PSAlias.md @@ -0,0 +1,4 @@ +| Alias | Command | +|:-|-:|{% for alias in site.data.PSModule.Aliases %} +|{{ alias.Name }}|[{{ alias.Definition }}](/{{alias.Definition}})| +{% endfor %} \ No newline at end of file From 05e4de56205312a8934f1d05bfa4a1f4271d0961 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 079/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Footer.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _includes/Footer.html diff --git a/_includes/Footer.html b/_includes/Footer.html new file mode 100644 index 0000000..4137469 --- /dev/null +++ b/_includes/Footer.html @@ -0,0 +1,9 @@ +

+{% if page.footer %} + {{page.footer}} +{% elsif site.footer %} + {{site.footer}} +{% else %} + {% include Copyright.html %} +{% endif %} +
\ No newline at end of file From 5407594e8eb1f93991b44b02e76aa17e423c2356 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 080/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/ImportMap.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 _includes/ImportMap.html diff --git a/_includes/ImportMap.html b/_includes/ImportMap.html new file mode 100644 index 0000000..af3a6ca --- /dev/null +++ b/_includes/ImportMap.html @@ -0,0 +1,25 @@ +{% if page.imports %} + {% assign importMap = page.imports %} +{% elsif page.importMap %} + {% assign importMap = page.importMap %} +{% elsif site.imports %} + {% assign importMap = site.imports %} +{% elsif site.importMap %} + {% assign importMap = site.importMap %} +{% elsif site.data.imports %} + {% assign importMap = site.data.imports %} +{% elsif site.data.importMap %} + {% assign importMap = site.data.importMap %} +{% endif %} +{% if importMap %} + +{% endif %} \ No newline at end of file From 083317f1e51829e3d93b47c5f676148cb3bd653a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 081/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Repos.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/Repos.md diff --git a/_includes/Repos.md b/_includes/Repos.md new file mode 100644 index 0000000..fdc09e8 --- /dev/null +++ b/_includes/Repos.md @@ -0,0 +1,3 @@ +{% for repository in site.github.public_repositories %} + * [{{ repository.name }}]({{ repository.html_url }}) +{% endfor %} \ No newline at end of file From d80f19348fe51a386254d10c321375518348f83e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 082/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/GitHubLink.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/GitHubLink.html diff --git a/_includes/GitHubLink.html b/_includes/GitHubLink.html new file mode 100644 index 0000000..3752c46 --- /dev/null +++ b/_includes/GitHubLink.html @@ -0,0 +1,3 @@ +{% if site.github.repository_url %} +GitHub +{% endif %} \ No newline at end of file From 29aed7ec16146bb5bea6ec4e00a86a6d5a32f354 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 083/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Contributor.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 _includes/Contributor.md diff --git a/_includes/Contributor.md b/_includes/Contributor.md new file mode 100644 index 0000000..e69de29 From 1997b0f5ec0c9325489650ed58f817c62c53de2a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 084/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Releases.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/Releases.md diff --git a/_includes/Releases.md b/_includes/Releases.md new file mode 100644 index 0000000..02b6831 --- /dev/null +++ b/_includes/Releases.md @@ -0,0 +1,4 @@ +{% for release in site.github.releases %} +# [{{ release.tag_name }}]({{ release.html_url }}) +{{ release.body }} +{% endfor %} \ No newline at end of file From b0152e880c8c90b7c852b494b82536b7c28a69ff Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 085/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/SiteTree.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _includes/SiteTree.html diff --git a/_includes/SiteTree.html b/_includes/SiteTree.html new file mode 100644 index 0000000..b64882c --- /dev/null +++ b/_includes/SiteTree.html @@ -0,0 +1,20 @@ +{% assign pages_by_url = site.pages | sort: "url" %} +{% assign page_depth = 0 %} + +{% for page in pages_by_url %} + {% if page.title == nil %} + {% continue %} + {% endif %} + {% assign page_parts = page.url | split: "/" %} + {% if page_parts.size > page_depth %} + {% assign page_depth = page_parts.size %} +
    + {% endif %} + {% if page_parts.size < page_depth %} + {% assign page_depth = page_parts.size %} +
+ {% endif %} +
  • +{{ page.title }} +
  • +{% endfor %} \ No newline at end of file From f58f4669d4fc5634bea627d1a04d4f6eab7de863 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 086/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/PSCmdlet.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/PSCmdlet.md diff --git a/_includes/PSCmdlet.md b/_includes/PSCmdlet.md new file mode 100644 index 0000000..15fafc4 --- /dev/null +++ b/_includes/PSCmdlet.md @@ -0,0 +1,3 @@ +{% for cmdletName in site.data.PSModule.CmdletNames %} +* [{{ cmdletName }}](/{{cmdletName}}) +{% endfor %} \ No newline at end of file From 0c8169a829dfe511277f024ae8d4ad5f7f55b850 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 087/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Menu.html | 147 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 _includes/Menu.html diff --git a/_includes/Menu.html b/_includes/Menu.html new file mode 100644 index 0000000..14a7574 --- /dev/null +++ b/_includes/Menu.html @@ -0,0 +1,147 @@ +{% capture TopLeftMenu %} + {{page.menu.TopLeft}} + {{site.menu.TopLeft}} + {{site.data.menu.TopLeft}} +{% endcapture %} +{% assign TopLeftMenu = TopLeftMenu | strip %} + +{% capture TopRightMenu %} + {{page.menu.TopRight}} + {{site.menu.TopRight}} + {{site.data.menu.TopRight}} + {% unless site.NoGitHubLink or site.NoLink %} + {% include GitHubLink.html %} + {% endunless %} +{% endcapture %} +{% assign TopRightMenu = TopRightMenu | strip %} + +{% capture TopCenterMenu %} + {{page.menu.TopCenter}} + {{site.menu.TopCenter}} + {{site.data.menu.TopCenter}} +{% endcapture %} +{% assign TopCenterMenu = TopCenterMenu | strip %} + +{% capture BottomLeftMenu %} + {{page.menu.BottomLeft}} + {{site.menu.BottomLeft}} + {{site.data.menu.BottomLeft}} +{% endcapture %} +{% assign BottomLeftMenu = BottomLeftMenu | strip %} + +{% capture BottomRightMenu %} + {{page.menu.BottomRight}} + {{site.menu.BottomRight}} + {{site.data.menu.BottomRight}} +{% endcapture %} +{% assign BottomRightMenu = BottomRightMenu | strip %} + +{% capture BottomCenterMenu %} + {{page.menu.BottomCenter}} + {{site.menu.BottomCenter}} + {{site.data.menu.BottomCenter}} +{% endcapture %} +{% assign BottomCenterMenu = BottomCenterMenu | strip %} + +{% capture LeftCenterMenu %} + {{page.menu.LeftCenter}} + {{site.menu.LeftCenter}} + {{site.data.menu.LeftCenter}} +{% endcapture %} +{% assign LeftCenterMenu = LeftCenterMenu | strip %} + +{% capture RightCenterMenu %} + {{page.menu.RightCenter}} + {{site.menu.RightCenter}} + {{site.data.menu.RightCenter}} +{% endcapture %} +{% assign RightCenterMenu = RightCenterMenu | strip %} + +{% if TopLeftMenu or TopRightMenu or TopCenterMenu or BottomLeftMenu or BottomRightMenu or BottomCenterMenu or LeftCenterMenu or RightCenterMenu %} + +{% endif %} + +{% if TopLeftMenu != "" %} + + {{TopLeftMenu}} + +{% endif %} + +{% if TopRightMenu != "" %} + + {{TopRightMenu}} + +{% endif %} + +{% if TopCenterMenu != "" %} + + {{TopCenterMenu}} + +{% endif %} + +{% if BottomLeftMenu != "" %} + + {{BottomLeftMenu}} + +{% endif %} + +{% if BottomRightMenu != "" %} + + {{BottomRightMenu}} + +{% endif %} + +{% if BottomCenterMenu != "" %} + + {{BottomCenterMenu}} + +{% endif %} + +{% if LeftCenterMenu != "" %} + + {{LeftCenterMenu}} + +{% endif %} + +{% if RightCenterMenu != "" %} + + {{RightCenterMenu}} + +{% endif %} \ No newline at end of file From 6a7ecc2774de1118f422aeb8a9ce67d8ed243b14 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 088/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Margin.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 _includes/Margin.html diff --git a/_includes/Margin.html b/_includes/Margin.html new file mode 100644 index 0000000..f5f3c60 --- /dev/null +++ b/_includes/Margin.html @@ -0,0 +1,12 @@ +{% if page.margin %} + +{% elsif site.margin %} + +{% else %} + +{% endif %} \ No newline at end of file From 5b5d182c3e88700668aeeaf3fd658db547bcdc4e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:31 +0000 Subject: [PATCH 089/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Stylesheet.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 _includes/Stylesheet.html diff --git a/_includes/Stylesheet.html b/_includes/Stylesheet.html new file mode 100644 index 0000000..3a32d64 --- /dev/null +++ b/_includes/Stylesheet.html @@ -0,0 +1,15 @@ +{% if site.data.stylesheet %} + {% for stylesheet in site.data.stylesheet %} + + {% endfor %} +{% endif %} +{% if page.stylesheet %} + {% for stylesheet in page.stylesheet %} + + {% endfor %} +{% endif %} +{% if include.stylesheet %} + {% for stylesheet in include.stylesheet %} + + {% endfor %} +{% endif %} \ No newline at end of file From fa733b64d466dfca2b32b173c6981c724c242d36 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 090/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/OpenGraph.html | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 _includes/OpenGraph.html diff --git a/_includes/OpenGraph.html b/_includes/OpenGraph.html new file mode 100644 index 0000000..c2a4fb5 --- /dev/null +++ b/_includes/OpenGraph.html @@ -0,0 +1,44 @@ + +{% if page.title %} + +{% else %} + +{% endif %} +{% if page.type %} + +{% else %} + +{% endif %} +{% if page.description %} + + + +{% elsif content %} + + + + + +{% elsif site.description %} + + + +{% endif %} +{% if page.date %} + +{% endif %} +{% if page.url %} + + + +{% endif %} + +{% if page.image %} + + + +{% elsif site.image %} + + + +{% endif %} \ No newline at end of file From 60cda92f364efc105d8dcd77094fba0e01ac038c Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 091/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/GoogleAnalytics.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 _includes/GoogleAnalytics.html diff --git a/_includes/GoogleAnalytics.html b/_includes/GoogleAnalytics.html new file mode 100644 index 0000000..bde8fa8 --- /dev/null +++ b/_includes/GoogleAnalytics.html @@ -0,0 +1,10 @@ +{% if site.analyticsId %} + + + +{% endif %} \ No newline at end of file From 93180bed5c2caf3472315d94aeea507b6b82be6a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 092/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Copyright.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _includes/Copyright.html diff --git a/_includes/Copyright.html b/_includes/Copyright.html new file mode 100644 index 0000000..a160c7d --- /dev/null +++ b/_includes/Copyright.html @@ -0,0 +1,9 @@ +© {% if page.copyright %} + {{page.copyright}} +{% elsif site.copyright %} + {{site.copyright}} +{% elsif site.data.PSModuleInfo.Copyright %} + {{site.data.PSModuleInfo.Copyright}} +{% else %} + {{ site.time | date: '%Y' }} {{ site.author }} +{% endif %} \ No newline at end of file From a55c47af3c1800cad34749214c0fd732aa577251 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 093/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/GoogleFont.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _includes/GoogleFont.html diff --git a/_includes/GoogleFont.html b/_includes/GoogleFont.html new file mode 100644 index 0000000..eef46f2 --- /dev/null +++ b/_includes/GoogleFont.html @@ -0,0 +1,20 @@ +{% if page.googleFont %} + + +{% elsif site.googleFont %} + + +{% else %} + + +{% endif %} +{% if page.codeFont %} + + +{% elsif site.codeFont %} + + +{% else %} + + +{% endif %} \ No newline at end of file From d4c1711cd1743d65e44771aca443afe2c59ac0c3 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 094/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/PSTypeName.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/PSTypeName.md diff --git a/_includes/PSTypeName.md b/_includes/PSTypeName.md new file mode 100644 index 0000000..3bd71d8 --- /dev/null +++ b/_includes/PSTypeName.md @@ -0,0 +1,3 @@ +{% for typeName in site.data.PSModule.TypeNames %} +* [{{ typeName }}](/{{typeName | replace: ".", "/"}}) +{% endfor %} \ No newline at end of file From 1c2bd5ac7fe9469e8c32d4b1de45894058bc9fa6 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 095/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/Htmx.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 _includes/Htmx.html diff --git a/_includes/Htmx.html b/_includes/Htmx.html new file mode 100644 index 0000000..a8cfa5b --- /dev/null +++ b/_includes/Htmx.html @@ -0,0 +1,3 @@ +{% if page.htmx or site.htmx %} + +{% endif %} \ No newline at end of file From 0a4cb19bc11f9228d8f1dc032f18c5bea3009e5e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 096/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- _includes/OrgMember.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 _includes/OrgMember.md diff --git a/_includes/OrgMember.md b/_includes/OrgMember.md new file mode 100644 index 0000000..e69de29 From d1f17551be0ca697e8adc93c96e1e5993ee258b4 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 097/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- PSTag.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 PSTag.md diff --git a/PSTag.md b/PSTag.md new file mode 100644 index 0000000..06cb3f6 --- /dev/null +++ b/PSTag.md @@ -0,0 +1,5 @@ +--- + +title: PSTag +--- +{% include PSTag.md %} \ No newline at end of file From 50825a39c8be1760059c58233e94032e35029df7 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 098/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Aliases.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Aliases.md diff --git a/Aliases.md b/Aliases.md new file mode 100644 index 0000000..c21840f --- /dev/null +++ b/Aliases.md @@ -0,0 +1,5 @@ +--- + +title: Aliases +--- +{% include PSAlias.md %} \ No newline at end of file From 9deb696bf042fd3bcfe50d0567f2403304fc88e3 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 099/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Functions.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Functions.md diff --git a/Functions.md b/Functions.md new file mode 100644 index 0000000..cbc7f2b --- /dev/null +++ b/Functions.md @@ -0,0 +1,5 @@ +--- + +title: Functions +--- +{% include PSFunctions.md %} \ No newline at end of file From ddb392cb02dc765236e5be469bbd5b3fac409894 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 100/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Cmdlet.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Cmdlet.md diff --git a/Cmdlet.md b/Cmdlet.md new file mode 100644 index 0000000..449f0c1 --- /dev/null +++ b/Cmdlet.md @@ -0,0 +1,5 @@ +--- + +title: Cmdlet +--- +{% include PSCmdlet.md %} \ No newline at end of file From 7a3f229e971dde5ddb5446e0a870ad77a76c2ec0 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 101/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Repos.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Repos.md diff --git a/Repos.md b/Repos.md new file mode 100644 index 0000000..7447c23 --- /dev/null +++ b/Repos.md @@ -0,0 +1,5 @@ +--- + +title: Repos +--- +{% include Repos.md %} \ No newline at end of file From ef8f6d773b664b9ccfc93426abd2625c8fa1cb87 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 102/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Releases.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Releases.md diff --git a/Releases.md b/Releases.md new file mode 100644 index 0000000..421816c --- /dev/null +++ b/Releases.md @@ -0,0 +1,5 @@ +--- + +title: Releases +--- +{% include Releases.md %} \ No newline at end of file From 714e36948e5348d6195327cb36038e7900bf650b Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 103/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Tree.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Tree.md diff --git a/Tree.md b/Tree.md new file mode 100644 index 0000000..6f2d8aa --- /dev/null +++ b/Tree.md @@ -0,0 +1,5 @@ +--- + +title: Tree +--- +{% include SiteTree.html %} \ No newline at end of file From aae83c4a0ba2844e3da4b67be636f20c7d07d7e8 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 104/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Alias.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Alias.md diff --git a/Alias.md b/Alias.md new file mode 100644 index 0000000..0238da1 --- /dev/null +++ b/Alias.md @@ -0,0 +1,5 @@ +--- + +title: Alias +--- +{% include PSAlias.md %} \ No newline at end of file From a80a84754fb7a6a6eee4440f36bb411fa1a5c192 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 105/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Cmdlets.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Cmdlets.md diff --git a/Cmdlets.md b/Cmdlets.md new file mode 100644 index 0000000..2f47ec9 --- /dev/null +++ b/Cmdlets.md @@ -0,0 +1,5 @@ +--- + +title: Cmdlets +--- +{% include PSCmdlet.md %} \ No newline at end of file From 8ee3e8994c07d0967b222621bb91a275163700cc Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 106/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Contibutors.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Contibutors.md diff --git a/Contibutors.md b/Contibutors.md new file mode 100644 index 0000000..fb1c01a --- /dev/null +++ b/Contibutors.md @@ -0,0 +1,5 @@ +--- + +title: Contibutors +--- +{% include Contributor.md %} \ No newline at end of file From 6394e9e2feba613992ba0970e88d55e95abd484f Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 107/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- PSTypeName.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 PSTypeName.md diff --git a/PSTypeName.md b/PSTypeName.md new file mode 100644 index 0000000..2e44052 --- /dev/null +++ b/PSTypeName.md @@ -0,0 +1,5 @@ +--- + +title: PSTypeName +--- +{% include PSTypeName.md %} \ No newline at end of file From 54597e406f0a5df093011fa480c4444c651194c3 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 108/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Members.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Members.md diff --git a/Members.md b/Members.md new file mode 100644 index 0000000..5243240 --- /dev/null +++ b/Members.md @@ -0,0 +1,5 @@ +--- + +title: Members +--- +{% include OrgMember.md %} \ No newline at end of file From c9d91169b5c7781ceba57ea931363fbe5b3a6dfe Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:18:32 +0000 Subject: [PATCH 109/177] feat: WebSocket Website ( Fixes #19 ) Adding workflow step --- Function.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Function.md diff --git a/Function.md b/Function.md new file mode 100644 index 0000000..ab12d56 --- /dev/null +++ b/Function.md @@ -0,0 +1,5 @@ +--- + +title: Function +--- +{% include PSFunctions.md %} \ No newline at end of file From e4b27967232233f44b68b1769c0c7f2f568da700 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:21:25 -0800 Subject: [PATCH 110/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- Alias.md | 5 - Aliases.md | 5 - Build/WebSocket.PSJekyll.ps1 | 2 +- CHANGELOG.md | 8 - Cmdlet.md | 5 - Cmdlets.md | 5 - Contibutors.md | 5 - Function.md | 5 - Functions.md | 5 - Members.md | 5 - PSTag.md | 5 - PSTypeName.md | 5 - Releases.md | 5 - Repos.md | 5 - Tree.md | 5 - _data/LastDateBuilt.json | 1 - _data/PSModule/AliasNames.json | 7 - _data/PSModule/Aliases.json | 22 - _data/PSModule/CmdletNames.json | 1 - _data/PSModule/Exports.json | 1874 ----------------------------- _data/PSModule/FunctionNames.json | 7 - _data/PSModule/Info.json | 23 - _data/PSModule/TypeNames.json | 5 - _data/PSModule/VariableNames.json | 1 - _includes/4bitcss.html | 5 - _includes/Contributor.md | 0 _includes/Copyright.html | 9 - _includes/Footer.html | 9 - _includes/GitHubLink.html | 3 - _includes/GoogleAnalytics.html | 10 - _includes/GoogleFont.html | 20 - _includes/Htmx.html | 3 - _includes/ImportMap.html | 25 - _includes/Margin.html | 12 - _includes/Menu.html | 147 --- _includes/OpenGraph.html | 44 - _includes/OrgMember.md | 0 _includes/PSAlias.md | 4 - _includes/PSCmdlet.md | 3 - _includes/PSFunctions.md | 3 - _includes/PSTag.md | 3 - _includes/PSTypeName.md | 3 - _includes/Releases.md | 4 - _includes/Repos.md | 3 - _includes/SiteTree.html | 20 - _includes/Stylesheet.html | 15 - 46 files changed, 1 insertion(+), 2360 deletions(-) delete mode 100644 Alias.md delete mode 100644 Aliases.md delete mode 100644 CHANGELOG.md delete mode 100644 Cmdlet.md delete mode 100644 Cmdlets.md delete mode 100644 Contibutors.md delete mode 100644 Function.md delete mode 100644 Functions.md delete mode 100644 Members.md delete mode 100644 PSTag.md delete mode 100644 PSTypeName.md delete mode 100644 Releases.md delete mode 100644 Repos.md delete mode 100644 Tree.md delete mode 100644 _data/LastDateBuilt.json delete mode 100644 _data/PSModule/AliasNames.json delete mode 100644 _data/PSModule/Aliases.json delete mode 100644 _data/PSModule/CmdletNames.json delete mode 100644 _data/PSModule/Exports.json delete mode 100644 _data/PSModule/FunctionNames.json delete mode 100644 _data/PSModule/Info.json delete mode 100644 _data/PSModule/TypeNames.json delete mode 100644 _data/PSModule/VariableNames.json delete mode 100644 _includes/4bitcss.html delete mode 100644 _includes/Contributor.md delete mode 100644 _includes/Copyright.html delete mode 100644 _includes/Footer.html delete mode 100644 _includes/GitHubLink.html delete mode 100644 _includes/GoogleAnalytics.html delete mode 100644 _includes/GoogleFont.html delete mode 100644 _includes/Htmx.html delete mode 100644 _includes/ImportMap.html delete mode 100644 _includes/Margin.html delete mode 100644 _includes/Menu.html delete mode 100644 _includes/OpenGraph.html delete mode 100644 _includes/OrgMember.md delete mode 100644 _includes/PSAlias.md delete mode 100644 _includes/PSCmdlet.md delete mode 100644 _includes/PSFunctions.md delete mode 100644 _includes/PSTag.md delete mode 100644 _includes/PSTypeName.md delete mode 100644 _includes/Releases.md delete mode 100644 _includes/Repos.md delete mode 100644 _includes/SiteTree.html delete mode 100644 _includes/Stylesheet.html diff --git a/Alias.md b/Alias.md deleted file mode 100644 index 0238da1..0000000 --- a/Alias.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Alias ---- -{% include PSAlias.md %} \ No newline at end of file diff --git a/Aliases.md b/Aliases.md deleted file mode 100644 index c21840f..0000000 --- a/Aliases.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Aliases ---- -{% include PSAlias.md %} \ No newline at end of file diff --git a/Build/WebSocket.PSJekyll.ps1 b/Build/WebSocket.PSJekyll.ps1 index 1be60aa..6131344 100644 --- a/Build/WebSocket.PSJekyll.ps1 +++ b/Build/WebSocket.PSJekyll.ps1 @@ -1,4 +1,4 @@ -$sitePath = Join-Path $PSScriptRoot 'docs' +$sitePath = Join-Path ($PSScriptRoot | Split-Path) 'docs' $sourceModule = Get-Module PSJekyll if (-not $sourceModule) { diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e2147f6..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -## WebSocket 0.1 - -> Like It? [Star It](https://github.com/PowerShellWeb/WebSocket) -> Love It? [Support It](https://github.com/sponsors/StartAutomating) - -* Initial Release of WebSocket module - * Get-WebSocket gets content from a WebSocket - * Docker container for WebSocket diff --git a/Cmdlet.md b/Cmdlet.md deleted file mode 100644 index 449f0c1..0000000 --- a/Cmdlet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Cmdlet ---- -{% include PSCmdlet.md %} \ No newline at end of file diff --git a/Cmdlets.md b/Cmdlets.md deleted file mode 100644 index 2f47ec9..0000000 --- a/Cmdlets.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Cmdlets ---- -{% include PSCmdlet.md %} \ No newline at end of file diff --git a/Contibutors.md b/Contibutors.md deleted file mode 100644 index fb1c01a..0000000 --- a/Contibutors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Contibutors ---- -{% include Contributor.md %} \ No newline at end of file diff --git a/Function.md b/Function.md deleted file mode 100644 index ab12d56..0000000 --- a/Function.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Function ---- -{% include PSFunctions.md %} \ No newline at end of file diff --git a/Functions.md b/Functions.md deleted file mode 100644 index cbc7f2b..0000000 --- a/Functions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Functions ---- -{% include PSFunctions.md %} \ No newline at end of file diff --git a/Members.md b/Members.md deleted file mode 100644 index 5243240..0000000 --- a/Members.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Members ---- -{% include OrgMember.md %} \ No newline at end of file diff --git a/PSTag.md b/PSTag.md deleted file mode 100644 index 06cb3f6..0000000 --- a/PSTag.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: PSTag ---- -{% include PSTag.md %} \ No newline at end of file diff --git a/PSTypeName.md b/PSTypeName.md deleted file mode 100644 index 2e44052..0000000 --- a/PSTypeName.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: PSTypeName ---- -{% include PSTypeName.md %} \ No newline at end of file diff --git a/Releases.md b/Releases.md deleted file mode 100644 index 421816c..0000000 --- a/Releases.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Releases ---- -{% include Releases.md %} \ No newline at end of file diff --git a/Repos.md b/Repos.md deleted file mode 100644 index 7447c23..0000000 --- a/Repos.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Repos ---- -{% include Repos.md %} \ No newline at end of file diff --git a/Tree.md b/Tree.md deleted file mode 100644 index 6f2d8aa..0000000 --- a/Tree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- - -title: Tree ---- -{% include SiteTree.html %} \ No newline at end of file diff --git a/_data/LastDateBuilt.json b/_data/LastDateBuilt.json deleted file mode 100644 index 96642b6..0000000 --- a/_data/LastDateBuilt.json +++ /dev/null @@ -1 +0,0 @@ -"2024-11-27" \ No newline at end of file diff --git a/_data/PSModule/AliasNames.json b/_data/PSModule/AliasNames.json deleted file mode 100644 index e775ae1..0000000 --- a/_data/PSModule/AliasNames.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "New-Jekyll", - "Remove-Jekyll", - "Set-Jekyll", - "Start-Jekyll", - "Stop-Jekyll" -] \ No newline at end of file diff --git a/_data/PSModule/Aliases.json b/_data/PSModule/Aliases.json deleted file mode 100644 index 4579eb9..0000000 --- a/_data/PSModule/Aliases.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "Name": "New-Jekyll", - "Definition": "New-PSJekyll" - }, - { - "Name": "Remove-Jekyll", - "Definition": "Remove-PSJekyll" - }, - { - "Name": "Set-Jekyll", - "Definition": "Set-PSJekyll" - }, - { - "Name": "Start-Jekyll", - "Definition": "Start-PSJekyll" - }, - { - "Name": "Stop-Jekyll", - "Definition": "Stop-PSJekyll" - } -] \ No newline at end of file diff --git a/_data/PSModule/CmdletNames.json b/_data/PSModule/CmdletNames.json deleted file mode 100644 index ec747fa..0000000 --- a/_data/PSModule/CmdletNames.json +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/_data/PSModule/Exports.json b/_data/PSModule/Exports.json deleted file mode 100644 index eaca875..0000000 --- a/_data/PSModule/Exports.json +++ /dev/null @@ -1,1874 +0,0 @@ -[ - { - "Name": "New-PSJekyll", - "CommandType": 2, - "Definition": "\n <#\n .SYNOPSIS\n Creates a new Jekyll site.\n .DESCRIPTION\n Creates a new Jekyll site, using PowerShell.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('New-Jekyll')]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # Creates scaffolding but with empty files\n [switch]\n $Blank,\n\n # Force creation even if PATH already exists\n [switch]\n $Force,\n\n # Safe mode\n [switch]\n $Safe,\n\n # Skip the bundle install\n [switch]\n $SkipBundle,\n\n # The path to the source files\n [string]\n $SourcePath,\n\n # The path to the destination files\n [string]\n $DestinationPath,\n\n # The path to the layout files\n [string]\n $LayoutPath,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace\n )\n\n $jekyllSplat = @(\n $name\n if ($blank) { '--blank' }\n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($skipBundle) { '--skip-bundle' }\n if ($sourcePath) {\"--source $sourcePath\"}\n if ($destinationPath) {\"--destination $destinationPath\"}\n if ($layoutPath) {\"--layouts $layoutPath\"}\n if ($pluginPath) {\"--plugins $($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n )\n\n $newJekyllJob = jekyll new @jekyllSplat &\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job')\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job.New-PSJekyll')\n $newJekyllJob\n", - "ParameterName": [ - "Name", - "Blank", - "Force", - "Safe", - "SkipBundle", - "SourcePath", - "DestinationPath", - "LayoutPath", - "PluginPath", - "LiquidProfile", - "Trace" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Blank", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Force", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Safe", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SkipBundle", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SourcePath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "DestinationPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LayoutPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PluginPath", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiquidProfile", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Trace", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Remove-PSJekyll", - "CommandType": 2, - "Definition": " \n <#\n .SYNOPSIS\n Removes content from Jekyll\n .DESCRIPTION\n Removes files from Jekyll\n\n This is a slightly limited version of Remove-Item.\n #>\n [Alias('Remove-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0,ValueFromPipelineByPropertyName)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path\n )\n \n process {\n if (Test-Path $path) { \n Remove-Item -Path $path \n }\n } \n", - "ParameterName": [ - "Path", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Path", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Set-PSJekyll", - "CommandType": 2, - "Definition": " \n <#\n .SYNOPSIS\n Sets the content of a file in Jekyll\n .DESCRIPTION\n Sets the content of a file in Jekyll.\n\n This is only slightly smarter than Set-Content. \n \n It will convert the content to JSON if the file ends in .json, and to CSV if the file ends in .csv or .tsv.\n\n Otherwise, it will create a YAML header and then set the content.\n #>\n [Alias('Set-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path,\n \n # If set, will return the file object\n [switch]\n $PassThru,\n \n # The content to set\n [Parameter(ValueFromPipeline)]\n [object]\n $Content,\n\n # Any metadata to set. \n # This will create a YAML header, which is required for most files in Jekyll to be processed properly.\n [Alias('YamlHeader')]\n [Collections.IDictionary]\n $MetaData = [Ordered]@{}\n )\n \n $allInput = @($input)\n if ((-not $allInput) -and $Content) {\n $allInput = @($Content)\n }\n\n if (-not $allInput) { return }\n if (-not (Test-Path $path)) { \n New-Item -Path $path -Type File -Force | Out-Null\n if (-not $?) { return }\n }\n \n if ($path -match '\\.json$') {\n if ($allInput.Length -eq 1) { \n ConvertTo-Json -InputObject $allInput[0] -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } else {\n ConvertTo-Json -InputObject $allInput -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } \n } \n elseif ($path -match '\\.[ct]sv$') {\n $csvSplat = [Ordered]@{Path=$path}\n if ($path -match '\\.t') {\n $csvSplat.Delimiter = \"`t\"\n }\n $content | \n Export-Csv @csvSplat -NoTypeInformation \n }\n else {\n @(\n $metadata | & $psJekyll.FormatYaml.Script -YamlHeader\n $content\n ) | \n Set-Content -Path $path\n }\n if ($? -and $PassThru) {\n Get-Item -Path $path\n }\n", - "ParameterName": [ - "Path", - "PassThru", - "Content", - "MetaData", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Path", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PassThru", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Content", - "ParameterType": "System.Object", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "MetaData", - "ParameterType": "System.Collections.IDictionary", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Start-PSJekyll", - "CommandType": 2, - "Definition": "\n <#\n .SYNOPSIS\n Starts a Jekyll server\n .DESCRIPTION\n Starts a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Start-Jekyll')]\n [CmdletBinding()]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # One or more config files to use\n [Alias('Configuration')]\n [string[]]\n $Config,\n\n # The source directory\n [string]\n $SourcePath,\n\n # The destination directory\n [string]\n $DestinationPath,\n \n # The host header\n [string]\n $HostHeader,\n\n # The port to listen on\n [uint]\n $Port,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will show a directory list.\n [switch]\n $ShowDirectoryList,\n\n # If set, will enable live reload.\n [switch]\n $LiveReload,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace, \n\n # Watch for changes and rebuild\n [switch]\n $Watch,\n\n # If set, will publish posts with a future date (previewing them).\n [switch]\n $PreviewFuture,\n\n # The base URL for the site\n [string]\n $BaseUrl,\n\n # If set, will detach the process\n [switch]\n $Detach,\n\n # Enable incremental rebuilds\n [switch]\n $Incremental\n )\n\n if ($env:IN_CONTAINER -and -not $HostHeader) {\n $HostHeader = '*'\n } \n\n $jekyllSplat = @( \n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($Detach) { '--detach' }\n if ($PreviewFuture) { '--future' }\n if ($liveReload) {'--livereload'}\n if ($sourcePath) {\"--source\";\"$sourcePath\"}\n if ($destinationPath) {\"--destination\";\"$destinationPath\"}\n if ($BaseUrl) {\"--baseurl\";\"$BaseUrl\"}\n if ($Incremental) {'--incremental'}\n if ($HostHeader) {\"--host\"; \"$HostHeader\"}\n if ($Port) {\"--port\"; \"$Port\"}\n if ($ShowDirectoryList) {'--show-dir-list'}\n if ($layoutPath) {\"--layouts\"; \"$layoutPath\"}\n if ($pluginPath) {\"--plugins\"; \"$($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n if ($watch) {'--watch'}\n\n )\n \n $startedAfter = [DateTime]::Now\n if ($jekyllSplat -notmatch '--watch') {\n $jekyllSplat += '--watch'\n }\n if ($jekyllSplat -notmatch '--incremental') {\n $jekyllSplat += '--incremental'\n }\n if ($jekyllSplat -notmatch '--trace') {\n $jekyllSplat += '--trace'\n }\n $isGemFilePresent = Test-Path -Path './Gemfile'\n if (-not $isGemFilePresent) {\n Write-Warning \"Gemfile not found in the current directory. Creating a default Gemfile.\"\n $gitRemote = git remote\n if ($gitRemote -isnot [string] -or $gitRemote -notmatch 'fatal') {\n $PSJekyll.Template.'GitHubPages.Gemfile'() > ./Gemfile\n } else {\n $PSJekyll.Template.MinGemFile() > ./Gemfile\n } \n }\n Write-Verbose \"Starting Jekyll server $jekyllSplat\"\n $jobName = if ($hostHeader) { \"PSJekyll.$hostHeader\" } else { \"Start-PSJekyll\" }\n $jekyllJob = \n Start-ThreadJob -ScriptBlock {\n if ($ExecutionContext.SessionState.InvokeCommand.GetCommand('sudo','application')) {\n sudo bundle install\n } else {\n bundle install\n }\n \n if ($args -match '^\\*$' -and $args -match '^--host$') {\n $otherArgs = @($args -notmatch '^(?>--host|\\*)$') \n bundle exec jekyll serve --host '*' @otherArgs\n } else {\n $promptLongForm = @('exec','jekyll','serve') + $args \n bundle @promptLongForm\n } \n } -ArgumentList $jekyllSplat -Name $jobName\n \n $jekyllProcesses = Get-Process *ruby* | Where-Object { $_.StartTime -ge $startedAfter }\n\n Register-EngineEvent -SourceIdentifier PowerShell.Exiting -Action {\n get-process ruby | Stop-Process -Force\n } | Out-Null\n \n $jekyllJob.pstypenames.insert(0,\"PSJekyll.JekyllJob\")\n $jekyllJob.psobject.properties.Add([psnoteproperty]::New(\"Processes\", $jekyllProcesses))\n $jekyllJob\n", - "ParameterName": [ - "Name", - "Config", - "SourcePath", - "DestinationPath", - "HostHeader", - "Port", - "PluginPath", - "ShowDirectoryList", - "LiveReload", - "LiquidProfile", - "Trace", - "Watch", - "PreviewFuture", - "BaseUrl", - "Detach", - "Incremental", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Config", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SourcePath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "DestinationPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "HostHeader", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Port", - "ParameterType": "System.UInt32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PluginPath", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ShowDirectoryList", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiveReload", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiquidProfile", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Trace", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Watch", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PreviewFuture", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "BaseUrl", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Detach", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Incremental", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Stop-PSJekyll", - "CommandType": 2, - "Definition": "\n <#\n .SYNOPSIS\n Stops a Jekyll server\n .DESCRIPTION\n Stops a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Stop-Jekyll')] \n param(\n # The name of the Jekyll job\n [Parameter(ValueFromPipelineByPropertyName)]\n [string]\n $Name = '*'\n )\n\n process {\n Get-Job -Name \"Jekyll.$Name\" | Stop-Job\n }\n", - "ParameterName": [ - "Name", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "New-Jekyll", - "CommandType": 1, - "Definition": "New-PSJekyll", - "ParameterName": [ - "Name", - "Blank", - "Force", - "Safe", - "SkipBundle", - "SourcePath", - "DestinationPath", - "LayoutPath", - "PluginPath", - "LiquidProfile", - "Trace" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Blank", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Force", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Safe", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SkipBundle", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SourcePath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "DestinationPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LayoutPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PluginPath", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiquidProfile", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Trace", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Remove-Jekyll", - "CommandType": 1, - "Definition": "Remove-PSJekyll", - "ParameterName": [ - "Path", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Path", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Set-Jekyll", - "CommandType": 1, - "Definition": "Set-PSJekyll", - "ParameterName": [ - "Path", - "PassThru", - "Content", - "MetaData", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Path", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PassThru", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Content", - "ParameterType": "System.Object", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "MetaData", - "ParameterType": "System.Collections.IDictionary", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Start-Jekyll", - "CommandType": 1, - "Definition": "Start-PSJekyll", - "ParameterName": [ - "Name", - "Config", - "SourcePath", - "DestinationPath", - "HostHeader", - "Port", - "PluginPath", - "ShowDirectoryList", - "LiveReload", - "LiquidProfile", - "Trace", - "Watch", - "PreviewFuture", - "BaseUrl", - "Detach", - "Incremental", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Config", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "SourcePath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "DestinationPath", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "HostHeader", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Port", - "ParameterType": "System.UInt32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PluginPath", - "ParameterType": "System.String[]", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ShowDirectoryList", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiveReload", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "LiquidProfile", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Trace", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Watch", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PreviewFuture", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "BaseUrl", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Detach", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Incremental", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - }, - { - "Name": "Stop-Jekyll", - "CommandType": 1, - "Definition": "Stop-PSJekyll", - "ParameterName": [ - "Name", - "Verbose", - "Debug", - "ErrorAction", - "WarningAction", - "InformationAction", - "ProgressAction", - "ErrorVariable", - "WarningVariable", - "InformationVariable", - "OutVariable", - "OutBuffer", - "PipelineVariable" - ], - "Parameter": [ - { - "Name": "Name", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Verbose", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "Debug", - "ParameterType": "System.Management.Automation.SwitchParameter", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ProgressAction", - "ParameterType": "System.Management.Automation.ActionPreference", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "ErrorVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "WarningVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "InformationVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "OutBuffer", - "ParameterType": "System.Int32", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - }, - { - "Name": "PipelineVariable", - "ParameterType": "System.String", - "Position": null, - "Mandatory": null, - "ValueFromPipeline": null, - "ValueFromPipelineByPropertyName": null, - "ValueFromRemainingArguments": null, - "HelpMessage": null - } - ] - } -] \ No newline at end of file diff --git a/_data/PSModule/FunctionNames.json b/_data/PSModule/FunctionNames.json deleted file mode 100644 index 1ddd5ff..0000000 --- a/_data/PSModule/FunctionNames.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "New-PSJekyll", - "Remove-PSJekyll", - "Set-PSJekyll", - "Start-PSJekyll", - "Stop-PSJekyll" -] \ No newline at end of file diff --git a/_data/PSModule/Info.json b/_data/PSModule/Info.json deleted file mode 100644 index 5738161..0000000 --- a/_data/PSModule/Info.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Name": "PSJekyll", - "Version": { - "Major": 0, - "Minor": 1, - "Build": -1, - "Revision": -1, - "MajorRevision": -1, - "MinorRevision": -1 - }, - "Description": "Scarily Simple Static Sites with Jekyll and PowerShell", - "Copyright": "2024", - "CompanyName": "PowerShellWeb", - "Author": "James Brundage", - "Tags": [ - "PowerShellWeb", - "Jekyll", - "Docker", - "Container", - "GitHubAction", - "StaticSite" - ] -} \ No newline at end of file diff --git a/_data/PSModule/TypeNames.json b/_data/PSModule/TypeNames.json deleted file mode 100644 index bf2496d..0000000 --- a/_data/PSModule/TypeNames.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - "PSJekyll", - "PSJekyll.Site", - "PSJekyll.Template" -] \ No newline at end of file diff --git a/_data/PSModule/VariableNames.json b/_data/PSModule/VariableNames.json deleted file mode 100644 index d19c8e6..0000000 --- a/_data/PSModule/VariableNames.json +++ /dev/null @@ -1 +0,0 @@ -"PSJekyll" \ No newline at end of file diff --git a/_includes/4bitcss.html b/_includes/4bitcss.html deleted file mode 100644 index 8d1ec76..0000000 --- a/_includes/4bitcss.html +++ /dev/null @@ -1,5 +0,0 @@ -{% if page.palette %} - -{% elsif site.palette %} - -{% endif %} \ No newline at end of file diff --git a/_includes/Contributor.md b/_includes/Contributor.md deleted file mode 100644 index e69de29..0000000 diff --git a/_includes/Copyright.html b/_includes/Copyright.html deleted file mode 100644 index a160c7d..0000000 --- a/_includes/Copyright.html +++ /dev/null @@ -1,9 +0,0 @@ -© {% if page.copyright %} - {{page.copyright}} -{% elsif site.copyright %} - {{site.copyright}} -{% elsif site.data.PSModuleInfo.Copyright %} - {{site.data.PSModuleInfo.Copyright}} -{% else %} - {{ site.time | date: '%Y' }} {{ site.author }} -{% endif %} \ No newline at end of file diff --git a/_includes/Footer.html b/_includes/Footer.html deleted file mode 100644 index 4137469..0000000 --- a/_includes/Footer.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -{% if page.footer %} - {{page.footer}} -{% elsif site.footer %} - {{site.footer}} -{% else %} - {% include Copyright.html %} -{% endif %} -
    \ No newline at end of file diff --git a/_includes/GitHubLink.html b/_includes/GitHubLink.html deleted file mode 100644 index 3752c46..0000000 --- a/_includes/GitHubLink.html +++ /dev/null @@ -1,3 +0,0 @@ -{% if site.github.repository_url %} -GitHub -{% endif %} \ No newline at end of file diff --git a/_includes/GoogleAnalytics.html b/_includes/GoogleAnalytics.html deleted file mode 100644 index bde8fa8..0000000 --- a/_includes/GoogleAnalytics.html +++ /dev/null @@ -1,10 +0,0 @@ -{% if site.analyticsId %} - - - -{% endif %} \ No newline at end of file diff --git a/_includes/GoogleFont.html b/_includes/GoogleFont.html deleted file mode 100644 index eef46f2..0000000 --- a/_includes/GoogleFont.html +++ /dev/null @@ -1,20 +0,0 @@ -{% if page.googleFont %} - - -{% elsif site.googleFont %} - - -{% else %} - - -{% endif %} -{% if page.codeFont %} - - -{% elsif site.codeFont %} - - -{% else %} - - -{% endif %} \ No newline at end of file diff --git a/_includes/Htmx.html b/_includes/Htmx.html deleted file mode 100644 index a8cfa5b..0000000 --- a/_includes/Htmx.html +++ /dev/null @@ -1,3 +0,0 @@ -{% if page.htmx or site.htmx %} - -{% endif %} \ No newline at end of file diff --git a/_includes/ImportMap.html b/_includes/ImportMap.html deleted file mode 100644 index af3a6ca..0000000 --- a/_includes/ImportMap.html +++ /dev/null @@ -1,25 +0,0 @@ -{% if page.imports %} - {% assign importMap = page.imports %} -{% elsif page.importMap %} - {% assign importMap = page.importMap %} -{% elsif site.imports %} - {% assign importMap = site.imports %} -{% elsif site.importMap %} - {% assign importMap = site.importMap %} -{% elsif site.data.imports %} - {% assign importMap = site.data.imports %} -{% elsif site.data.importMap %} - {% assign importMap = site.data.importMap %} -{% endif %} -{% if importMap %} - -{% endif %} \ No newline at end of file diff --git a/_includes/Margin.html b/_includes/Margin.html deleted file mode 100644 index f5f3c60..0000000 --- a/_includes/Margin.html +++ /dev/null @@ -1,12 +0,0 @@ -{% if page.margin %} - -{% elsif site.margin %} - -{% else %} - -{% endif %} \ No newline at end of file diff --git a/_includes/Menu.html b/_includes/Menu.html deleted file mode 100644 index 14a7574..0000000 --- a/_includes/Menu.html +++ /dev/null @@ -1,147 +0,0 @@ -{% capture TopLeftMenu %} - {{page.menu.TopLeft}} - {{site.menu.TopLeft}} - {{site.data.menu.TopLeft}} -{% endcapture %} -{% assign TopLeftMenu = TopLeftMenu | strip %} - -{% capture TopRightMenu %} - {{page.menu.TopRight}} - {{site.menu.TopRight}} - {{site.data.menu.TopRight}} - {% unless site.NoGitHubLink or site.NoLink %} - {% include GitHubLink.html %} - {% endunless %} -{% endcapture %} -{% assign TopRightMenu = TopRightMenu | strip %} - -{% capture TopCenterMenu %} - {{page.menu.TopCenter}} - {{site.menu.TopCenter}} - {{site.data.menu.TopCenter}} -{% endcapture %} -{% assign TopCenterMenu = TopCenterMenu | strip %} - -{% capture BottomLeftMenu %} - {{page.menu.BottomLeft}} - {{site.menu.BottomLeft}} - {{site.data.menu.BottomLeft}} -{% endcapture %} -{% assign BottomLeftMenu = BottomLeftMenu | strip %} - -{% capture BottomRightMenu %} - {{page.menu.BottomRight}} - {{site.menu.BottomRight}} - {{site.data.menu.BottomRight}} -{% endcapture %} -{% assign BottomRightMenu = BottomRightMenu | strip %} - -{% capture BottomCenterMenu %} - {{page.menu.BottomCenter}} - {{site.menu.BottomCenter}} - {{site.data.menu.BottomCenter}} -{% endcapture %} -{% assign BottomCenterMenu = BottomCenterMenu | strip %} - -{% capture LeftCenterMenu %} - {{page.menu.LeftCenter}} - {{site.menu.LeftCenter}} - {{site.data.menu.LeftCenter}} -{% endcapture %} -{% assign LeftCenterMenu = LeftCenterMenu | strip %} - -{% capture RightCenterMenu %} - {{page.menu.RightCenter}} - {{site.menu.RightCenter}} - {{site.data.menu.RightCenter}} -{% endcapture %} -{% assign RightCenterMenu = RightCenterMenu | strip %} - -{% if TopLeftMenu or TopRightMenu or TopCenterMenu or BottomLeftMenu or BottomRightMenu or BottomCenterMenu or LeftCenterMenu or RightCenterMenu %} - -{% endif %} - -{% if TopLeftMenu != "" %} - - {{TopLeftMenu}} - -{% endif %} - -{% if TopRightMenu != "" %} - - {{TopRightMenu}} - -{% endif %} - -{% if TopCenterMenu != "" %} - - {{TopCenterMenu}} - -{% endif %} - -{% if BottomLeftMenu != "" %} - - {{BottomLeftMenu}} - -{% endif %} - -{% if BottomRightMenu != "" %} - - {{BottomRightMenu}} - -{% endif %} - -{% if BottomCenterMenu != "" %} - - {{BottomCenterMenu}} - -{% endif %} - -{% if LeftCenterMenu != "" %} - - {{LeftCenterMenu}} - -{% endif %} - -{% if RightCenterMenu != "" %} - - {{RightCenterMenu}} - -{% endif %} \ No newline at end of file diff --git a/_includes/OpenGraph.html b/_includes/OpenGraph.html deleted file mode 100644 index c2a4fb5..0000000 --- a/_includes/OpenGraph.html +++ /dev/null @@ -1,44 +0,0 @@ - -{% if page.title %} - -{% else %} - -{% endif %} -{% if page.type %} - -{% else %} - -{% endif %} -{% if page.description %} - - - -{% elsif content %} - - - - - -{% elsif site.description %} - - - -{% endif %} -{% if page.date %} - -{% endif %} -{% if page.url %} - - - -{% endif %} - -{% if page.image %} - - - -{% elsif site.image %} - - - -{% endif %} \ No newline at end of file diff --git a/_includes/OrgMember.md b/_includes/OrgMember.md deleted file mode 100644 index e69de29..0000000 diff --git a/_includes/PSAlias.md b/_includes/PSAlias.md deleted file mode 100644 index 95c1c0d..0000000 --- a/_includes/PSAlias.md +++ /dev/null @@ -1,4 +0,0 @@ -| Alias | Command | -|:-|-:|{% for alias in site.data.PSModule.Aliases %} -|{{ alias.Name }}|[{{ alias.Definition }}](/{{alias.Definition}})| -{% endfor %} \ No newline at end of file diff --git a/_includes/PSCmdlet.md b/_includes/PSCmdlet.md deleted file mode 100644 index 15fafc4..0000000 --- a/_includes/PSCmdlet.md +++ /dev/null @@ -1,3 +0,0 @@ -{% for cmdletName in site.data.PSModule.CmdletNames %} -* [{{ cmdletName }}](/{{cmdletName}}) -{% endfor %} \ No newline at end of file diff --git a/_includes/PSFunctions.md b/_includes/PSFunctions.md deleted file mode 100644 index ac0680b..0000000 --- a/_includes/PSFunctions.md +++ /dev/null @@ -1,3 +0,0 @@ -{% for functionName in site.data.PSModule.FunctionNames %} -* [{{ functionName }}](/{{functionName}}) -{% endfor %} \ No newline at end of file diff --git a/_includes/PSTag.md b/_includes/PSTag.md deleted file mode 100644 index 391f486..0000000 --- a/_includes/PSTag.md +++ /dev/null @@ -1,3 +0,0 @@ -{% for tagName in site.data.PSModule.Info.Tags %} -* [{{ tagName }}](https://www.powershellgallery.com/packages?q=Tags%3A%22{{tagName}}%22) -{% endfor %} \ No newline at end of file diff --git a/_includes/PSTypeName.md b/_includes/PSTypeName.md deleted file mode 100644 index 3bd71d8..0000000 --- a/_includes/PSTypeName.md +++ /dev/null @@ -1,3 +0,0 @@ -{% for typeName in site.data.PSModule.TypeNames %} -* [{{ typeName }}](/{{typeName | replace: ".", "/"}}) -{% endfor %} \ No newline at end of file diff --git a/_includes/Releases.md b/_includes/Releases.md deleted file mode 100644 index 02b6831..0000000 --- a/_includes/Releases.md +++ /dev/null @@ -1,4 +0,0 @@ -{% for release in site.github.releases %} -# [{{ release.tag_name }}]({{ release.html_url }}) -{{ release.body }} -{% endfor %} \ No newline at end of file diff --git a/_includes/Repos.md b/_includes/Repos.md deleted file mode 100644 index fdc09e8..0000000 --- a/_includes/Repos.md +++ /dev/null @@ -1,3 +0,0 @@ -{% for repository in site.github.public_repositories %} - * [{{ repository.name }}]({{ repository.html_url }}) -{% endfor %} \ No newline at end of file diff --git a/_includes/SiteTree.html b/_includes/SiteTree.html deleted file mode 100644 index b64882c..0000000 --- a/_includes/SiteTree.html +++ /dev/null @@ -1,20 +0,0 @@ -{% assign pages_by_url = site.pages | sort: "url" %} -{% assign page_depth = 0 %} - -{% for page in pages_by_url %} - {% if page.title == nil %} - {% continue %} - {% endif %} - {% assign page_parts = page.url | split: "/" %} - {% if page_parts.size > page_depth %} - {% assign page_depth = page_parts.size %} -
      - {% endif %} - {% if page_parts.size < page_depth %} - {% assign page_depth = page_parts.size %} -
    - {% endif %} -
  • -{{ page.title }} -
  • -{% endfor %} \ No newline at end of file diff --git a/_includes/Stylesheet.html b/_includes/Stylesheet.html deleted file mode 100644 index 3a32d64..0000000 --- a/_includes/Stylesheet.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if site.data.stylesheet %} - {% for stylesheet in site.data.stylesheet %} - - {% endfor %} -{% endif %} -{% if page.stylesheet %} - {% for stylesheet in page.stylesheet %} - - {% endfor %} -{% endif %} -{% if include.stylesheet %} - {% for stylesheet in include.stylesheet %} - - {% endfor %} -{% endif %} \ No newline at end of file From 967e834b5bac3c123f69555d9063fa98dacc086d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:23:23 +0000 Subject: [PATCH 111/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_layouts/Default.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/_layouts/Default.html diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html new file mode 100644 index 0000000..9d96e1c --- /dev/null +++ b/docs/_layouts/Default.html @@ -0,0 +1,27 @@ +--- + +title: Default.html +--- + + + + + + + {% include GoogleAnalytics.html %} + {% include ImportMap.html %} + {% include OpenGraph.html %} + {% include GoogleFont.html %} + {% include 4bitcss.html %} + {% include Margin.html %} + {% include Stylesheet.html %} + {% include Htmx.html %} + + + +{% include Menu.html %} + +{{content}} + +{% include Footer.html %} + \ No newline at end of file From 22d047e7c174d04967d4defd89641de5ae3f8d2f Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 112/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/LastDateBuilt.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/_data/LastDateBuilt.json diff --git a/docs/_data/LastDateBuilt.json b/docs/_data/LastDateBuilt.json new file mode 100644 index 0000000..96642b6 --- /dev/null +++ b/docs/_data/LastDateBuilt.json @@ -0,0 +1 @@ +"2024-11-27" \ No newline at end of file From bb8ccaa83bd39928ce5124d17deeae2de1e7e42a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 113/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/Info.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/_data/PSModule/Info.json diff --git a/docs/_data/PSModule/Info.json b/docs/_data/PSModule/Info.json new file mode 100644 index 0000000..5738161 --- /dev/null +++ b/docs/_data/PSModule/Info.json @@ -0,0 +1,23 @@ +{ + "Name": "PSJekyll", + "Version": { + "Major": 0, + "Minor": 1, + "Build": -1, + "Revision": -1, + "MajorRevision": -1, + "MinorRevision": -1 + }, + "Description": "Scarily Simple Static Sites with Jekyll and PowerShell", + "Copyright": "2024", + "CompanyName": "PowerShellWeb", + "Author": "James Brundage", + "Tags": [ + "PowerShellWeb", + "Jekyll", + "Docker", + "Container", + "GitHubAction", + "StaticSite" + ] +} \ No newline at end of file From e18c10041297ade1a25ee732380cfa691185ba53 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 114/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/FunctionNames.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/_data/PSModule/FunctionNames.json diff --git a/docs/_data/PSModule/FunctionNames.json b/docs/_data/PSModule/FunctionNames.json new file mode 100644 index 0000000..1ddd5ff --- /dev/null +++ b/docs/_data/PSModule/FunctionNames.json @@ -0,0 +1,7 @@ +[ + "New-PSJekyll", + "Remove-PSJekyll", + "Set-PSJekyll", + "Start-PSJekyll", + "Stop-PSJekyll" +] \ No newline at end of file From c6515f000b5417d03a82192e58685ff579135538 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 115/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/Aliases.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/_data/PSModule/Aliases.json diff --git a/docs/_data/PSModule/Aliases.json b/docs/_data/PSModule/Aliases.json new file mode 100644 index 0000000..4579eb9 --- /dev/null +++ b/docs/_data/PSModule/Aliases.json @@ -0,0 +1,22 @@ +[ + { + "Name": "New-Jekyll", + "Definition": "New-PSJekyll" + }, + { + "Name": "Remove-Jekyll", + "Definition": "Remove-PSJekyll" + }, + { + "Name": "Set-Jekyll", + "Definition": "Set-PSJekyll" + }, + { + "Name": "Start-Jekyll", + "Definition": "Start-PSJekyll" + }, + { + "Name": "Stop-Jekyll", + "Definition": "Stop-PSJekyll" + } +] \ No newline at end of file From 748de7a51421239d7b656f1c1f472a667ccc16c4 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 116/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/Exports.json | 1874 ++++++++++++++++++++++++++++++ 1 file changed, 1874 insertions(+) create mode 100644 docs/_data/PSModule/Exports.json diff --git a/docs/_data/PSModule/Exports.json b/docs/_data/PSModule/Exports.json new file mode 100644 index 0000000..eaca875 --- /dev/null +++ b/docs/_data/PSModule/Exports.json @@ -0,0 +1,1874 @@ +[ + { + "Name": "New-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Creates a new Jekyll site.\n .DESCRIPTION\n Creates a new Jekyll site, using PowerShell.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('New-Jekyll')]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # Creates scaffolding but with empty files\n [switch]\n $Blank,\n\n # Force creation even if PATH already exists\n [switch]\n $Force,\n\n # Safe mode\n [switch]\n $Safe,\n\n # Skip the bundle install\n [switch]\n $SkipBundle,\n\n # The path to the source files\n [string]\n $SourcePath,\n\n # The path to the destination files\n [string]\n $DestinationPath,\n\n # The path to the layout files\n [string]\n $LayoutPath,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace\n )\n\n $jekyllSplat = @(\n $name\n if ($blank) { '--blank' }\n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($skipBundle) { '--skip-bundle' }\n if ($sourcePath) {\"--source $sourcePath\"}\n if ($destinationPath) {\"--destination $destinationPath\"}\n if ($layoutPath) {\"--layouts $layoutPath\"}\n if ($pluginPath) {\"--plugins $($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n )\n\n $newJekyllJob = jekyll new @jekyllSplat &\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job')\n $newJekyllJob.pstypenames.Insert(0,'PSJekyll.Job.New-PSJekyll')\n $newJekyllJob\n", + "ParameterName": [ + "Name", + "Blank", + "Force", + "Safe", + "SkipBundle", + "SourcePath", + "DestinationPath", + "LayoutPath", + "PluginPath", + "LiquidProfile", + "Trace" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Blank", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Force", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Safe", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SkipBundle", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LayoutPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Remove-PSJekyll", + "CommandType": 2, + "Definition": " \n <#\n .SYNOPSIS\n Removes content from Jekyll\n .DESCRIPTION\n Removes files from Jekyll\n\n This is a slightly limited version of Remove-Item.\n #>\n [Alias('Remove-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0,ValueFromPipelineByPropertyName)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path\n )\n \n process {\n if (Test-Path $path) { \n Remove-Item -Path $path \n }\n } \n", + "ParameterName": [ + "Path", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Set-PSJekyll", + "CommandType": 2, + "Definition": " \n <#\n .SYNOPSIS\n Sets the content of a file in Jekyll\n .DESCRIPTION\n Sets the content of a file in Jekyll.\n\n This is only slightly smarter than Set-Content. \n \n It will convert the content to JSON if the file ends in .json, and to CSV if the file ends in .csv or .tsv.\n\n Otherwise, it will create a YAML header and then set the content.\n #>\n [Alias('Set-Jekyll')]\n param(\n # The path to the file.\n [Parameter(Mandatory,Position=0)] \n [ValidatePattern('^[\\\\/]')]\n [Alias('FullName')]\n [string]\n $Path,\n \n # If set, will return the file object\n [switch]\n $PassThru,\n \n # The content to set\n [Parameter(ValueFromPipeline)]\n [object]\n $Content,\n\n # Any metadata to set. \n # This will create a YAML header, which is required for most files in Jekyll to be processed properly.\n [Alias('YamlHeader')]\n [Collections.IDictionary]\n $MetaData = [Ordered]@{}\n )\n \n $allInput = @($input)\n if ((-not $allInput) -and $Content) {\n $allInput = @($Content)\n }\n\n if (-not $allInput) { return }\n if (-not (Test-Path $path)) { \n New-Item -Path $path -Type File -Force | Out-Null\n if (-not $?) { return }\n }\n \n if ($path -match '\\.json$') {\n if ($allInput.Length -eq 1) { \n ConvertTo-Json -InputObject $allInput[0] -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } else {\n ConvertTo-Json -InputObject $allInput -Depth $FormatEnumerationLimit | \n Set-Content -Path $path\n } \n } \n elseif ($path -match '\\.[ct]sv$') {\n $csvSplat = [Ordered]@{Path=$path}\n if ($path -match '\\.t') {\n $csvSplat.Delimiter = \"`t\"\n }\n $content | \n Export-Csv @csvSplat -NoTypeInformation \n }\n else {\n @(\n $metadata | & $psJekyll.FormatYaml.Script -YamlHeader\n $content\n ) | \n Set-Content -Path $path\n }\n if ($? -and $PassThru) {\n Get-Item -Path $path\n }\n", + "ParameterName": [ + "Path", + "PassThru", + "Content", + "MetaData", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PassThru", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Content", + "ParameterType": "System.Object", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "MetaData", + "ParameterType": "System.Collections.IDictionary", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Start-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Starts a Jekyll server\n .DESCRIPTION\n Starts a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Start-Jekyll')]\n [CmdletBinding()]\n param(\n # The name of the Jekyll site\n [string]\n $Name,\n\n # One or more config files to use\n [Alias('Configuration')]\n [string[]]\n $Config,\n\n # The source directory\n [string]\n $SourcePath,\n\n # The destination directory\n [string]\n $DestinationPath,\n \n # The host header\n [string]\n $HostHeader,\n\n # The port to listen on\n [uint]\n $Port,\n\n # The path to the plugin files\n [string[]]\n $PluginPath,\n\n # If set, will show a directory list.\n [switch]\n $ShowDirectoryList,\n\n # If set, will enable live reload.\n [switch]\n $LiveReload,\n\n # If set, will generate a liquid profile\n [switch]\n $LiquidProfile,\n\n # If set, will trace the execution\n [switch]\n $Trace, \n\n # Watch for changes and rebuild\n [switch]\n $Watch,\n\n # If set, will publish posts with a future date (previewing them).\n [switch]\n $PreviewFuture,\n\n # The base URL for the site\n [string]\n $BaseUrl,\n\n # If set, will detach the process\n [switch]\n $Detach,\n\n # Enable incremental rebuilds\n [switch]\n $Incremental\n )\n\n if ($env:IN_CONTAINER -and -not $HostHeader) {\n $HostHeader = '*'\n } \n\n $jekyllSplat = @( \n if ($force) { '--force' }\n if ($safe) { '--safe' }\n if ($Detach) { '--detach' }\n if ($PreviewFuture) { '--future' }\n if ($liveReload) {'--livereload'}\n if ($sourcePath) {\"--source\";\"$sourcePath\"}\n if ($destinationPath) {\"--destination\";\"$destinationPath\"}\n if ($BaseUrl) {\"--baseurl\";\"$BaseUrl\"}\n if ($Incremental) {'--incremental'}\n if ($HostHeader) {\"--host\"; \"$HostHeader\"}\n if ($Port) {\"--port\"; \"$Port\"}\n if ($ShowDirectoryList) {'--show-dir-list'}\n if ($layoutPath) {\"--layouts\"; \"$layoutPath\"}\n if ($pluginPath) {\"--plugins\"; \"$($pluginPath -join ',')\"}\n if ($liquidProfile) {'--profile'}\n if ($trace) {'--trace'}\n if ($watch) {'--watch'}\n\n )\n \n $startedAfter = [DateTime]::Now\n if ($jekyllSplat -notmatch '--watch') {\n $jekyllSplat += '--watch'\n }\n if ($jekyllSplat -notmatch '--incremental') {\n $jekyllSplat += '--incremental'\n }\n if ($jekyllSplat -notmatch '--trace') {\n $jekyllSplat += '--trace'\n }\n $isGemFilePresent = Test-Path -Path './Gemfile'\n if (-not $isGemFilePresent) {\n Write-Warning \"Gemfile not found in the current directory. Creating a default Gemfile.\"\n $gitRemote = git remote\n if ($gitRemote -isnot [string] -or $gitRemote -notmatch 'fatal') {\n $PSJekyll.Template.'GitHubPages.Gemfile'() > ./Gemfile\n } else {\n $PSJekyll.Template.MinGemFile() > ./Gemfile\n } \n }\n Write-Verbose \"Starting Jekyll server $jekyllSplat\"\n $jobName = if ($hostHeader) { \"PSJekyll.$hostHeader\" } else { \"Start-PSJekyll\" }\n $jekyllJob = \n Start-ThreadJob -ScriptBlock {\n if ($ExecutionContext.SessionState.InvokeCommand.GetCommand('sudo','application')) {\n sudo bundle install\n } else {\n bundle install\n }\n \n if ($args -match '^\\*$' -and $args -match '^--host$') {\n $otherArgs = @($args -notmatch '^(?>--host|\\*)$') \n bundle exec jekyll serve --host '*' @otherArgs\n } else {\n $promptLongForm = @('exec','jekyll','serve') + $args \n bundle @promptLongForm\n } \n } -ArgumentList $jekyllSplat -Name $jobName\n \n $jekyllProcesses = Get-Process *ruby* | Where-Object { $_.StartTime -ge $startedAfter }\n\n Register-EngineEvent -SourceIdentifier PowerShell.Exiting -Action {\n get-process ruby | Stop-Process -Force\n } | Out-Null\n \n $jekyllJob.pstypenames.insert(0,\"PSJekyll.JekyllJob\")\n $jekyllJob.psobject.properties.Add([psnoteproperty]::New(\"Processes\", $jekyllProcesses))\n $jekyllJob\n", + "ParameterName": [ + "Name", + "Config", + "SourcePath", + "DestinationPath", + "HostHeader", + "Port", + "PluginPath", + "ShowDirectoryList", + "LiveReload", + "LiquidProfile", + "Trace", + "Watch", + "PreviewFuture", + "BaseUrl", + "Detach", + "Incremental", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Config", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "HostHeader", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Port", + "ParameterType": "System.UInt32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ShowDirectoryList", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiveReload", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Watch", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PreviewFuture", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "BaseUrl", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Detach", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Incremental", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Stop-PSJekyll", + "CommandType": 2, + "Definition": "\n <#\n .SYNOPSIS\n Stops a Jekyll server\n .DESCRIPTION\n Stops a Jekyll server in a PowerShell job.\n .LINK\n https://jekyllrb.com/\n #>\n [Alias('Stop-Jekyll')] \n param(\n # The name of the Jekyll job\n [Parameter(ValueFromPipelineByPropertyName)]\n [string]\n $Name = '*'\n )\n\n process {\n Get-Job -Name \"Jekyll.$Name\" | Stop-Job\n }\n", + "ParameterName": [ + "Name", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "New-Jekyll", + "CommandType": 1, + "Definition": "New-PSJekyll", + "ParameterName": [ + "Name", + "Blank", + "Force", + "Safe", + "SkipBundle", + "SourcePath", + "DestinationPath", + "LayoutPath", + "PluginPath", + "LiquidProfile", + "Trace" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Blank", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Force", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Safe", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SkipBundle", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LayoutPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Remove-Jekyll", + "CommandType": 1, + "Definition": "Remove-PSJekyll", + "ParameterName": [ + "Path", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Set-Jekyll", + "CommandType": 1, + "Definition": "Set-PSJekyll", + "ParameterName": [ + "Path", + "PassThru", + "Content", + "MetaData", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Path", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PassThru", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Content", + "ParameterType": "System.Object", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "MetaData", + "ParameterType": "System.Collections.IDictionary", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Start-Jekyll", + "CommandType": 1, + "Definition": "Start-PSJekyll", + "ParameterName": [ + "Name", + "Config", + "SourcePath", + "DestinationPath", + "HostHeader", + "Port", + "PluginPath", + "ShowDirectoryList", + "LiveReload", + "LiquidProfile", + "Trace", + "Watch", + "PreviewFuture", + "BaseUrl", + "Detach", + "Incremental", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Config", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "SourcePath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "DestinationPath", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "HostHeader", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Port", + "ParameterType": "System.UInt32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PluginPath", + "ParameterType": "System.String[]", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ShowDirectoryList", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiveReload", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "LiquidProfile", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Trace", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Watch", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PreviewFuture", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "BaseUrl", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Detach", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Incremental", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + }, + { + "Name": "Stop-Jekyll", + "CommandType": 1, + "Definition": "Stop-PSJekyll", + "ParameterName": [ + "Name", + "Verbose", + "Debug", + "ErrorAction", + "WarningAction", + "InformationAction", + "ProgressAction", + "ErrorVariable", + "WarningVariable", + "InformationVariable", + "OutVariable", + "OutBuffer", + "PipelineVariable" + ], + "Parameter": [ + { + "Name": "Name", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Verbose", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "Debug", + "ParameterType": "System.Management.Automation.SwitchParameter", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ProgressAction", + "ParameterType": "System.Management.Automation.ActionPreference", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "ErrorVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "WarningVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "InformationVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "OutBuffer", + "ParameterType": "System.Int32", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + }, + { + "Name": "PipelineVariable", + "ParameterType": "System.String", + "Position": null, + "Mandatory": null, + "ValueFromPipeline": null, + "ValueFromPipelineByPropertyName": null, + "ValueFromRemainingArguments": null, + "HelpMessage": null + } + ] + } +] \ No newline at end of file From af833c664dbfb55865bb0d81577da375504ea9a3 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 117/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/CmdletNames.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/_data/PSModule/CmdletNames.json diff --git a/docs/_data/PSModule/CmdletNames.json b/docs/_data/PSModule/CmdletNames.json new file mode 100644 index 0000000..ec747fa --- /dev/null +++ b/docs/_data/PSModule/CmdletNames.json @@ -0,0 +1 @@ +null \ No newline at end of file From bc6340f2a17c4d309100b949bbb31b4807754a8f Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 118/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/TypeNames.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/_data/PSModule/TypeNames.json diff --git a/docs/_data/PSModule/TypeNames.json b/docs/_data/PSModule/TypeNames.json new file mode 100644 index 0000000..bf2496d --- /dev/null +++ b/docs/_data/PSModule/TypeNames.json @@ -0,0 +1,5 @@ +[ + "PSJekyll", + "PSJekyll.Site", + "PSJekyll.Template" +] \ No newline at end of file From ed3abf77d148fe6a193d572e5a4fe04bfa36522d Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 119/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/VariableNames.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/_data/PSModule/VariableNames.json diff --git a/docs/_data/PSModule/VariableNames.json b/docs/_data/PSModule/VariableNames.json new file mode 100644 index 0000000..d19c8e6 --- /dev/null +++ b/docs/_data/PSModule/VariableNames.json @@ -0,0 +1 @@ +"PSJekyll" \ No newline at end of file From d3eab5b72f522b65b89083e465507fd8cfe8c9ba Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 120/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_data/PSModule/AliasNames.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/_data/PSModule/AliasNames.json diff --git a/docs/_data/PSModule/AliasNames.json b/docs/_data/PSModule/AliasNames.json new file mode 100644 index 0000000..e775ae1 --- /dev/null +++ b/docs/_data/PSModule/AliasNames.json @@ -0,0 +1,7 @@ +[ + "New-Jekyll", + "Remove-Jekyll", + "Set-Jekyll", + "Start-Jekyll", + "Stop-Jekyll" +] \ No newline at end of file From d3e84ccb9a31f6ecff2c2749b4f10ef8b8541c72 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 121/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/_config.yml diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..f894bca --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1,12 @@ + +title: WebSocket +description: Work with WebSockets in PowerShell +url: https://websocket.powershellweb.com +permalink: pretty +palette: Konsolas +analyticsId: G-R5C30737B2 +googleFont: Noto Sans +stylesheet: https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css +defaults: + - values: + layout: Default From 81629fa143e7298bca1648492c07f2d70aced077 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 122/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_layouts/Default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html index 9d96e1c..9d0f2cb 100644 --- a/docs/_layouts/Default.html +++ b/docs/_layouts/Default.html @@ -24,4 +24,4 @@ {{content}} {% include Footer.html %} - \ No newline at end of file + From 7190acd623b95e3ed019da6459392dbc7bf540e5 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 123/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/4bitcss.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/_includes/4bitcss.html diff --git a/docs/_includes/4bitcss.html b/docs/_includes/4bitcss.html new file mode 100644 index 0000000..8d1ec76 --- /dev/null +++ b/docs/_includes/4bitcss.html @@ -0,0 +1,5 @@ +{% if page.palette %} + +{% elsif site.palette %} + +{% endif %} \ No newline at end of file From 2dd94cf49f8ccd556de65099495444d6a9601e46 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 124/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/PSTag.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/PSTag.md diff --git a/docs/_includes/PSTag.md b/docs/_includes/PSTag.md new file mode 100644 index 0000000..391f486 --- /dev/null +++ b/docs/_includes/PSTag.md @@ -0,0 +1,3 @@ +{% for tagName in site.data.PSModule.Info.Tags %} +* [{{ tagName }}](https://www.powershellgallery.com/packages?q=Tags%3A%22{{tagName}}%22) +{% endfor %} \ No newline at end of file From 0f89b6eb4e25a66562cc70d49012cd633c04cb66 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 125/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/PSFunctions.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/PSFunctions.md diff --git a/docs/_includes/PSFunctions.md b/docs/_includes/PSFunctions.md new file mode 100644 index 0000000..ac0680b --- /dev/null +++ b/docs/_includes/PSFunctions.md @@ -0,0 +1,3 @@ +{% for functionName in site.data.PSModule.FunctionNames %} +* [{{ functionName }}](/{{functionName}}) +{% endfor %} \ No newline at end of file From c7da0df996cd022c8edba4573a2a32fce18ecfa7 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:27 +0000 Subject: [PATCH 126/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/PSAlias.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 docs/_includes/PSAlias.md diff --git a/docs/_includes/PSAlias.md b/docs/_includes/PSAlias.md new file mode 100644 index 0000000..95c1c0d --- /dev/null +++ b/docs/_includes/PSAlias.md @@ -0,0 +1,4 @@ +| Alias | Command | +|:-|-:|{% for alias in site.data.PSModule.Aliases %} +|{{ alias.Name }}|[{{ alias.Definition }}](/{{alias.Definition}})| +{% endfor %} \ No newline at end of file From a5974a7383df96a8c52dd540da544a418a001e20 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 127/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Footer.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/_includes/Footer.html diff --git a/docs/_includes/Footer.html b/docs/_includes/Footer.html new file mode 100644 index 0000000..4137469 --- /dev/null +++ b/docs/_includes/Footer.html @@ -0,0 +1,9 @@ +
    +{% if page.footer %} + {{page.footer}} +{% elsif site.footer %} + {{site.footer}} +{% else %} + {% include Copyright.html %} +{% endif %} +
    \ No newline at end of file From b3226c45c10f8e479539169eca60709a72754fc5 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 128/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/ImportMap.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/_includes/ImportMap.html diff --git a/docs/_includes/ImportMap.html b/docs/_includes/ImportMap.html new file mode 100644 index 0000000..af3a6ca --- /dev/null +++ b/docs/_includes/ImportMap.html @@ -0,0 +1,25 @@ +{% if page.imports %} + {% assign importMap = page.imports %} +{% elsif page.importMap %} + {% assign importMap = page.importMap %} +{% elsif site.imports %} + {% assign importMap = site.imports %} +{% elsif site.importMap %} + {% assign importMap = site.importMap %} +{% elsif site.data.imports %} + {% assign importMap = site.data.imports %} +{% elsif site.data.importMap %} + {% assign importMap = site.data.importMap %} +{% endif %} +{% if importMap %} + +{% endif %} \ No newline at end of file From 6d9c11d3480cc965474d03cb55b1ace12ff35762 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 129/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Repos.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/Repos.md diff --git a/docs/_includes/Repos.md b/docs/_includes/Repos.md new file mode 100644 index 0000000..fdc09e8 --- /dev/null +++ b/docs/_includes/Repos.md @@ -0,0 +1,3 @@ +{% for repository in site.github.public_repositories %} + * [{{ repository.name }}]({{ repository.html_url }}) +{% endfor %} \ No newline at end of file From 8759861f70a4299174b65bb06dccb9cc917d1423 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 130/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/GitHubLink.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/GitHubLink.html diff --git a/docs/_includes/GitHubLink.html b/docs/_includes/GitHubLink.html new file mode 100644 index 0000000..3752c46 --- /dev/null +++ b/docs/_includes/GitHubLink.html @@ -0,0 +1,3 @@ +{% if site.github.repository_url %} +GitHub +{% endif %} \ No newline at end of file From 01ba79f5bd703708a7fb34c19aee46cabffc963a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 131/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Contributor.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/_includes/Contributor.md diff --git a/docs/_includes/Contributor.md b/docs/_includes/Contributor.md new file mode 100644 index 0000000..e69de29 From 8761bfa85241099f11bc38443c2c5a65365413cb Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 132/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Releases.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 docs/_includes/Releases.md diff --git a/docs/_includes/Releases.md b/docs/_includes/Releases.md new file mode 100644 index 0000000..02b6831 --- /dev/null +++ b/docs/_includes/Releases.md @@ -0,0 +1,4 @@ +{% for release in site.github.releases %} +# [{{ release.tag_name }}]({{ release.html_url }}) +{{ release.body }} +{% endfor %} \ No newline at end of file From 6b0badf0d56b56e72b9277921c2afc739bdc4f30 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 133/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/SiteTree.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/_includes/SiteTree.html diff --git a/docs/_includes/SiteTree.html b/docs/_includes/SiteTree.html new file mode 100644 index 0000000..b64882c --- /dev/null +++ b/docs/_includes/SiteTree.html @@ -0,0 +1,20 @@ +{% assign pages_by_url = site.pages | sort: "url" %} +{% assign page_depth = 0 %} + +{% for page in pages_by_url %} + {% if page.title == nil %} + {% continue %} + {% endif %} + {% assign page_parts = page.url | split: "/" %} + {% if page_parts.size > page_depth %} + {% assign page_depth = page_parts.size %} +
      + {% endif %} + {% if page_parts.size < page_depth %} + {% assign page_depth = page_parts.size %} +
    + {% endif %} +
  • +{{ page.title }} +
  • +{% endfor %} \ No newline at end of file From 6f1f283fb6f0d71caefad922247bf92a5b88de5d Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 134/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/PSCmdlet.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/PSCmdlet.md diff --git a/docs/_includes/PSCmdlet.md b/docs/_includes/PSCmdlet.md new file mode 100644 index 0000000..15fafc4 --- /dev/null +++ b/docs/_includes/PSCmdlet.md @@ -0,0 +1,3 @@ +{% for cmdletName in site.data.PSModule.CmdletNames %} +* [{{ cmdletName }}](/{{cmdletName}}) +{% endfor %} \ No newline at end of file From 656684d9cc11899153897b4fc745206e1a228e93 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 135/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Menu.html | 147 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 docs/_includes/Menu.html diff --git a/docs/_includes/Menu.html b/docs/_includes/Menu.html new file mode 100644 index 0000000..14a7574 --- /dev/null +++ b/docs/_includes/Menu.html @@ -0,0 +1,147 @@ +{% capture TopLeftMenu %} + {{page.menu.TopLeft}} + {{site.menu.TopLeft}} + {{site.data.menu.TopLeft}} +{% endcapture %} +{% assign TopLeftMenu = TopLeftMenu | strip %} + +{% capture TopRightMenu %} + {{page.menu.TopRight}} + {{site.menu.TopRight}} + {{site.data.menu.TopRight}} + {% unless site.NoGitHubLink or site.NoLink %} + {% include GitHubLink.html %} + {% endunless %} +{% endcapture %} +{% assign TopRightMenu = TopRightMenu | strip %} + +{% capture TopCenterMenu %} + {{page.menu.TopCenter}} + {{site.menu.TopCenter}} + {{site.data.menu.TopCenter}} +{% endcapture %} +{% assign TopCenterMenu = TopCenterMenu | strip %} + +{% capture BottomLeftMenu %} + {{page.menu.BottomLeft}} + {{site.menu.BottomLeft}} + {{site.data.menu.BottomLeft}} +{% endcapture %} +{% assign BottomLeftMenu = BottomLeftMenu | strip %} + +{% capture BottomRightMenu %} + {{page.menu.BottomRight}} + {{site.menu.BottomRight}} + {{site.data.menu.BottomRight}} +{% endcapture %} +{% assign BottomRightMenu = BottomRightMenu | strip %} + +{% capture BottomCenterMenu %} + {{page.menu.BottomCenter}} + {{site.menu.BottomCenter}} + {{site.data.menu.BottomCenter}} +{% endcapture %} +{% assign BottomCenterMenu = BottomCenterMenu | strip %} + +{% capture LeftCenterMenu %} + {{page.menu.LeftCenter}} + {{site.menu.LeftCenter}} + {{site.data.menu.LeftCenter}} +{% endcapture %} +{% assign LeftCenterMenu = LeftCenterMenu | strip %} + +{% capture RightCenterMenu %} + {{page.menu.RightCenter}} + {{site.menu.RightCenter}} + {{site.data.menu.RightCenter}} +{% endcapture %} +{% assign RightCenterMenu = RightCenterMenu | strip %} + +{% if TopLeftMenu or TopRightMenu or TopCenterMenu or BottomLeftMenu or BottomRightMenu or BottomCenterMenu or LeftCenterMenu or RightCenterMenu %} + +{% endif %} + +{% if TopLeftMenu != "" %} + + {{TopLeftMenu}} + +{% endif %} + +{% if TopRightMenu != "" %} + + {{TopRightMenu}} + +{% endif %} + +{% if TopCenterMenu != "" %} + + {{TopCenterMenu}} + +{% endif %} + +{% if BottomLeftMenu != "" %} + + {{BottomLeftMenu}} + +{% endif %} + +{% if BottomRightMenu != "" %} + + {{BottomRightMenu}} + +{% endif %} + +{% if BottomCenterMenu != "" %} + + {{BottomCenterMenu}} + +{% endif %} + +{% if LeftCenterMenu != "" %} + + {{LeftCenterMenu}} + +{% endif %} + +{% if RightCenterMenu != "" %} + + {{RightCenterMenu}} + +{% endif %} \ No newline at end of file From 1c038ff7d3686afe2fde128e9686cd362f473225 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 136/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Margin.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/_includes/Margin.html diff --git a/docs/_includes/Margin.html b/docs/_includes/Margin.html new file mode 100644 index 0000000..f5f3c60 --- /dev/null +++ b/docs/_includes/Margin.html @@ -0,0 +1,12 @@ +{% if page.margin %} + +{% elsif site.margin %} + +{% else %} + +{% endif %} \ No newline at end of file From 20fa66319b6aa5a1a7404ba2d97c545414c88664 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 137/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Stylesheet.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/_includes/Stylesheet.html diff --git a/docs/_includes/Stylesheet.html b/docs/_includes/Stylesheet.html new file mode 100644 index 0000000..3a32d64 --- /dev/null +++ b/docs/_includes/Stylesheet.html @@ -0,0 +1,15 @@ +{% if site.data.stylesheet %} + {% for stylesheet in site.data.stylesheet %} + + {% endfor %} +{% endif %} +{% if page.stylesheet %} + {% for stylesheet in page.stylesheet %} + + {% endfor %} +{% endif %} +{% if include.stylesheet %} + {% for stylesheet in include.stylesheet %} + + {% endfor %} +{% endif %} \ No newline at end of file From 1abce224cf1d4955df344368f186affe83c117fe Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 138/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/OpenGraph.html | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docs/_includes/OpenGraph.html diff --git a/docs/_includes/OpenGraph.html b/docs/_includes/OpenGraph.html new file mode 100644 index 0000000..c2a4fb5 --- /dev/null +++ b/docs/_includes/OpenGraph.html @@ -0,0 +1,44 @@ + +{% if page.title %} + +{% else %} + +{% endif %} +{% if page.type %} + +{% else %} + +{% endif %} +{% if page.description %} + + + +{% elsif content %} + + + + + +{% elsif site.description %} + + + +{% endif %} +{% if page.date %} + +{% endif %} +{% if page.url %} + + + +{% endif %} + +{% if page.image %} + + + +{% elsif site.image %} + + + +{% endif %} \ No newline at end of file From dc1fd2f932e05f1a2806f110d92b137f515c0820 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 139/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/GoogleAnalytics.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/_includes/GoogleAnalytics.html diff --git a/docs/_includes/GoogleAnalytics.html b/docs/_includes/GoogleAnalytics.html new file mode 100644 index 0000000..bde8fa8 --- /dev/null +++ b/docs/_includes/GoogleAnalytics.html @@ -0,0 +1,10 @@ +{% if site.analyticsId %} + + + +{% endif %} \ No newline at end of file From 33636a55718b889bcf309aa887e228311cad564c Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 140/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Copyright.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/_includes/Copyright.html diff --git a/docs/_includes/Copyright.html b/docs/_includes/Copyright.html new file mode 100644 index 0000000..a160c7d --- /dev/null +++ b/docs/_includes/Copyright.html @@ -0,0 +1,9 @@ +© {% if page.copyright %} + {{page.copyright}} +{% elsif site.copyright %} + {{site.copyright}} +{% elsif site.data.PSModuleInfo.Copyright %} + {{site.data.PSModuleInfo.Copyright}} +{% else %} + {{ site.time | date: '%Y' }} {{ site.author }} +{% endif %} \ No newline at end of file From a87ed205236d25f3d729eaf4a59c0cbb6b552d51 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 141/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/GoogleFont.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/_includes/GoogleFont.html diff --git a/docs/_includes/GoogleFont.html b/docs/_includes/GoogleFont.html new file mode 100644 index 0000000..eef46f2 --- /dev/null +++ b/docs/_includes/GoogleFont.html @@ -0,0 +1,20 @@ +{% if page.googleFont %} + + +{% elsif site.googleFont %} + + +{% else %} + + +{% endif %} +{% if page.codeFont %} + + +{% elsif site.codeFont %} + + +{% else %} + + +{% endif %} \ No newline at end of file From 3e1073570014feacad99c7a84e52243fbbcb87df Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 142/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/PSTypeName.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/PSTypeName.md diff --git a/docs/_includes/PSTypeName.md b/docs/_includes/PSTypeName.md new file mode 100644 index 0000000..3bd71d8 --- /dev/null +++ b/docs/_includes/PSTypeName.md @@ -0,0 +1,3 @@ +{% for typeName in site.data.PSModule.TypeNames %} +* [{{ typeName }}](/{{typeName | replace: ".", "/"}}) +{% endfor %} \ No newline at end of file From 795fb398bcf583a5ad07965beb7e9d98d5286a0b Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 143/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/Htmx.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/_includes/Htmx.html diff --git a/docs/_includes/Htmx.html b/docs/_includes/Htmx.html new file mode 100644 index 0000000..a8cfa5b --- /dev/null +++ b/docs/_includes/Htmx.html @@ -0,0 +1,3 @@ +{% if page.htmx or site.htmx %} + +{% endif %} \ No newline at end of file From 4f0b13cd54b93921afa80b979a399196817a84b6 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 144/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/_includes/OrgMember.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/_includes/OrgMember.md diff --git a/docs/_includes/OrgMember.md b/docs/_includes/OrgMember.md new file mode 100644 index 0000000..e69de29 From 6b2f950e72783c671681f3ca77cb37936edf846b Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 145/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/PSTag.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/PSTag.md diff --git a/docs/PSTag.md b/docs/PSTag.md new file mode 100644 index 0000000..06cb3f6 --- /dev/null +++ b/docs/PSTag.md @@ -0,0 +1,5 @@ +--- + +title: PSTag +--- +{% include PSTag.md %} \ No newline at end of file From e62753f939869e2462e26b61a832aec2df41642b Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:28 +0000 Subject: [PATCH 146/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Aliases.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Aliases.md diff --git a/docs/Aliases.md b/docs/Aliases.md new file mode 100644 index 0000000..c21840f --- /dev/null +++ b/docs/Aliases.md @@ -0,0 +1,5 @@ +--- + +title: Aliases +--- +{% include PSAlias.md %} \ No newline at end of file From 8b2daf202e85b2a9b3127bea3fe0f993dc4f7559 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 147/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Functions.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Functions.md diff --git a/docs/Functions.md b/docs/Functions.md new file mode 100644 index 0000000..cbc7f2b --- /dev/null +++ b/docs/Functions.md @@ -0,0 +1,5 @@ +--- + +title: Functions +--- +{% include PSFunctions.md %} \ No newline at end of file From 63f9cb2774af6e98906cbd7992dec6fa8b4b9d4a Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 148/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Cmdlet.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Cmdlet.md diff --git a/docs/Cmdlet.md b/docs/Cmdlet.md new file mode 100644 index 0000000..449f0c1 --- /dev/null +++ b/docs/Cmdlet.md @@ -0,0 +1,5 @@ +--- + +title: Cmdlet +--- +{% include PSCmdlet.md %} \ No newline at end of file From 897a564ed97d5307bc9031dd5a2591ee95fe2452 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 149/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Repos.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Repos.md diff --git a/docs/Repos.md b/docs/Repos.md new file mode 100644 index 0000000..7447c23 --- /dev/null +++ b/docs/Repos.md @@ -0,0 +1,5 @@ +--- + +title: Repos +--- +{% include Repos.md %} \ No newline at end of file From 26b24b4f54380b27daff59e9d135b56a8b109eef Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 150/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Releases.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Releases.md diff --git a/docs/Releases.md b/docs/Releases.md new file mode 100644 index 0000000..421816c --- /dev/null +++ b/docs/Releases.md @@ -0,0 +1,5 @@ +--- + +title: Releases +--- +{% include Releases.md %} \ No newline at end of file From a30aac4a641af1dbe36a86ebd45eec3582c70881 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 151/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Tree.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Tree.md diff --git a/docs/Tree.md b/docs/Tree.md new file mode 100644 index 0000000..6f2d8aa --- /dev/null +++ b/docs/Tree.md @@ -0,0 +1,5 @@ +--- + +title: Tree +--- +{% include SiteTree.html %} \ No newline at end of file From 090c39b9134924c20823be0cc93a3d72add890e0 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 152/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Alias.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Alias.md diff --git a/docs/Alias.md b/docs/Alias.md new file mode 100644 index 0000000..0238da1 --- /dev/null +++ b/docs/Alias.md @@ -0,0 +1,5 @@ +--- + +title: Alias +--- +{% include PSAlias.md %} \ No newline at end of file From 788a2b212e5c812f920c1b59881a0770c16b87eb Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 153/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Cmdlets.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Cmdlets.md diff --git a/docs/Cmdlets.md b/docs/Cmdlets.md new file mode 100644 index 0000000..2f47ec9 --- /dev/null +++ b/docs/Cmdlets.md @@ -0,0 +1,5 @@ +--- + +title: Cmdlets +--- +{% include PSCmdlet.md %} \ No newline at end of file From afbe3b7304e293a3a330fe709a5ce7d386e84ba1 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 154/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Contibutors.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Contibutors.md diff --git a/docs/Contibutors.md b/docs/Contibutors.md new file mode 100644 index 0000000..fb1c01a --- /dev/null +++ b/docs/Contibutors.md @@ -0,0 +1,5 @@ +--- + +title: Contibutors +--- +{% include Contributor.md %} \ No newline at end of file From e7837a337cd1a1a481bb9f0283ba004b13a61f67 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 155/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/PSTypeName.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/PSTypeName.md diff --git a/docs/PSTypeName.md b/docs/PSTypeName.md new file mode 100644 index 0000000..2e44052 --- /dev/null +++ b/docs/PSTypeName.md @@ -0,0 +1,5 @@ +--- + +title: PSTypeName +--- +{% include PSTypeName.md %} \ No newline at end of file From c4dfe6fe8b2d603bc8fd0ea6b091b223f4aafffb Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 156/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Members.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Members.md diff --git a/docs/Members.md b/docs/Members.md new file mode 100644 index 0000000..5243240 --- /dev/null +++ b/docs/Members.md @@ -0,0 +1,5 @@ +--- + +title: Members +--- +{% include OrgMember.md %} \ No newline at end of file From ac6ed255cdf6366fc0721c13e95affe56dbb7756 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:23:29 +0000 Subject: [PATCH 157/177] feat: WebSocket Website ( Fixes #19 ) Fixing output directory --- docs/Function.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/Function.md diff --git a/docs/Function.md b/docs/Function.md new file mode 100644 index 0000000..ab12d56 --- /dev/null +++ b/docs/Function.md @@ -0,0 +1,5 @@ +--- + +title: Function +--- +{% include PSFunctions.md %} \ No newline at end of file From 26d3de62c4f4de313f35016b9b79e387f72c1f6a Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:23:37 -0800 Subject: [PATCH 158/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/CNAME diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..ae753c0 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +websocket.powershellweb.com \ No newline at end of file From 6e63e47771ae79268b79bcaefebcda6278fd74b4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:25:41 +0000 Subject: [PATCH 159/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/_layouts/Default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html index 9d0f2cb..9d96e1c 100644 --- a/docs/_layouts/Default.html +++ b/docs/_layouts/Default.html @@ -24,4 +24,4 @@ {{content}} {% include Footer.html %} - + \ No newline at end of file From d3baedbff7b3bbadcc3bb5b3576c80d02a2b54db Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 160/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/_layouts/Default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html index 9d96e1c..9d0f2cb 100644 --- a/docs/_layouts/Default.html +++ b/docs/_layouts/Default.html @@ -24,4 +24,4 @@ {{content}} {% include Footer.html %} - \ No newline at end of file + From 46864b09f401761531e08ac0b9b51b98ee7f4153 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 161/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/PSTag.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/PSTag.md b/docs/PSTag.md index 06cb3f6..d2de97f 100644 --- a/docs/PSTag.md +++ b/docs/PSTag.md @@ -2,4 +2,4 @@ title: PSTag --- -{% include PSTag.md %} \ No newline at end of file +{% include PSTag.md %} From 97d89ba1c8311a12d9583fe0a0294f98eaa07794 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 162/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Aliases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Aliases.md b/docs/Aliases.md index c21840f..a63be11 100644 --- a/docs/Aliases.md +++ b/docs/Aliases.md @@ -2,4 +2,4 @@ title: Aliases --- -{% include PSAlias.md %} \ No newline at end of file +{% include PSAlias.md %} From a6ae4d6f1e874fc0b521222e14f414ac7b2b7055 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 163/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Functions.md b/docs/Functions.md index cbc7f2b..0ac3c89 100644 --- a/docs/Functions.md +++ b/docs/Functions.md @@ -2,4 +2,4 @@ title: Functions --- -{% include PSFunctions.md %} \ No newline at end of file +{% include PSFunctions.md %} From c73caddfdb47978b34333b1f2a6303a72c045031 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 164/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Cmdlet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Cmdlet.md b/docs/Cmdlet.md index 449f0c1..e4787bb 100644 --- a/docs/Cmdlet.md +++ b/docs/Cmdlet.md @@ -2,4 +2,4 @@ title: Cmdlet --- -{% include PSCmdlet.md %} \ No newline at end of file +{% include PSCmdlet.md %} From 6d7fd8539fcf41f5365fadcc98ea8c0585218881 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 165/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Repos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Repos.md b/docs/Repos.md index 7447c23..6eef525 100644 --- a/docs/Repos.md +++ b/docs/Repos.md @@ -2,4 +2,4 @@ title: Repos --- -{% include Repos.md %} \ No newline at end of file +{% include Repos.md %} From d7827e80741b77580c4d0a5c6b46a72d4a0ba933 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 166/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Releases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Releases.md b/docs/Releases.md index 421816c..cda6703 100644 --- a/docs/Releases.md +++ b/docs/Releases.md @@ -2,4 +2,4 @@ title: Releases --- -{% include Releases.md %} \ No newline at end of file +{% include Releases.md %} From c22220af6cd8143217f07c0dc9eac572e27e9b50 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 167/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tree.md b/docs/Tree.md index 6f2d8aa..1ae2682 100644 --- a/docs/Tree.md +++ b/docs/Tree.md @@ -2,4 +2,4 @@ title: Tree --- -{% include SiteTree.html %} \ No newline at end of file +{% include SiteTree.html %} From 6f61b8380cc25af52df37aaaf80e77f8a3198920 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 168/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Alias.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Alias.md b/docs/Alias.md index 0238da1..9d034b3 100644 --- a/docs/Alias.md +++ b/docs/Alias.md @@ -2,4 +2,4 @@ title: Alias --- -{% include PSAlias.md %} \ No newline at end of file +{% include PSAlias.md %} From ddf3042fa29e813b416022ac5af9d01c5b1262e5 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 169/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Cmdlets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Cmdlets.md b/docs/Cmdlets.md index 2f47ec9..e358037 100644 --- a/docs/Cmdlets.md +++ b/docs/Cmdlets.md @@ -2,4 +2,4 @@ title: Cmdlets --- -{% include PSCmdlet.md %} \ No newline at end of file +{% include PSCmdlet.md %} From 322ce7e95f0fda24ef505e40c0828419435e7c8b Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 170/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Contibutors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Contibutors.md b/docs/Contibutors.md index fb1c01a..094e77a 100644 --- a/docs/Contibutors.md +++ b/docs/Contibutors.md @@ -2,4 +2,4 @@ title: Contibutors --- -{% include Contributor.md %} \ No newline at end of file +{% include Contributor.md %} From 81bcc2b4670a885002fc13075c8cf668f98770fb Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 171/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/PSTypeName.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/PSTypeName.md b/docs/PSTypeName.md index 2e44052..d0744b3 100644 --- a/docs/PSTypeName.md +++ b/docs/PSTypeName.md @@ -2,4 +2,4 @@ title: PSTypeName --- -{% include PSTypeName.md %} \ No newline at end of file +{% include PSTypeName.md %} From 843bfaf348364790c76e2153dd9056ad41dcde6e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 172/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Members.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Members.md b/docs/Members.md index 5243240..a9cac94 100644 --- a/docs/Members.md +++ b/docs/Members.md @@ -2,4 +2,4 @@ title: Members --- -{% include OrgMember.md %} \ No newline at end of file +{% include OrgMember.md %} From 6ba2aa8394f42e54316f6c6a942cb1e2e48fd33d Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:25:45 +0000 Subject: [PATCH 173/177] feat: WebSocket Website ( Fixes #19 ) Adding CNAME --- docs/Function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Function.md b/docs/Function.md index ab12d56..b922567 100644 --- a/docs/Function.md +++ b/docs/Function.md @@ -2,4 +2,4 @@ title: Function --- -{% include PSFunctions.md %} \ No newline at end of file +{% include PSFunctions.md %} From 1d14b741829a00c205411647253569074f225ee6 Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 01:26:41 -0800 Subject: [PATCH 174/177] release: WebSocket 0.1 ( Fixes #1 ) Updating Release Notes and CHANGELOG --- CHANGELOG.md | 11 +++++++++++ WebSocket.psd1 | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..abb0512 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +## WebSocket 0.1 + +> Like It? [Star It](https://github.com/PowerShellWeb/WebSocket) +> Love It? [Support It](https://github.com/sponsors/StartAutomating) + +* Initial Release of WebSocket module + * Get-WebSocket gets content from a WebSocket + * Docker container for WebSocket + * Build Workflow + * WebSocket Logo + * WebSocket website \ No newline at end of file diff --git a/WebSocket.psd1 b/WebSocket.psd1 index ba12dca..8cdbd37 100644 --- a/WebSocket.psd1 +++ b/WebSocket.psd1 @@ -11,6 +11,19 @@ Tags = @('WebSocket', 'WebSockets', 'Networking', 'Web') ProjectURI = 'https://github.com/PowerShellWeb/WebSocket' LicenseURI = 'https://github.com/PowerShellWeb/WebSocket/blob/main/LICENSE' + ReleaseNotes = @' +## WebSocket 0.1 + +> Like It? [Star It](https://github.com/PowerShellWeb/WebSocket) +> Love It? [Support It](https://github.com/sponsors/StartAutomating) + +* Initial Release of WebSocket module + * Get-WebSocket gets content from a WebSocket + * Docker container for WebSocket + * Build Workflow + * WebSocket Logo + * WebSocket website +'@ } } } \ No newline at end of file From 15d58b85ef7ecac38d635b2f9e5b14183ee9f076 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:29:00 +0000 Subject: [PATCH 175/177] release: WebSocket 0.1 ( Fixes #1 ) Updating Release Notes and CHANGELOG --- docs/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index e2147f6..7aeb592 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -6,3 +6,6 @@ * Initial Release of WebSocket module * Get-WebSocket gets content from a WebSocket * Docker container for WebSocket + * Build Workflow + * WebSocket Logo + * WebSocket website From ffe7ec473dcc731b831a53837c3dd3230c9f0633 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Nov 2024 09:29:01 +0000 Subject: [PATCH 176/177] release: WebSocket 0.1 ( Fixes #1 ) Updating Release Notes and CHANGELOG --- docs/_layouts/Default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html index 9d0f2cb..9d96e1c 100644 --- a/docs/_layouts/Default.html +++ b/docs/_layouts/Default.html @@ -24,4 +24,4 @@ {{content}} {% include Footer.html %} - + \ No newline at end of file From 3794b3f067806cddbda0041dea2c476c4d4f2751 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 27 Nov 2024 09:29:04 +0000 Subject: [PATCH 177/177] release: WebSocket 0.1 ( Fixes #1 ) Updating Release Notes and CHANGELOG --- docs/_layouts/Default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/Default.html b/docs/_layouts/Default.html index 9d96e1c..9d0f2cb 100644 --- a/docs/_layouts/Default.html +++ b/docs/_layouts/Default.html @@ -24,4 +24,4 @@ {{content}} {% include Footer.html %} - \ No newline at end of file +