Skip to content

Commit

Permalink
Adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKur committed Feb 18, 2024
1 parent 7d1430f commit 61ee85a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions PSModule/test.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
import-module "$scriptPath\M365Documentation\M365Documentation.psm1" -force
Connect-M365Doc
$doc = Get-M365Doc -Components Intune -ExcludeSections @("MobileAppDetailed")
$doc = Get-M365Doc -Components Intune -ExcludeSections @("MobileAppDetailed","MobileApp")

$doc | Write-M365DocWord -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.docx"
$doc | Write-M365DocJson -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.json"
$doc | Write-M365DocMd -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.md"
#$doc | Write-M365DocWord -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.docx"
#$doc | Write-M365DocJson -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.json"
#$doc | Write-M365DocMd -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.md"

$docnew = $doc | Optimize-M365Doc -UseTranslationFiles -UseCamelCase -ExcludeProperties @("id","@odata.type")
$docnew | Write-M365DocWord -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc-Translated.docx"
$docnew | Write-M365DocMd -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc-Translated.md"
#$docnew | Write-M365DocMd -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc-Translated.md"

#$bkp = Get-M365Doc -BackupFile "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.json"
#$bkp | Write-M365DocWord -FullDocumentationPath "c:\temp\$($bkp.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-DocBkp.docx"
Expand Down
4 changes: 4 additions & 0 deletions PSModule/test2.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
import-module "$scriptPath\M365Documentation\M365Documentation.psm1" -force

New-M365DocAppRegistration -displayName "WPNinjasTest2"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The required modules are fully available in the PowerShell Gallery and therefore
```powershell
Install-Module MSAL.PS
Install-Module PSWriteWord
Install-Module PSWriteOffice
Install-Module M365Documentation
```
Expand Down Expand Up @@ -124,7 +124,7 @@ For any issues or feedback related to this module, please register for GitHub, a

@Microsoftgraph for the PowerShell Examples: <https://github.com/microsoftgraph/powershell-intune-samples>

@guidooliveira / @PrzemyslawKlys for the PSWriteWord Module, which enables the creation of the Word file. <https://github.com/EvotecIT/PSWriteWord>
@PrzemyslawKlys for the PSWriteWord Module, which enables the creation of the Word file. <https://github.com/EvotecIT/PSWriteOffice>

@MScholtes for the Transponse-Object example <https://github.com/MScholtes/TechNet-Gallery>

Expand Down

0 comments on commit 61ee85a

Please sign in to comment.