Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .github/mkdocs.yml

This file was deleted.

121 changes: 121 additions & 0 deletions .github/zensical.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Zensical configuration
# https://zensical.org/docs/setup/basics/
# Process-PSModule v8 copies this file into outputs/site and stages generated
# documentation under outputs/site/docs.

[project]
site_name = "Fonts"
site_url = "https://psmodule.io/Fonts/"
docs_dir = "docs"
repo_name = "PSModule/Fonts"
repo_url = "https://github.com/PSModule/Fonts"
edit_uri = "edit/main/"
copyright = "Copyright © 2023 - 2026 PSModule"
extra_javascript = [
"https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js",
# The v8 site assembly does not copy repository override directories.
"https://cdn.jsdelivr.net/gh/PSModule/Process-PSModule@59e056cab018777a8f158f88fcabdb57125494ef/docs/overrides/assets/javascripts/tablesort.js",
]
extra_css = [
# Pin the current Process-PSModule navigation behavior used as the baseline.
"https://cdn.jsdelivr.net/gh/PSModule/Process-PSModule@59e056cab018777a8f158f88fcabdb57125494ef/docs/overrides/assets/stylesheets/navigation.css",
]
[project.theme]
language = "en"
font.text = "Mona Sans"
font.code = "Source Code Pro"
logo = "https://raw.githubusercontent.com/PSModule/Fonts/main/icon/icon.png"
favicon = "https://raw.githubusercontent.com/PSModule/Fonts/main/icon/icon.png"
features = [
"announce.dismiss",
"content.code.annotate",
"content.code.copy",
"content.tooltips",
"navigation.expand",
"navigation.footer",
"navigation.indexes",
"navigation.instant",
"navigation.instant.prefetch",
"navigation.instant.preview",
"navigation.instant.progress",
"navigation.tabs",
"navigation.top",
"navigation.tracking",
"search.highlight",
"search.share",
"search.suggest",
"toc.follow",
]

[project.theme.icon]
repo = "material/github"
link = "material/link-variant"

[[project.theme.palette]]
media = "(prefers-color-scheme)"
toggle.icon = "material/link"
toggle.name = "Switch to dark mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
primary = "black"
accent = "light blue"
toggle.icon = "material/toggle-switch-off-outline"
toggle.name = "Switch to light mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
primary = "black"
accent = "light blue"
toggle.icon = "material/toggle-switch"
toggle.name = "Switch to system preference"

[project.plugins.meta]

[project.plugins.search]

[project.markdown_extensions.toc]
permalink = "#"

[project.markdown_extensions.attr_list]

[project.markdown_extensions.abbr]

[project.markdown_extensions.admonition]

[project.markdown_extensions.def_list]

[project.markdown_extensions.footnotes]

[project.markdown_extensions.md_in_html]

[project.markdown_extensions.tables]

[project.markdown_extensions.pymdownx.details]

[project.markdown_extensions.pymdownx.superfences]
custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" },
]

[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true

[project.markdown_extensions.pymdownx.snippets]

[[project.extra.social]]
icon = "fontawesome/brands/discord"
link = "https://discord.gg/jedJWCPAhD"
name = "PSModule on Discord"

[[project.extra.social]]
icon = "material/powershell"
link = "https://www.powershellgallery.com/packages/Fonts"
name = "Fonts on the PowerShell Gallery"

[[project.extra.social]]
icon = "fontawesome/brands/github"
link = "https://github.com/PSModule/Fonts"
name = "Fonts on GitHub"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ Please see the issues tab on this project and submit a new issue that matches yo

### For Developers

If you do code, we'd love to have your contributions. Please read the [Contribution guidelines](CONTRIBUTING.md) for more information.
You can either help by picking up an existing issue or submit a new one if you have an idea for a new feature or improvement.
If you do code, we'd love to have your contributions. You can help by picking up an
[existing issue](https://github.com/PSModule/Fonts/issues) or submitting a new one if you have an idea for a feature or improvement.
2 changes: 1 addition & 1 deletion src/functions/public/Get-Font.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function Get-Font {
$folderExists = Test-Path -Path $fontFolderPath
Write-Verbose "[$functionName] - [$scopeName] - Folder exists: [$folderExists]"
if (-not $folderExists) {
return $fonts
continue
}
$installedFonts = Get-ChildItem -Path $fontFolderPath -File
$installedFontsCount = $($installedFonts.Count)
Expand Down
4 changes: 2 additions & 2 deletions src/functions/public/Install-Font.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ Please run the command again with elevated rights (Run as Administrator) or prov

do {
try {
$null = $fontFile.CopyTo($fontDestinationFilePath)
$null = $fontFile.CopyTo($fontDestinationFilePath, $Force.IsPresent)
$fileCopied = $true
} catch {
$retryCount++
if (-not $fileRemoved -and $retryCount -eq $maxRetries) {
if (-not $fileCopied -and $retryCount -eq $maxRetries) {
Write-Error $_
Write-Error "Failed [$retryCount/$maxRetries] - Stopping"
break
Expand Down
2 changes: 1 addition & 1 deletion src/functions/public/Uninstall-Font.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Uninstall-Font {

if ($Scope -contains 'AllUsers' -and -not (IsAdmin)) {
$errorMessage = @"
Administrator rights are required to uninstall fonts in [$($script:FontFolderPath['AllUsers'])].
Administrator rights are required to uninstall fonts in [$($script:FontFolderPathMap[$script:OS]['AllUsers'])].
Please run the command again with elevated rights (Run as Administrator) or provide '-Scope CurrentUser' to your command.
"@
throw $errorMessage
Expand Down
Loading
Loading