refactor: adapt to nuspec requirement for gallery publishing

This commit is contained in:
Rodweil, Theodor 2023-08-07 03:45:19 +02:00
parent 2019f8c959
commit 69c2684ee7
No known key found for this signature in database
GPG key ID: F8BC1B0EB1F9CCF5
29 changed files with 84 additions and 20 deletions

View file

@ -0,0 +1,35 @@
#!/usr/bin/env pwsh
<#
.SYNOPSIS
PowerShell Publisher for sphinxcontrib.confluencebuilder
.DESCRIPTION
- support for ancestral pages and containered attachments
- creates new pages if they don't exist
- updates existing pages and attachments if checksum mismatches
.EXAMPLE
Import-Module (Join-Path 'vendor' 'tiara.rodney'
'PSConfluencePublisher'
'PSConfluencePublisher'
'PSConfluencePublisher.psd1')
Register-PersonalAccessToken `
-Host 'confluence.contoso.com' `
-Token '123456789123456789'
Test-Connection confluence.contoso.com
Publish-All `
-Url 'https://confluence.contoso.com/display/TIARA/Testitest' `
-DumpIndex build/docs/confluence.out/data.json
.NOTES
- tested with PowerShell Core (PSVersion 7.3.6)
- tested with PowerShell Desktop (PSVersion 5.1.19041.3031)
#>
$ErrorActionPreference = "Stop"