Add docs for font package cmdlets#987
Conversation
|
Learn Build status updates of commit 7deeb2c: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
7deeb2c to
2daf794
Compare
PoliCheck Scan ReportThe following reports lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a comment that you post to the PR. The feedback helps reduce false positive instances in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 2daf794:
|
| File | Status | Preview URL | Details |
|---|---|---|---|
| sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOFontPackage.md | View (sharepoint-ps) | Details | |
| sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOFontPackage.md | View (sharepoint-ps) | Details | |
| sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md | View (sharepoint-ps) | Details | |
| sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOFontPackage.md | View (sharepoint-ps) | Details | |
| sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOFontPackage.md | View (sharepoint-ps) | Details |
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOFontPackage.md
- Line 0, Column 0: [Warning: author-not-found - See documentation]
Invalid value for author: 'luchaoqiu' is not a valid GitHub ID.
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOFontPackage.md
- Line 0, Column 0: [Warning: author-not-found - See documentation]
Invalid value for author: 'luchaoqiu' is not a valid GitHub ID.
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md
- Line 0, Column 0: [Warning: PSMD2Yaml_InconsistentCmdletsInModule]
Inconsistent cmdlets found in module: Microsoft.Online.SharePoint.PowerShell. 4 cmdlets in the module folder but not listed in the module file: Add-SPOFontPackage, Get-SPOFontPackage, Remove-SPOFontPackage, Set-SPOFontPackage.
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOFontPackage.md
- Line 0, Column 0: [Warning: author-not-found - See documentation]
Invalid value for author: 'luchaoqiu' is not a valid GitHub ID.
sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOFontPackage.md
- Line 0, Column 0: [Warning: author-not-found - See documentation]
Invalid value for author: 'luchaoqiu' is not a valid GitHub ID.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Add-SPOFontPackage` cmdlet creates a new brand font package for the SharePoint tenant. Each font package must have a unique name. The font file must be added to the SharePoint Brand Center before creating a font package. For more information, see [Brand Fonts](https://learn.microsoft.com/sharepoint/brand-fonts). |
There was a problem hiding this comment.
(applies to here and other cmdlets)
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Add-SPOFontPackage` cmdlet creates a new brand font package for the SharePoint tenant. Each font package must have a unique name. The font file must be added to the SharePoint Brand Center before creating a font package. For more information, see [Brand Fonts](https://learn.microsoft.com/sharepoint/brand-fonts). |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Add-SPOFontPackage` cmdlet creates a new brand font package for the SharePoint tenant. Each font package must have a unique name. The font file must be added to the SharePoint Brand Center before creating a font package. For more information, see [Brand Fonts](https://learn.microsoft.com/sharepoint/brand-fonts). |
There was a problem hiding this comment.
we prefer to use relative paths, so in this case it's /sharepoint/brand-fonts #Closed
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies whether the font package should be hidden from users. When set to $true, the font package will not be visible in the **Change the look** options, but can still be applied using the `Set-SPOFontPackage` cmdlet. |
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Returns one or all custom font packages from the SharePoint tenant. |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Get-SPOFontPackage` cmdlet retrieves one or more custom font packages from the SharePoint tenant. Custom font packages include those created through the SharePoint Brand Center app or by using the `Add-SPOFontPackage` cmdlet. You can retrieve a specific font package by providing its identity, or retrieve all font packages if no identity is specified. |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Get-SPOFontPackage` cmdlet retrieves one or more custom font packages from the SharePoint tenant. Custom font packages include those created through the SharePoint Brand Center app or by using the `Add-SPOFontPackage` cmdlet. You can retrieve a specific font package by providing its identity, or retrieve all font packages if no identity is specified. |
| | Title | string | The display name of the font package. | | ||
| | IsHidden | bool | Whether the font package is hidden from the SharePointUI. | | ||
| | IsValid | bool | Whether the font package is valid and can be applied. | | ||
| | PackageJson | string | The JSON specifying the settings of the font package. | |
There was a problem hiding this comment.
we don't document these output properties since they usually change, and we don't want to keep updating this. The description you have is sufficient, then users can follow the examples #Closed
| ### EXAMPLE 3 | ||
|
|
||
| ```powershell | ||
| Get-SPOFontPackage | Where-Object {$_.IsHidden -eq $false} |
There was a problem hiding this comment.
for future work: consider adding a param -IsHidden to the cmdlet itself, this way the filtering happens server-side instead of client-side. Otherwise if a tenant has too many font packages this might not be as fast, since it returns everything to the client first.
Get-SPOFontPackage -IsHidden $true
Get-SPOFontPackage -IsHidden $false
|
|
||
| ## SYNOPSIS | ||
|
|
||
| Removes a brand font package from the SharePoint tenant. |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Remove-SPOFontPackage` cmdlet removes a custom font package from the SharePoint tenant. After removal, the font package will no longer be available for use on SharePoint sites or Viva Connections. |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Remove-SPOFontPackage` cmdlet removes a custom font package from the SharePoint tenant. After removal, the font package will no longer be available for use on SharePoint sites or Viva Connections. |
|
|
||
| ## DESCRIPTION | ||
|
|
||
| The `Set-SPOFontPackage` cmdlet applies a brand font package to a specified SharePoint site or Viva Connections. Use this cmdlet to customize the typography and branding of SharePoint sites by applying predefined font packages. |
| $fontPackage = Get-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012 | ||
| foreach ($site in $sites) { | ||
| Set-SPOFontPackage -Identity $fontPackage -WebUrl $site | ||
| } |
There was a problem hiding this comment.
future improvement: consider updating WebUrl param to be a string array, this way you can directly pass all the urls to it, instead of iterating one by one :)
|
Also update the TOC file Microsoft.Online.SharePoint.PowerShell.md |
| applicable: SharePoint Online | ||
| title: Add-SPOFontPackage | ||
| schema: 2.0.0 | ||
| author: luchaoqiu |
PoliCheck Scan ReportThe following reports lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a comment that you post to the PR. The feedback helps reduce false positive instances in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 71dd2f1: 💡 Validation status: suggestions
.openpublishing.redirection.ms-ol-sp-ps.json
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
|
|
||
| ### [Get-SPOTheme](Get-SPOTheme.md) | ||
| {{Placeholder}} | ||
| Returns one or all themes settings from the tenant. |
|
Learn Build status updates of commit 416118e: 💡 Validation status: suggestions
.openpublishing.redirection.ms-ol-sp-ps.json
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
PoliCheck Scan ReportThe following reports lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a comment that you post to the PR. The feedback helps reduce false positive instances in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |

No description provided.