Skip to content

taskscape/ConfluencePublisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confluence Publisher

Publishes a Markdown file to a Confluence page, uploads referenced images, and converts Mermaid blocks to images.

Requirements

  • .NET SDK
  • Mermaid CLI (mmdc) available on PATH, or pass --mermaid-cli with its full path

Credentials

Create a credentials.json file:

{
  "baseUrl": "https://your-domain.atlassian.net/wiki",
  "username": "your-email@example.com",
  "apiToken": "your-api-token"
}

Use --save-credentials to write credentials from the command line to the file.

Usage

dotnet run --project ConfluencePublisher -- \
  --markdown docs/example.md \
  --space SPACEKEY \
  --title "Page Title" \
  --parent-id 123456 \
  --credentials-file credentials.json

Optional arguments:

  • --page-id use a specific page ID
  • --base-url override Confluence base URL
  • --username override username
  • --api-token override API token
  • --log-file write logs to a specific path
  • --mermaid-cli path to mmdc
  • --save-credentials save current credentials to the file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages