docs/Generate-AllDocs.ps1

$readme = "./README.MD"
Import-Module .\skyline-sppowershell.psm1 -Force
Add-Type -Path .\modules\SharePointPnPPowerShell2013\Microsoft.SharePoint.Client.dll

Set-Content -Path $readme -Value "# Skyline SPPowershell"

Get-ChildItem -Path "public" | ForEach-Object {
    $File = $PSItem
    $name = $File.Name.Replace(".ps1", "")
    Add-Content -Path $readme -Value "- [$($name)](#$($name))"
}

Get-ChildItem -Path "public" | ForEach-Object {
    $File = $PSItem
    Add-Content -Path $readme -Value (& .\docs\Generate-Docs.ps1 $File.Name.Replace(".ps1", ""))
}