From 1bb0d830c5f9db82700036bd885bc32188bbeef7 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 20 May 2025 22:49:27 +0200 Subject: [PATCH 1/2] Update GoogleFonts functions documentation and required module versions --- src/functions/public/Get-GoogleFont.ps1 | 7 +++++++ src/functions/public/Install-GoogleFont.ps1 | 10 +++++++++- src/manifest.psd1 | 3 --- 3 files changed, 16 insertions(+), 4 deletions(-) delete mode 100644 src/manifest.psd1 diff --git a/src/functions/public/Get-GoogleFont.ps1 b/src/functions/public/Get-GoogleFont.ps1 index 735140e..77210b6 100644 --- a/src/functions/public/Get-GoogleFont.ps1 +++ b/src/functions/public/Get-GoogleFont.ps1 @@ -20,6 +20,13 @@ Get-GoogleFonts -Name 'Noto*' Get the GoogleFont with the name starting with 'Noto'. + + .LINK + https://psmodule.io/GoogleFonts/Functions/Get-GoogleFont + + .NOTES + More information about the GoogleFonts can be found at: + [GoogleFonts | GitHub](https://github.com/google/fonts) #> [Alias('Get-GoogleFonts')] [OutputType([System.Object[]])] diff --git a/src/functions/public/Install-GoogleFont.ps1 b/src/functions/public/Install-GoogleFont.ps1 index 71c6770..72d716a 100644 --- a/src/functions/public/Install-GoogleFont.ps1 +++ b/src/functions/public/Install-GoogleFont.ps1 @@ -1,4 +1,5 @@ -#Requires -Modules @{ ModuleName = 'Fonts'; RequiredVersion = '1.1.19' } +#Requires -Modules @{ ModuleName = 'Fonts'; RequiredVersion = '1.1.21' } +#Requires -Modules @{ ModuleName = 'Admin'; RequiredVersion = '1.1.6' } function Install-GoogleFont { <# @@ -27,6 +28,13 @@ function Install-GoogleFont { Install-GoogleFont -All Installs all Google Fonts to the current user. + + .LINK + https://psmodule.io/GoogleFonts/Functions/Install-GoogleFont + + .NOTES + More information about the GoogleFonts can be found at: + [GoogleFonts | GitHub](https://github.com/google/fonts) #> [CmdletBinding( DefaultParameterSetName = 'ByName', diff --git a/src/manifest.psd1 b/src/manifest.psd1 deleted file mode 100644 index 4e2476f..0000000 --- a/src/manifest.psd1 +++ /dev/null @@ -1,3 +0,0 @@ -@{ - PowerShellVersion = '5.1' -} From 17134e8dada5adce318cb40efdfbc04935a34d24 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 20 May 2025 22:56:35 +0200 Subject: [PATCH 2/2] Update documentation links for GoogleFonts in Get-GoogleFont and Install-GoogleFont functions --- src/functions/public/Get-GoogleFont.ps1 | 2 +- src/functions/public/Install-GoogleFont.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/public/Get-GoogleFont.ps1 b/src/functions/public/Get-GoogleFont.ps1 index 77210b6..e68e8b7 100644 --- a/src/functions/public/Get-GoogleFont.ps1 +++ b/src/functions/public/Get-GoogleFont.ps1 @@ -26,7 +26,7 @@ .NOTES More information about the GoogleFonts can be found at: - [GoogleFonts | GitHub](https://github.com/google/fonts) + [GoogleFonts](https://fonts.google.com/) | [GitHub](https://github.com/google/fonts) #> [Alias('Get-GoogleFonts')] [OutputType([System.Object[]])] diff --git a/src/functions/public/Install-GoogleFont.ps1 b/src/functions/public/Install-GoogleFont.ps1 index 72d716a..a67e90d 100644 --- a/src/functions/public/Install-GoogleFont.ps1 +++ b/src/functions/public/Install-GoogleFont.ps1 @@ -34,7 +34,7 @@ function Install-GoogleFont { .NOTES More information about the GoogleFonts can be found at: - [GoogleFonts | GitHub](https://github.com/google/fonts) + [GoogleFonts](https://fonts.google.com/) | [GitHub](https://github.com/google/fonts) #> [CmdletBinding( DefaultParameterSetName = 'ByName',