Ghost.psd1

@{
    RootModule           = 'Ghost.psm1'
    ModuleVersion        = '0.8.0'
    CompatiblePSEditions = @('Desktop', 'Core')
    GUID                 = '2c88733f-7c78-4043-b269-2b3306b8c3fe'
    Author               = 'Gijs Reijn'
    CompanyName          = 'Community'
    Copyright            = '(c) Gijs Reijn. All rights reserved.'
    Description          =
    'Community Ghost Admin API module: posts, pages, tags, members, tiers, images, themes, Markdown, local site.'
    PowerShellVersion    = '5.1'
    FormatsToProcess     = @(
        'ObjectDefinitions/Ghost.Image.ps1xml'
        'ObjectDefinitions/Ghost.LocalSite.ps1xml'
        'ObjectDefinitions/Ghost.Member.ps1xml'
        'ObjectDefinitions/Ghost.Page.ps1xml'
        'ObjectDefinitions/Ghost.PageSync.ps1xml'
        'ObjectDefinitions/Ghost.Post.ps1xml'
        'ObjectDefinitions/Ghost.PostSync.ps1xml'
        'ObjectDefinitions/Ghost.Tag.ps1xml'
        'ObjectDefinitions/Ghost.TagSync.ps1xml'
        'ObjectDefinitions/Ghost.Theme.ps1xml'
        'ObjectDefinitions/Ghost.ThemeSetting.ps1xml'
        'ObjectDefinitions/Ghost.ThemeSync.ps1xml'
        'ObjectDefinitions/Ghost.Tier.ps1xml'
    )
    FunctionsToExport    = @(
        'Connect-Ghost'
        'Copy-GhostPost'
        'Disconnect-Ghost'
        'Enable-GhostTheme'
        'Export-GhostContent'
        'Export-GhostPage'
        'Export-GhostPost'
        'Export-GhostTag'
        'Get-GhostMember'
        'Get-GhostPage'
        'Get-GhostPost'
        'Get-GhostTag'
        'Get-GhostThemeSetting'
        'Get-GhostTier'
        'Import-GhostContent'
        'New-GhostImage'
        'New-GhostMember'
        'New-GhostPage'
        'New-GhostPost'
        'New-GhostPostFile'
        'New-GhostTag'
        'New-GhostTheme'
        'New-GhostTier'
        'Publish-GhostPost'
        'Remove-GhostLocalSite'
        'Remove-GhostMember'
        'Remove-GhostPage'
        'Remove-GhostPost'
        'Remove-GhostTag'
        'Set-GhostMember'
        'Set-GhostPage'
        'Set-GhostPost'
        'Set-GhostTag'
        'Set-GhostThemeSetting'
        'Set-GhostTier'
        'Start-GhostLocalSite'
        'Stop-GhostLocalSite'
        'Sync-GhostPage'
        'Sync-GhostPost'
        'Sync-GhostTag'
        'Sync-GhostTheme'
        'Unpublish-GhostPost'
    )
    CmdletsToExport      = @()
    VariablesToExport    = @()
    AliasesToExport      = @()

    PrivateData          = @{
        PSData = @{
            Tags         = @('Ghost', 'GhostCMS', 'AdminAPI', 'Blog', 'CMS', 'Publishing', 'Markdown', 'REST')

            # build/build.ps1 sets the prerelease label, such as preview1, in the copy that is published.
            Prerelease   = ''

            # build/build.ps1 fills in the notes of the version from CHANGELOG.md, in the copy that is published.
            ReleaseNotes = '### Added

- `Export-GhostPost` and `Export-GhostPage` have an `-IncludeImage` switch. It also saves the images that were
  uploaded to the site, in a folder `images` next to the file of the post or page, and writes each of them in
  that file as the path of its file. `Sync-GhostPost` and `Sync-GhostPage` read such a file with its images, so a
  post can be kept in a repository with everything it shows. The property `SavedImages` of the result has the
  files that were written.

### Changed

- `Export-GhostPost` and `Export-GhostPage` report a file as `Unchanged` when it only differs from its post or
  page in an image file that `Sync-GhostPost` or `Sync-GhostPage` uploaded: the file has the path of the image,
  the site its address. Before, such a file was reported as `Skipped`.

### Fixed

- `Sync-GhostPost` and `Sync-GhostPage` find every image in a block of HTML, such as the HTML that
  `Export-GhostPost` writes for a post that was made in the editor. Before, an HTML image between two backticks
  in such a block was taken for code. Its file was not uploaded and the post showed a broken image.
- Text in a block of HTML that looks like a Markdown image, in a code sample for example, is no longer taken for
  an image file. Before, `Sync-GhostPost` and `Sync-GhostPage` stopped with the error that the file does not
  exist.'

        }
    }
}