Deploy Markdown as native ADF pages to Confluence Cloud
Project description
CCFM — Confluence Cloud Flavoured Markdown
A CLI tool that converts Markdown to Atlassian Document Format (ADF) and deploys pages to Confluence Cloud. Write documentation as Markdown, deploy it as native Confluence pages — no legacy conversions, no storage format hacks, full editor compatibility.
- Native ADF output — Pages open in the Confluence editor without any legacy conversion
- Automatic page hierarchy — Directory structure maps directly to Confluence page hierarchy
- CCFM extensions — Status badges, panels, expands, dates, smart page links, emoji, image width control
- Idempotent — Safe to run multiple times; creates or updates pages automatically
- Remote state — Deployment state stored in Confluence itself, no local files to commit
- Concurrent deploy protection — Terraform-style locking prevents conflicting deploys
- CI/CD ready — Deploy documentation on every commit to your main branch
Full documentation | Syntax reference
Quick Start
1. Get an API token
Go to Atlassian API Tokens, create a token, and note your Atlassian email address.
2. Install
pip install ccfm-convert
3. Initialise your space
ccfm \
--domain your-domain.atlassian.net \
--email your.email@example.com \
--token YOUR_API_TOKEN \
--space YOUR_SPACE_KEY \
init
This is idempotent — safe to run multiple times. It creates the _ccfm management
infrastructure that stores deployment state and lock information.
4. Write a page
---
page_meta:
title: My First Page
labels:
- docs
deploy_config:
ci_banner: false
---
# My First Page
This is **bold** text, this is *italic*.
> [!info]
> This is an info panel.
::In Progress::blue:: ::Stable::green::
5. Preview and apply
ccfm plan --directory path/to/docs
ccfm apply --directory path/to/docs --auto-approve
For the full CLI reference, configuration options, and deployment patterns, see the documentation site.
Page Hierarchy
Directories map directly to Confluence pages. A file at docs/Team/Engineering/api.md creates:
Team
└── Engineering
└── api
To control a container page's title and content, add a .page_content.md file inside the directory.
Docker
docker pull ghcr.io/stevesimpson418/ccfm-convert:latest
docker run --rm \
-e CONFLUENCE_DOMAIN=company.atlassian.net \
-e CONFLUENCE_EMAIL=user@example.com \
-e CONFLUENCE_TOKEN=your-token \
-v $(pwd)/docs:/docs \
ghcr.io/stevesimpson418/ccfm-convert:latest \
apply --space DOCS --directory /docs --auto-approve
For GitHub Action usage and CI/CD pipeline examples, see Docker & CI/CD.
Development
Setup
python -m venv .env
source .env/bin/activate # Windows: .env\Scripts\activate
# Install the package and dev/test dependencies
pip install -e .
pip install -r requirements-test.txt
# Install pre-commit hooks
pre-commit install
Running tests
pytest # All unit tests with coverage report
pytest tests/test_converter.py # Single file
pytest -k "test_heading" # Single test by name
Coverage runs automatically via pyproject.toml. The target is 100% line coverage on src/.
Smoke tests
End-to-end tests that deploy real pages to a Confluence space:
cp .env.smoke.example .env.smoke
# Edit .env.smoke with your values, then:
source .env.smoke
pytest tests/smoke/ --no-cov -v
Code style
- Formatter: Black (line length 100)
- Linter: Ruff
- Python: 3.12
black src/ # Format
ruff check src/ # Lint
pre-commit run --all-files # All hooks
Contributing
- Fork the repository and create a feature branch
- Run
pre-commit installto set up hooks - Make your changes
- Run
pytest— all tests must pass, coverage must be maintained - Run
pre-commit run --all-files - Submit a pull request
Credits
Built on:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ccfm_convert-1.0.0.tar.gz.
File metadata
- Download URL: ccfm_convert-1.0.0.tar.gz
- Upload date:
- Size: 88.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3534cc34b0291eafed32ca108faff65fedede72f4243a4f66d644cf26d8b6b35
|
|
| MD5 |
30bf9a5efff8cbf8dfd236a3b535f42a
|
|
| BLAKE2b-256 |
3f090cd328590f43c6b33402c92e948ee5890709f4dfa923453282a223532215
|
Provenance
The following attestation bundles were made for ccfm_convert-1.0.0.tar.gz:
Publisher:
release.yml on stevesimpson418/ccfm-convert
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ccfm_convert-1.0.0.tar.gz -
Subject digest:
3534cc34b0291eafed32ca108faff65fedede72f4243a4f66d644cf26d8b6b35 - Sigstore transparency entry: 1095450274
- Sigstore integration time:
-
Permalink:
stevesimpson418/ccfm-convert@738f14970bf90629adc5ca2e70abea8a51ab7051 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/stevesimpson418
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@738f14970bf90629adc5ca2e70abea8a51ab7051 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ccfm_convert-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ccfm_convert-1.0.0-py3-none-any.whl
- Upload date:
- Size: 45.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f218aeddf61fae7e3434ebd1e3561739fce82d2f3c9ba4c52b81ed3cbb9d71e7
|
|
| MD5 |
e66bde8804c88e5aab853ac44f944790
|
|
| BLAKE2b-256 |
469f7375e2f3b91d947cf150223c20ee3334b91ee011856389727a8fe9e88610
|
Provenance
The following attestation bundles were made for ccfm_convert-1.0.0-py3-none-any.whl:
Publisher:
release.yml on stevesimpson418/ccfm-convert
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ccfm_convert-1.0.0-py3-none-any.whl -
Subject digest:
f218aeddf61fae7e3434ebd1e3561739fce82d2f3c9ba4c52b81ed3cbb9d71e7 - Sigstore transparency entry: 1095450291
- Sigstore integration time:
-
Permalink:
stevesimpson418/ccfm-convert@738f14970bf90629adc5ca2e70abea8a51ab7051 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/stevesimpson418
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@738f14970bf90629adc5ca2e70abea8a51ab7051 -
Trigger Event:
push
-
Statement type: