From 5b68e38b6cb182f43dcccbd0fc86a2d838d709a7 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Oct 2025 18:37:20 +0200 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20linter=20en?= =?UTF-8?q?vironment=20variables=20to=20PSModule=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PSModule.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/PSModule.yml b/.github/PSModule.yml index 35f3fc6..96c0cd8 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -19,3 +19,12 @@ Test: # Build: # Docs: # Skip: true +Linter: + env: + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false From c5a140dbcd5cb1e4a7234044e85687adc642d78a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Oct 2025 22:37:32 +0200 Subject: [PATCH 2/6] Fix Docs --- .github/PSModule.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/PSModule.yml b/.github/PSModule.yml index 35f3fc6..3f5a777 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -19,3 +19,13 @@ Test: # Build: # Docs: # Skip: true + +Linter: + env: + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false From 6607f8cdce22a77f9c9a324931d1ad4d0f5cc144 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 8 Oct 2025 11:47:09 +0200 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Clean=20up=20comm?= =?UTF-8?q?ents=20in=20markdown-lint=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/linters/.markdown-lint.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index b9ecdfa..57db57e 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -8,18 +8,19 @@ ############### # Rules by id # ############### -MD004: false # Unordered list style +MD004: false # Unordered list style MD007: - indent: 2 # Unordered list indentation + indent: 2 # Unordered list indentation MD013: - line_length: 808 # Line length + line_length: 808 # Line length +MD024: false # no-duplicate-heading, INPUTS and OUTPUTS _can_ be the same item MD026: - punctuation: ".,;:!。,;:" # List of not allowed -MD029: false # Ordered list item prefix -MD033: false # Allow inline HTML -MD036: false # Emphasis used instead of a heading + punctuation: '.,;:!。,;:' # List of not allowed +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML +MD036: false # Emphasis used instead of a heading ################# # Rules by tags # ################# -blank_lines: false # Error on blank lines +blank_lines: false # Error on blank lines From 115d0dfe225302bc0d2296f99529a6342601e11b Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 10 Oct 2025 16:25:55 +0200 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Fix=20formatting?= =?UTF-8?q?=20of=20example=20in=20ConvertTo-UriQueryString=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/public/ConvertTo-UriQueryString.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions/public/ConvertTo-UriQueryString.ps1 b/src/functions/public/ConvertTo-UriQueryString.ps1 index c956332..aecda46 100644 --- a/src/functions/public/ConvertTo-UriQueryString.ps1 +++ b/src/functions/public/ConvertTo-UriQueryString.ps1 @@ -9,8 +9,10 @@ and values are URL-encoded per RFC3986 rules to ensure the query string is valid. If a value is an array, multiple entries for the same key are generated. - .EXAMPLE + .EXAMPLE` + ```pwsh ConvertTo-UriQueryString -Query @{ foo = 'bar'; search = 'hello world'; ids = 1,2,3 } + ``` Output: ```powershell From ed16bb5c6ac9dd5b846a96d2ff9b491cf50839bb Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 10 Oct 2025 16:45:05 +0200 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20examples?= =?UTF-8?q?=20in=20Get-Uri,=20New-Uri,=20and=20Test-Uri=20documentation=20?= =?UTF-8?q?to=20use=20code=20blocks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/public/Get-Uri.ps1 | 6 ++++++ src/functions/public/New-Uri.ps1 | 9 ++++++--- src/functions/public/Test-Uri.ps1 | 6 ++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/functions/public/Get-Uri.ps1 b/src/functions/public/Get-Uri.ps1 index 537824d..d3c1c1d 100644 --- a/src/functions/public/Get-Uri.ps1 +++ b/src/functions/public/Get-Uri.ps1 @@ -11,7 +11,9 @@ format parameters. .EXAMPLE + ```pwsh Get-Uri -Uri 'example.com' + ``` Output: ```powershell @@ -42,7 +44,9 @@ Converts 'example.com' into a normalized absolute URI string. .EXAMPLE + ```pwsh Get-Uri -Uri 'https://example.com/path' -AsUriBuilder + ``` Output: ```powershell @@ -60,7 +64,9 @@ Returns a [System.UriBuilder] object for the specified URI. .EXAMPLE + ```pwsh 'example.com/path' | Get-Uri -AsString + ``` Output: ```powershell diff --git a/src/functions/public/New-Uri.ps1 b/src/functions/public/New-Uri.ps1 index 47b2cbb..a8b8f44 100644 --- a/src/functions/public/New-Uri.ps1 +++ b/src/functions/public/New-Uri.ps1 @@ -10,8 +10,9 @@ fragment identifiers. By default, returns a `[System.Uri]` object. .EXAMPLE - # Simple usage with base and path + ```pwsh New-Uri -BaseUri 'https://example.com' -Path 'products/item' + ``` Output: ```powershell @@ -42,8 +43,9 @@ Constructs a URI with the given base and path. .EXAMPLE - # Adding query parameters via hashtable + ```pwsh New-Uri 'https://example.com/api' -Path 'search' -Query @{ q = 'test search'; page = @(2, 4) } -AsUriBuilder + ``` Output: ```powershell @@ -61,8 +63,9 @@ Adds query parameters to the URI, automatically encoding values. .EXAMPLE - # Merging with existing query and using -MergeQueryParameter + ```pwsh New-Uri 'https://example.com/data?year=2023' -Query @{ year = 2024; sort = 'asc' } -MergeQueryParameters -AsString + ``` Output: ```powershell diff --git a/src/functions/public/Test-Uri.ps1 b/src/functions/public/Test-Uri.ps1 index 47d64d7..469d2a9 100644 --- a/src/functions/public/Test-Uri.ps1 +++ b/src/functions/public/Test-Uri.ps1 @@ -8,7 +8,9 @@ If the `-AllowRelative` switch is specified, it allows both absolute and relative URIs. .EXAMPLE + ```pwsh Test-Uri -Uri "https://example.com" + ``` Output: ```powershell @@ -18,7 +20,9 @@ Checks if `https://example.com` is a valid URI, returning `$true`. .EXAMPLE + ```pwsh Test-Uri -Uri "invalid-uri" + ``` Output: ```powershell @@ -28,7 +32,9 @@ Returns `$false` for an invalid URI string. .EXAMPLE + ```pwsh "https://example.com", "invalid-uri" | Test-Uri + ``` Output: ```powershell From dc225e020c798f259091d080d6b3fef6c9862ac3 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 11 Oct 2025 08:21:07 +0200 Subject: [PATCH 6/6] Update src/functions/public/ConvertTo-UriQueryString.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/functions/public/ConvertTo-UriQueryString.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/ConvertTo-UriQueryString.ps1 b/src/functions/public/ConvertTo-UriQueryString.ps1 index aecda46..5cba03d 100644 --- a/src/functions/public/ConvertTo-UriQueryString.ps1 +++ b/src/functions/public/ConvertTo-UriQueryString.ps1 @@ -9,7 +9,7 @@ and values are URL-encoded per RFC3986 rules to ensure the query string is valid. If a value is an array, multiple entries for the same key are generated. - .EXAMPLE` + .EXAMPLE ```pwsh ConvertTo-UriQueryString -Query @{ foo = 'bar'; search = 'hello world'; ids = 1,2,3 } ```