Skip to content

Commit

Permalink
Changed filename format, adding mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvanhunen committed Oct 17, 2017
1 parent 0c90a19 commit 333d308
Show file tree
Hide file tree
Showing 253 changed files with 30 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Documentation/Mapping/groupMatting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Add-PnPApp":"Apps","Add-PnPClientSidePage":"Client-Side Pages","Add-PnPClientSidePageSection":"Client-Side Pages","Add-PnPClientSideText":"Client-Side Pages","Add-PnPClientSideWebPart":"Client-Side Pages","Add-PnPContentType":"Content Types","Add-PnPContentTypeToDocumentSet":"Document Sets","Add-PnPContentTypeToList":"Content Types","Add-PnPCustomAction":"Branding","Add-PnPDataRowsToProvisioningTemplate":"Provisioning","Add-PnPDocumentSet":"Document Sets","Add-PnPEventReceiver":"Event Receivers","Add-PnPField":"Fields","Add-PnPFieldFromXml":"Fields","Add-PnPFieldToContentType":"Content Types","Add-PnPFile":"Files and Folders","Add-PnPFileToProvisioningTemplate":"Provisioning","Add-PnPFolder":"Files and Folders","Add-PnPHtmlPublishingPageLayout":"Publishing","Add-PnPIndexedProperty":"Webs","Add-PnPJavaScriptBlock":"Branding","Add-PnPJavaScriptLink":"Branding","Add-PnPListFoldersToProvisioningTemplate":"Provisioning","Add-PnPListItem":"Lists","Add-PnPMasterPage":"Publishing","Add-PnPNavigationNode":"Branding","Add-PnPPublishingImageRendition":"Publishing","Add-PnPPublishingPage":"Publishing","Add-PnPPublishingPageLayout":"Publishing","Add-PnPSiteCollectionAdmin":"Sites","Add-PnPTaxonomyField":"Fields","Add-PnPUserToGroup":"User and group management","Add-PnPView":"Lists","Add-PnPWebhookSubscription":"SharePoint WebHooks","Add-PnPWebPartToWebPartPage":"Web Parts","Add-PnPWebPartToWikiPage":"Web Parts","Add-PnPWikiPage":"Publishing","Add-PnPWorkflowDefinition":"Workflows","Add-PnPWorkflowSubscription":"Workflows","Apply-PnPProvisioningTemplate":"Provisioning","Set-PnPSitePolicy":"Information Management","Clear-PnPListItemAsRecord":"Records Management","Clear-PnpRecycleBinItem":"SharePoint Recycle Bin","Clear-PnPTenantRecycleBinItem":"Tenant Administration","Connect-PnPOnline":"Base Cmdlets","Connect-PnPMicrosoftGraph":"Microsoft Graph","Convert-PnPProvisioningTemplate":"Provisioning","Convert-PnPFolderToProvisioningTemplate":"Provisioning","Copy-PnPFile":"Files and Folders","Disable-PnPFeature":"Features","Disable-PnPInPlaceRecordsManagementForSite":"Records Management","Disable-PnPResponsiveUI":"Branding","Disconnect-PnPOnline":"Base Cmdlets","Enable-PnPFeature":"Features","Enable-PnPInPlaceRecordsManagementForSite":"Records Management","Enable-PnPResponsiveUI":"Branding","Ensure-PnPFolder":"Files and Folders","Get-PnPProperty":"Base Cmdlets","Execute-PnPQuery":"Base Cmdlets","Export-PnPTaxonomy":"Taxonomy","Export-PnPTermGroupToXml":"Taxonomy","Find-PnPFile":"Files and Folders","Get-PnPApp":"Apps","Get-PnPAppInstance":"Apps","Get-PnPAuditing":"Sites","Get-PnPAuthenticationRealm":"Base Cmdlets","Get-PnPAvailableClientSideComponents":"Client-Side Pages","Get-PnPAzureADManifestKeyCredentials":"Base Cmdlets","Get-PnPClientSidePage":"Client-Side Pages","Get-PnPContentType":"Content Types","Get-PnPContentTypePublishingHubUrl":"Content Types","Get-PnPCustomAction":"Branding","Get-PnPDefaultColumnValues":"Lists","Get-PnPDocumentSetTemplate":"Document Sets","Get-PnPEventReceiver":"Event Receivers","Get-PnPFeature":"Features","Get-PnPField":"Fields","Get-PnPFile":"Files and Folders","Get-PnPFolder":"Files and Folders","Get-PnPFolderItem":"Files and Folders","Get-PnPGroup":"User and group management","Get-PnPGroupPermissions":"User and group management","Get-PnPHealthScore":"Base Cmdlets","Get-PnPHomePage":"Branding","Get-PnPIndexedPropertyKeys":"Webs","Get-PnPJavaScriptLink":"Branding","Get-PnPList":"Lists","Get-PnPListItem":"Lists","Get-PnPMasterPage":"Branding","Get-PnPAccessToken":"Tenant Administration","Get-PnPAppAuthAccessToken":"Base Cmdlets","Get-PnPSiteCollectionTermStore":"Taxonomy","Get-PnPPropertyBag":"Webs","Get-PnPProvisioningTemplate":"Provisioning","Get-PnPProvisioningTemplateFromGallery":"Lists","Get-PnPPublishingImageRendition":"Publishing","Get-PnPRecycleBinItem":"SharePoint Recycle Bin","Get-PnPRequestAccessEmails":"Webs","Get-PnPSearchConfiguration":"Search","Get-PnPSite":"Sites","Get-PnPSiteClosure":"Information Management","Get-PnPSiteCollectionAdmin":"Sites","Get-PnPSitePolicy":"Information Management","Get-PnPSiteSearchQueryResults":"Search","Get-PnPContext":"Base Cmdlets","Get-PnPStoredCredential":"Base Cmdlets","Get-PnPSubWebs":"Webs","Get-PnPTaxonomyItem":"Taxonomy","Get-PnPTaxonomySession":"Taxonomy","Get-PnPTenantRecycleBinItem":"SharePoint Recycle Bin","Get-PnPTenantSite":"Tenant Administration","Get-PnPTerm":"Taxonomy","Get-PnPTermGroup":"Taxonomy","Get-PnPTermSet":"Taxonomy","Get-PnPTheme":"Branding","Get-PnPTimeZoneId":"Tenant Administration","Get-PnPUnifiedGroup":"Microsoft Graph","Get-PnPUser":"User and group management","Get-PnPUserProfileProperty":"User Profiles","Get-PnPView":"Lists","Get-PnPWeb":"Webs","Get-PnPWebhookSubscriptions":"SharePoint WebHooks","Get-PnPWebPart":"Web Parts","Get-PnPWebPartProperty":"Web Parts","Get-PnPWebPartXml":"Web Parts","Get-PnPWebTemplates":"Tenant Administration","Get-PnPWikiPageContent":"Publishing","Get-PnPWorkflowDefinition":"Workflows","Get-PnPWorkflowSubscription":"Workflows","Import-PnPAppPackage":"Apps","Import-PnPTaxonomy":"Taxonomy","Import-PnPTermGroupFromXml":"Taxonomy","Import-PnPTermSet":"Taxonomy","Install-PnPApp":"Apps","Install-PnPSolution":"Sites","Invoke-PnPWebAction":"Webs","Load-PnPProvisioningTemplate":"Provisioning","Move-PnPFile":"Files and Folders","Move-PnPFolder":"Files and Folders","Move-PnPListItemToRecycleBin":"Lists","Move-PnpRecycleBinItem":"SharePoint Recycle Bin","New-PnPExtensbilityHandlerObject":"Features","New-PnPGroup":"User and group management","New-PnPList":"Lists","New-PnPPersonalSite":"User Profiles","New-PnPUnifiedGroup":"Microsoft Graph","New-PnPProvisioningTemplate":"Provisioning","New-PnPProvisioningTemplateFromFolder":"Provisioning","New-PnPSite":"Tenant Administration","New-PnPTenantSite":"Tenant Administration","New-PnPTerm":"Taxonomy","New-PnPTermGroup":"Taxonomy","New-PnPTermSet":"Taxonomy","New-PnPUser":"User and group management","New-PnPWeb":"Webs","Publish-PnPApp":"Apps","Remove-PnPApp":"Apps","Remove-PnPClientSidePage":"Client-Side Pages","Remove-PnPContentType":"Content Types","Remove-PnPContentTypeFromDocumentSet":"Document Sets","Remove-PnPContentTypeFromList":"Content Types","Remove-PnPCustomAction":"Branding","Remove-PnPIndexedProperty":"Webs","Remove-PnPEventReceiver":"Event Receivers","Remove-PnPField":"Fields","Remove-PnPFieldFromContentType":"Content Types","Remove-PnPFile":"Files and Folders","Remove-PnPFileFromProvisioningTemplate":"Provisioning","Remove-PnPFolder":"Files and Folders","Remove-PnPGroup":"User and group management","Remove-PnPJavaScriptLink":"Branding","Remove-PnPList":"Lists","Remove-PnPListItem":"Lists","Remove-PnPNavigationNode":"Branding","Remove-PnPPropertyBagValue":"Webs","Remove-PnPPublishingImageRendition":"Publishing","Remove-PnPTenantSite":"Tenant Administration","Remove-PnPSiteCollectionAdmin":"Sites","Remove-PnPTaxonomyItem":"Taxonomy","Remove-PnPTermGroup":"Taxonomy","Remove-PnPUnifiedGroup":"Microsoft Graph","Remove-PnPUser":"User and group management","Remove-PnPUserFromGroup":"User and group management","Remove-PnPView":"Lists","Remove-PnPWeb":"Webs","Remove-PnPWebhookSubscription":"SharePoint WebHooks","Remove-PnPWebPart":"Web Parts","Remove-PnPWikiPage":"Publishing","Remove-PnPWorkflowDefinition":"Workflows","Remove-PnPWorkflowSubscription":"Workflows","Rename-PnPFile":"Files and Folders","Rename-PnPFolder":"Files and Folders","Request-PnPReIndexList":"Lists","Request-PnPReIndexWeb":"Webs","Restore-PnpRecycleBinItem":"SharePoint Recycle Bin","Restore-PnPTenantRecycleBinItem":"Tenant Administration","Resume-PnPWorkflowInstance":"Workflows","Save-PnPProvisioningTemplate":"Provisioning","Send-PnPMail":"Utilities","Set-PnPAppSideLoading":"Sites","Set-PnPAuditing":"Sites","Set-PnPAvailablePageLayouts":"Publishing","Set-PnPClientSidePage":"Client-Side Pages","Set-PnPContext":"Base Cmdlets","Set-PnPDefaultColumnValues":"Lists","Set-PnPDefaultContentTypeToList":"Content Types","Set-PnPDefaultPageLayout":"Publishing","Set-PnPField":"Fields","Set-PnPDocumentSetField":"Document Sets","Set-PnPFileCheckedIn":"Files and Folders","Set-PnPFileCheckedOut":"Files and Folders","Set-PnPGroup":"User and group management","Set-PnPGroupPermissions":"User and group management","Set-PnPHomePage":"Branding","Set-PnPIndexedProperties":"Webs","Set-PnPInPlaceRecordsManagement":"Records Management","Set-PnPList":"Lists","Set-PnPListItem":"Lists","Set-PnPListItemAsRecord":"Records Management","Set-PnPListItemPermission":"Lists","Set-PnPListPermission":"Lists","Set-PnPMasterPage":"Branding","Set-PnPMinimalDownloadStrategy":"Branding","Set-PnPPropertyBagValue":"Webs","Set-PnPProvisioningTemplateMetadata":"Provisioning","Set-PnPRequestAccessEmails":"Webs","Set-PnPSearchConfiguration":"Search","Set-PnPSiteClosure":"Information Management","Set-PnPTaxonomyFieldValue":"Taxonomy","Set-PnPTenantSite":"Tenant Administration","Set-PnPTheme":"Branding","Set-PnPTraceLog":"Base Cmdlets","Set-PnPUnifiedGroup":"Microsoft Graph","Set-PnPUserProfileProperty":"User Profiles","Set-PnPView":"Fields","Set-PnPWeb":"Webs","Set-PnPWebhookSubscription":"SharePoint WebHooks","Set-PnPWebPartProperty":"Web Parts","Set-PnPWebPermission":"Webs","Set-PnPWikiPageContent":"Publishing","Copy-PnPItemProxy":"Files and Folders","Move-PnPItemProxy":"Files and Folders","Stop-PnPWorkflowInstance":"Workflows","Submit-PnPSearchQuery":"Search","Test-PnPListItemIsRecord":"Records Management","Uninstall-PnPApp":"Apps","Uninstall-PnPAppInstance":"Apps","Uninstall-PnPSolution":"Sites","Unpublish-PnPApp":"Apps"}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 25 additions & 3 deletions ModuleFilesGenerator/MarkDownGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
Expand All @@ -22,6 +23,7 @@ internal MarkDownGenerator(List<Model.CmdletInfo> cmdlets, string solutionDir)
internal void Generate()
{
GenerateCmdletDocs();
GenerateMappingJson();
GenerateTOC();
GenerateMSDNTOC();

Expand All @@ -33,7 +35,7 @@ internal void Generate()
{
if (mdFile.Name.ToLowerInvariant() != $"readme.{extension}")
{
var index = _cmdlets.FindIndex(t => $"{t.Verb}{t.Noun}.{extension}" == mdFile.Name);
var index = _cmdlets.FindIndex(t => $"{t.Verb}-{t.Noun}.{extension}" == mdFile.Name);
if (index == -1)
{
mdFile.Delete();
Expand All @@ -53,7 +55,7 @@ private void GenerateCmdletDocs()

if (!string.IsNullOrEmpty(cmdletInfo.Verb) && !string.IsNullOrEmpty(cmdletInfo.Noun))
{
string mdFilePath = $"{_solutionDir}\\Documentation\\{cmdletInfo.Verb}{cmdletInfo.Noun}.{extension}";
string mdFilePath = $"{_solutionDir}\\Documentation\\{cmdletInfo.Verb}-{cmdletInfo.Noun}.{extension}";

if (System.IO.File.Exists(mdFilePath))
{
Expand Down Expand Up @@ -255,6 +257,26 @@ private void GenerateCmdletDocs()
}
}

private void GenerateMappingJson()
{
var groups = new Dictionary<string, string>();
foreach (var cmdletInfo in _cmdlets)
{
groups.Add($"{cmdletInfo.FullCommand}", cmdletInfo.Category);
}

var json = JsonConvert.SerializeObject(groups);

var mappingFolder = $"{_solutionDir}\\Documentation\\Mapping";
if (!System.IO.Directory.Exists(mappingFolder))
{
System.IO.Directory.CreateDirectory(mappingFolder);
}

var mappingPath = $"{_solutionDir}\\Documentation\\Mapping\\groupMatting.json";
System.IO.File.WriteAllText(mappingPath, json);
}

private void GenerateTOC()
{
var originalMd = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down
1 change: 1 addition & 0 deletions ModuleFilesGenerator/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net45" />
<package id="System.Management.Automation.dll" version="10.0.10586.0" targetFramework="net45" />
</packages>

0 comments on commit 333d308

Please sign in to comment.