Markdown Confluence Publisher (VS Code Extension)Publish and synchronize Markdown documentation directly to Atlassian Confluence Cloud from VS Code, with native Confluence Callout Macros and optional Google Open Knowledge Format (OKF v0.2) metadata management. ✨ Features
📥 InstallationInstall directly from VS Code Marketplace, Open VSX Registry, or download the
⚙️ Setup & Configuration🔑 1. Obtaining your Atlassian API TokenTo publish documents to Confluence Cloud, you need an Atlassian API Token:
🧙♂️ 2. Interactive First-Run Setup (Zero-Config)You don't need to manually configure settings before starting! The first time you publish a document or run a command:
⚙️ 3. Workspace vs. Global ConfigurationYou can configure settings globally (for all projects) or per-workspace: VS Code Settings (
|
| Setting | Type | Description |
|---|---|---|
markdownConfluence.domain |
string |
Atlassian Confluence domain (e.g., company.atlassian.net). |
markdownConfluence.email |
string |
Account email associated with the Atlassian API Token. |
markdownConfluence.apiToken |
string |
Atlassian Personal API Token. |
markdownConfluence.defaultSpaceKey |
string |
Fallback Space Key for publishing documents when unspecified. |
markdownConfluence.defaultAuthorName |
string |
Default author name formatted into OKF frontmatter (generated.by). |
markdownConfluence.defaultFolderId |
string |
Default parent page/folder ID for newly published documents. |
markdownConfluence.autoUpdateLastUpdate |
boolean |
Automatically update lastUpdate ISO timestamp upon publish (default: true). |
📋 Metadata Fields Reference (OKF v0.2)
You can manage document metadata manually via YAML frontmatter or interactively using Cmd + Shift + P ->
Markdown Confluence: Add/Edit Metadata Fields....
| Field | Type | Description & Examples |
|---|---|---|
title |
string |
Document title. Extracted automatically from the first # Heading if omitted. |
type |
string |
Document concept type: wiki, spec, architecture, playbook, metric, reference, api-endpoint, or custom. |
generated |
object |
Author and creation timestamp: { by: "human:username", at: "2026-07-27T10:00:00Z" }. |
lastUpdate |
string |
ISO 8601 timestamp string of last modification: "2026-07-27T12:00:00.000Z". |
spaceKey |
string |
Target Confluence Space Key (e.g., DOCS, ENG, DEV). |
folderId |
string |
Confluence parent page or folder ID (e.g., "12345678"). |
fileId |
string |
Confluence Page ID (auto-inserted after the initial publish for seamless updates). |
tags |
array |
Keywords or labels: [crm, api, stats, onboarding]. |
description |
string |
Short summary of the document for index cataloging. |
📄 Complete Example Document
---
type: architecture
title: "Dashboard Statistics & Automations Engine"
description: "Technical specification for monthly KPIs, automated task triggers, and market intelligence widgets."
tags: [dashboard, analytics, database, cron]
generated: { by: "human:developer", at: "2026-07-26T13:09:03.370Z" }
lastUpdate: "2026-07-27T10:45:00.000Z"
spaceKey: DOCS
folderId: "12345678"
fileId: "87654321"
---
# Dashboard Statistics & Automations Engine
> [!NOTE] This document is written in Markdown and synchronized with Atlassian Confluence Cloud.
## 1. System Overview
The system processes real-time analytics events through Cloud Functions and updates Firestore counters reactively.
```mermaid
graph TD
A[Client Event] --> B[Cloud Function]
B --> C[Firestore Document]
C --> D[Angular Dashboard Widget]
```
[!TIP] Use
Cmd + Shift + P->Markdown Confluence: Add/Edit Metadata Fields...to quickly set Space Key or Parent Folder interactively.
📦 Commands Reference
Markdown Confluence: Publish Current File— Publish or update the current file in Confluence Cloud. If frontmatter metadata is missing, automatically launches the interactive pre-publish metadata wizard.Markdown Confluence: Add/Edit Metadata Fields...— Interactive QuickPick menu to view, add, or update individual frontmatter metadata fields (title,type,spaceKey,folderId,generated,tags,description,fileId).
📜 Changelog
Version 1.1.1 (2026-08-05)
- ⚡ Lightweight Remote Space Search (CQL):
- What: Replaced bulk page fetching in parent folder pickers with a lightweight Confluence Query Language (CQL)
search engine (
searchSpacePages). Loads 25 recent pages initially and allows searching any page across large Confluence spaces remotely by title. - Why: Drastically reduces network bandwidth and memory consumption on large Confluence spaces (5,000+ pages) while ensuring instant search results.
- What: Replaced bulk page fetching in parent folder pickers with a lightweight Confluence Query Language (CQL)
search engine (
Version 1.1.0 (2026-08-05)
- 🚀 Interactive Pre-Publish Metadata Wizard:
- What: When publishing a document without metadata, an interactive metadata wizard launches automatically, allowing users to review, edit, or customize metadata fields cumulatively before publishing.
- Why: Prevents publishing documents with missing or unconfigured metadata, while guaranteeing sensible defaults
(title from H1/filename, author from settings, type
Wiki, default space, ISO timestamps) when fields are left untouched.
- 👤 Custom Default Author Resolution (
defaultAuthorName):- What: Resolved
markdownConfluence.defaultAuthorNameconfiguration across all commands and formatted human author names automatically (e.g.Jorge Guzmán->human:Jorge Guzmán). - Why: Ensures correct author attribution in
generated: { by: ... }rather than falling back to telemetry-derived generic strings (human:user).
- What: Resolved
- 📁 Default Parent Folder/Page ID Configuration (
defaultFolderId):- What: Added
markdownConfluence.defaultFolderIdsetting andCONFLUENCE_DEFAULT_FOLDER_IDenvironment variable support. - Why: Allows users and teams to set a primary parent folder ID so newly created documents land in the intended section of Confluence without manual folder selection.
- What: Added
- 🧹 Streamlined Context Menu & Workflow:
- What: Removed redundant commands (
Sync Metadata,Update Timestamps & Author,Set Document Type,Set Parent Folder) from context menus, reducing right-click options to 2 clean actions:Publish Current FileandAdd/Edit Metadata Fields.... - Why: Eliminates UI clutter and avoids destructive remote-body conversion attempts, maintaining the local Markdown document as the 100% pristine Source of Truth.
- What: Removed redundant commands (
Version 1.0.2 (Initial Stable Release)
- 🌟 Initial release of Markdown Confluence Publisher with support for OKF v0.2 metadata format, GitHub-style callouts, Mermaid diagrams, and Atlassian Confluence Cloud API integration.
📜 License
MIT License — Created for Google Antigravity & Open Knowledge Framework ecosystems.