Concatenate markdown files and sync to Confluence with ease.
$ curl -fsSL https://raw.githubusercontent.com/onurkerem/doc-helper/main/packages/cli/install.sh | bash Combine multiple markdown files into a single, cohesive document. Easily copy the output to your clipboard for quick sharing.
Push your documentation directly to Confluence. The tool automatically maps your local directory hierarchy to Confluence pages.
doc-helper uses hash tracking to ensure only modified files are uploaded, saving time and API calls during updates.
Point doc-helper at a directory. It concatenates all markdown files and copies the result to your clipboard. Use flags to exclude directories, sync to Confluence, or dry-run.
Concatenate and copy all markdown in a directory.
Exclude specific directories from the scan.
doc-helper reads your local folder structure and mirrors it in Confluence. Directories become container pages; each markdown file becomes a child page with its title from the first # Heading.
Create ~/.doc-helper/config.json with your Confluence credentials and the path to your docs directory.
{
"syncs": [
{
"path": "/Users/you/my-docs",
"confluence_base_url": "https://yourcompany.atlassian.net/wiki",
"email": "you@company.com",
"api_token": "YOUR_API_TOKEN",
"parent_page_id": "123456"
}
]
}
Get your API token at
id.atlassian.com/manage-profile/security/api-tokens open_in_new