MkDocs plugin that converts markdown pages into confluence markup and export it to the Confluence page
Install the plugin using pip:
pip install mkdocs-with-confluence
Activate the plugin in mkdocs.yml
:
plugins:
- search
- mkdocs-with-confluence
More information about plugins in the MkDocs documentation: mkdocs-plugins.
Use following config and adjust it according to your needs:
- mkdocs-with-confluence:
host_url: https://<YOUR_CONFLUENCE_DOMAIN>/rest/api/content
space: <YOUR_SPACE>
parent_page_name: <YOUR_ROOT_PARENT_PAGE>
username: <YOUR_USERNAME_TO_CONFLUENCE>
password: <YOUR_PASSWORD_TO_CONFLUENCE>
enabled_if_env: MKDOCS_TO_CONFLUENCE
#verbose: true
#debug: true
dryrun: true
header_message: <A_MESSAGE_THAT_WILL_BE_ADDED_TO_EVERY_PAGE>
upstream_url: <URL_OF_YOUR_MKDOCS_INSTANCE>
header_warning: "‼️ This page is created automatically, all you changes will be overwritten during the next MKDocs deployment. Do not edit a page here ‼️"
- md2cf
- mimetypes
- mistune