From 6d6d716dffac39f153b7623c39ae0f2bc2bf8fe0 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Sun, 1 Oct 2023 22:34:19 +0200 Subject: [PATCH 1/3] Fixing documentation build warnings --- documentation/Get-PnPAvailableSensitivityLabel.md | 2 +- documentation/Get-PnPAvailableSiteClassification.md | 2 +- .../Get-PnPAzureADServicePrincipalAvailableAppRole.md | 2 +- documentation/Get-PnPFolderItem.md | 2 +- documentation/Grant-PnPAzureADAppSitePermission.md | 4 ++-- documentation/Set-PnPAzureADAppSitePermission.md | 4 ++-- documentation/Set-PnPList.md | 4 ++-- documentation/Set-PnPListPermission.md | 2 +- documentation/Set-PnPSiteClassification.md | 2 +- documentation/Set-PnPSiteSensitivityLabel.md | 4 ++-- pages/cmdlets/alias.md | 2 +- powershell | 1 + 12 files changed, 16 insertions(+), 15 deletions(-) create mode 160000 powershell diff --git a/documentation/Get-PnPAvailableSensitivityLabel.md b/documentation/Get-PnPAvailableSensitivityLabel.md index 370e6788d..7bdf01ee3 100644 --- a/documentation/Get-PnPAvailableSensitivityLabel.md +++ b/documentation/Get-PnPAvailableSensitivityLabel.md @@ -21,7 +21,7 @@ Get-PnPAvailableSensitivityLabel [-Identity ] [-User ## DESCRIPTION This cmdlet allows retrieval of the available Microsoft Purview sensitivity labels in the currently connected tenant. You can retrieve all the labels, a specific label or all the labels available to a specific user. When connected with a delegate token, it will return the Microsoft Purview sensitivity labels for the user you logged on with. When connecting with an application token, it will return all available Microsoft Purview sensitivity labels on the tenant. -For retrieval of the available classic Site Classification, use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.html) instead. +For retrieval of the available classic Site Classification, use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.MD) instead. ## EXAMPLES diff --git a/documentation/Get-PnPAvailableSiteClassification.md b/documentation/Get-PnPAvailableSiteClassification.md index 07db355b5..06d92426a 100644 --- a/documentation/Get-PnPAvailableSiteClassification.md +++ b/documentation/Get-PnPAvailableSiteClassification.md @@ -24,7 +24,7 @@ Get-PnPAvailableSiteClassification [-Connection ] ``` ## DESCRIPTION -This cmdlet allows for retrieving the configuration of the classic site classifications configured within the tenant. For the new Microsoft Purview sensitivity labels, use [Get-PnPAvailableSensitivityLabel](Get-PnPAvailableSensitivityLabel.html) instead. +This cmdlet allows for retrieving the configuration of the classic site classifications configured within the tenant. For the new Microsoft Purview sensitivity labels, use [Get-PnPAvailableSensitivityLabel](Get-PnPAvailableSensitivityLabel.md) instead. ## EXAMPLES diff --git a/documentation/Get-PnPAzureADServicePrincipalAvailableAppRole.md b/documentation/Get-PnPAzureADServicePrincipalAvailableAppRole.md index 4ffa2465a..7e032845e 100644 --- a/documentation/Get-PnPAzureADServicePrincipalAvailableAppRole.md +++ b/documentation/Get-PnPAzureADServicePrincipalAvailableAppRole.md @@ -25,7 +25,7 @@ Get-PnPAzureADServicePrincipalAvailableAppRole -Principal ] [-ItemType ] [-ItemName < This cmdlet allows listing of all the content in a folder. It can be used to list all files and folders in a folder and optionally all its subfolders. -Use [Get-PnPFolderFile](Get-PnPFolderFile.html) to retrieve only files and [Get-PnPFolderFolder](Get-PnPFolderFolder.html) to retrieve only folders allowing additional properties of the returned items to be requested. +Use [Get-PnPFolderFile](Get-PnPFolderFile.md) to retrieve only files and [Get-PnPFolderFolder](Get-PnPFolderFolder.md) to retrieve only folders allowing additional properties of the returned items to be requested. ## EXAMPLES diff --git a/documentation/Grant-PnPAzureADAppSitePermission.md b/documentation/Grant-PnPAzureADAppSitePermission.md index 8ee4d1b11..b12654fc3 100644 --- a/documentation/Grant-PnPAzureADAppSitePermission.md +++ b/documentation/Grant-PnPAzureADAppSitePermission.md @@ -25,7 +25,7 @@ Grant-PnPAzureADAppSitePermission -AppId -DisplayName -Permissio ## DESCRIPTION -This cmdlet adds permissions for a given Azure Active Directory application registration in a site collection. It is used in conjunction with the Azure Active Directory SharePoint application permission Sites.Selected. Notice that this cmdlet allows for fewer permissions compared to updating rights through [Set-PnPAzureADAppSitePermission](Set-PnPAzureADAppSitePermission.html). If you wish to i.e. assign FullControl permissions, you need to add read or write permissions through this cmdlet first and then update it to FullControl. +This cmdlet adds permissions for a given Azure Active Directory application registration in a site collection. It is used in conjunction with the Azure Active Directory SharePoint application permission Sites.Selected. Notice that this cmdlet allows for fewer permissions compared to updating rights through [Set-PnPAzureADAppSitePermission](Set-PnPAzureADAppSitePermission.md). If you wish to i.e. assign FullControl permissions, you need to add read or write permissions through this cmdlet first and then update it to FullControl. ## EXAMPLES @@ -88,7 +88,7 @@ Accept wildcard characters: False ``` ### -Permissions -Specifies the permissions to set for the Azure Active Directory application registration which can either be Read or Write. Use [Set-PnPAzureADAppSitePermission](Set-PnPAzureADAppSitePermission.html) after initially adding these permissions to update it to Manage or FullControl permissions. +Specifies the permissions to set for the Azure Active Directory application registration which can either be Read or Write. Use [Set-PnPAzureADAppSitePermission](Set-PnPAzureADAppSitePermission.md) after initially adding these permissions to update it to Manage or FullControl permissions. ```yaml Type: String diff --git a/documentation/Set-PnPAzureADAppSitePermission.md b/documentation/Set-PnPAzureADAppSitePermission.md index 69f0d3a56..6370b54c8 100644 --- a/documentation/Set-PnPAzureADAppSitePermission.md +++ b/documentation/Set-PnPAzureADAppSitePermission.md @@ -25,7 +25,7 @@ Set-PnPAzureADAppSitePermission -PermissionId -Permissions -User [-AddRole ``` ## DESCRIPTION -Allows changing permissions on a SharePoint list. In case you would like to break the permission inheritance on a list from its parent, you can use [Set-PnPList -BreakRoleInheritance](Set-PnPList.html#-breakroleinheritance). +Allows changing permissions on a SharePoint list. In case you would like to break the permission inheritance on a list from its parent, you can use [Set-PnPList -BreakRoleInheritance](Set-PnPList.md#-breakroleinheritance). ## EXAMPLES diff --git a/documentation/Set-PnPSiteClassification.md b/documentation/Set-PnPSiteClassification.md index 9cc51ae71..361fd809a 100644 --- a/documentation/Set-PnPSiteClassification.md +++ b/documentation/Set-PnPSiteClassification.md @@ -24,7 +24,7 @@ Set-PnPSiteClassification -Identity [-Connection ] ``` ## DESCRIPTION -This cmdlet allows for setting a classic site classification on the currently connected to site. If the site has a Microsoft 365 Group behind it, the classification will be placed on the Microsoft 365 Group and will require either Directory.Read.All or Directory.ReadWrite.All application permissions on Microsoft Graph. If it does not have a Microsoft 365 Group behind it, it will set the site classification on the SharePoint Online site and will not require Microsoft Graph permissions. Use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.html) to get an overview of the available site classifications on the tenant. For the new Microsoft Purview sensitivity labels, use [Set-PnPSiteSensitivityLabel](Set-PnPSiteSensitivityLabel.html) instead. +This cmdlet allows for setting a classic site classification on the currently connected to site. If the site has a Microsoft 365 Group behind it, the classification will be placed on the Microsoft 365 Group and will require either Directory.Read.All or Directory.ReadWrite.All application permissions on Microsoft Graph. If it does not have a Microsoft 365 Group behind it, it will set the site classification on the SharePoint Online site and will not require Microsoft Graph permissions. Use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.md) to get an overview of the available site classifications on the tenant. For the new Microsoft Purview sensitivity labels, use [Set-PnPSiteSensitivityLabel](Set-PnPSiteSensitivityLabel.md) instead. ## EXAMPLES diff --git a/documentation/Set-PnPSiteSensitivityLabel.md b/documentation/Set-PnPSiteSensitivityLabel.md index 129de1cb0..04caae5bb 100644 --- a/documentation/Set-PnPSiteSensitivityLabel.md +++ b/documentation/Set-PnPSiteSensitivityLabel.md @@ -28,9 +28,9 @@ This cmdlet allows for setting a Microsoft Purview sensitivity label on the curr It may take up to a few minutes for a change to the sensitivity label to become visible in SharePoint Online and Azure Active Directory. -Use [Get-PnPAvailableSensitivityLabel](Get-PnPAvailableSensitivityLabel.html) to get an overview of the available Microsoft Purview sensitivity labels on the tenant. +Use [Get-PnPAvailableSensitivityLabel](Get-PnPAvailableSensitivityLabel.md) to get an overview of the available Microsoft Purview sensitivity labels on the tenant. -For the classic classification labels, use [Set-PnPSiteClassification](Set-PnPSiteClassification.html) instead. +For the classic classification labels, use [Set-PnPSiteClassification](Set-PnPSiteClassification.md) instead. ## EXAMPLES diff --git a/pages/cmdlets/alias.md b/pages/cmdlets/alias.md index 82af0bf9b..75b3389b3 100644 --- a/pages/cmdlets/alias.md +++ b/pages/cmdlets/alias.md @@ -14,4 +14,4 @@ This is an alias for [%%referencedcmdletname%%](./%%referencedcmdletname%%.md). ## RELATED LINKS -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file diff --git a/powershell b/powershell new file mode 160000 index 000000000..a7a08dd3c --- /dev/null +++ b/powershell @@ -0,0 +1 @@ +Subproject commit a7a08dd3c20b05c473db109251fbc8b5380a164d From e621c7600ecc147afe17db858ffafec8c018f52e Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Sun, 1 Oct 2023 22:35:13 +0200 Subject: [PATCH 2/3] Fixing documentation build warnings --- pages/Build-Site.ps1 | 4 ++-- pages/cmdlets/alias.md | 17 ----------------- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 pages/cmdlets/alias.md diff --git a/pages/Build-Site.ps1 b/pages/Build-Site.ps1 index 9264413dd..b6eecb21d 100644 --- a/pages/Build-Site.ps1 +++ b/pages/Build-Site.ps1 @@ -82,7 +82,7 @@ Try { $aliasCmdletsCount = $aliasCmdlets.Length Write-Host "- Retrieving alias template page" - $aliasTemplatePageContent = Get-Content -Path "./dev/pages/cmdlets/alias.md" -Raw + $aliasTemplatePageContent = Get-Content -Path "./dev/pages/cmdlets/alias.template" -Raw ForEach($aliasCmdlet in $aliasCmdlets) { @@ -115,7 +115,7 @@ foreach ($nightlycmdlet in $nightlycmdlets) { # Generate cmdlet toc Write-Host "Retrieving all cmdlet pages" -$cmdletPages = Get-ChildItem -Path "./dev/pages/cmdlets/*.md" -Exclude "index.md","alias.md" +$cmdletPages = Get-ChildItem -Path "./dev/pages/cmdlets/*.md" -Exclude "index.md","alias.template" $toc = "" foreach ($cmdletPage in $cmdletPages) { $toc = $toc + "- name: $($cmdletPage.BaseName)`n href: $($cmdletPage.Name)`n" diff --git a/pages/cmdlets/alias.md b/pages/cmdlets/alias.md deleted file mode 100644 index 75b3389b3..000000000 --- a/pages/cmdlets/alias.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -Module Name: PnP.PowerShell -title: %%cmdletname%% -schema: 2.0.0 -applicable: SharePoint Online -external help file: PnP.PowerShell.dll-Help.xml -online version: https://pnp.github.io/powershell/cmdlets/%%cmdletname%%.html ---- - -# %%cmdletname%% - -## SYNOPSIS -This is an alias for [%%referencedcmdletname%%](./%%referencedcmdletname%%.md). Please update your scripts to use this cmdlet instead as it may be removed in a future update. - -## RELATED LINKS - -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file From 2ab95ae821a121fe4b785d1ab6b1b8f81f35c154 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Sun, 1 Oct 2023 22:38:06 +0200 Subject: [PATCH 3/3] Fixing documentation build warning --- documentation/Get-PnPAvailableSensitivityLabel.md | 2 +- powershell | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/Get-PnPAvailableSensitivityLabel.md b/documentation/Get-PnPAvailableSensitivityLabel.md index 7bdf01ee3..6ff355b51 100644 --- a/documentation/Get-PnPAvailableSensitivityLabel.md +++ b/documentation/Get-PnPAvailableSensitivityLabel.md @@ -21,7 +21,7 @@ Get-PnPAvailableSensitivityLabel [-Identity ] [-User ## DESCRIPTION This cmdlet allows retrieval of the available Microsoft Purview sensitivity labels in the currently connected tenant. You can retrieve all the labels, a specific label or all the labels available to a specific user. When connected with a delegate token, it will return the Microsoft Purview sensitivity labels for the user you logged on with. When connecting with an application token, it will return all available Microsoft Purview sensitivity labels on the tenant. -For retrieval of the available classic Site Classification, use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.MD) instead. +For retrieval of the available classic Site Classification, use [Get-PnPAvailableSiteClassification](Get-PnPAvailableSiteClassification.md) instead. ## EXAMPLES diff --git a/powershell b/powershell index a7a08dd3c..f14e380fa 160000 --- a/powershell +++ b/powershell @@ -1 +1 @@ -Subproject commit a7a08dd3c20b05c473db109251fbc8b5380a164d +Subproject commit f14e380faecbacfd128c354a3c84a9f7e3d6746f