Quick Start¶
Get up and running with mkdocs-to-confluence in minutes!
Step 1: Install the Plugin¶
Step 2: Get Confluence Credentials¶
API Token¶
- Go to Atlassian Account Settings
- Click "Create API token"
- Give it a name and copy the token
Space Key¶
Find your Confluence space key:
1. Go to your Confluence space
2. Click "Space Settings"
3. The space key is shown in the URL: https://your-domain.atlassian.net/wiki/spaces/SPACEKEY/
Step 3: Configure MkDocs¶
Add to your mkdocs.yml:
plugins:
- mkdocs-to-confluence:
host_url: https://your-domain.atlassian.net/wiki/rest/api/content
space: YOUR_SPACE
parent_page_name: Documentation
username: your-email@example.com
api_token: your-api-token
Environment Variables
You can use environment variables instead of hardcoding credentials:
plugins:
- mkdocs-to-confluence:
host_url: https://your-domain.atlassian.net/wiki/rest/api/content
space: YOUR_SPACE
parent_page_name: Documentation
Then set: JIRA_USERNAME and CONFLUENCE_API_TOKEN
Step 4: Build Your Documentation¶
Your documentation will be automatically synced to Confluence!
Step 5: Test with Dry Run¶
Before syncing to production, test with dry run mode:
plugins:
- mkdocs-to-confluence:
host_url: https://your-domain.atlassian.net/wiki/rest/api/content
space: YOUR_SPACE
dryrun: true
export_dir: confluence-export
This exports to a local directory for inspection.
Next Steps¶
- Configuration Guide - Learn about all configuration options
- Basic Usage - Understand how the plugin works
- Managing Orphaned Pages - Keep your Confluence space synchronized
- Advanced Features - Explore advanced capabilities