All Projects → duo-labs → Markdown To Confluence

duo-labs / Markdown To Confluence

Licence: apache-2.0
Syncs Markdown files to Confluence

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Markdown To Confluence

Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-8.22%)
Mutual labels:  markdown
Gh Card
GitHub Repository Card for Any Web Site
Stars: ✭ 1,154 (+1480.82%)
Mutual labels:  markdown
Godot Engine.file Editor
A Godot Engine addon that adds a File Editor for multiple file types editing. Create and Write plain text files, configuration files and csv files with custom visualizers and previews. Also supports file translations!
Stars: ✭ 70 (-4.11%)
Mutual labels:  markdown
Mmarkdown
Interpret mmd fenced code blocks in a markdown file and generate a cooler version of it.
Stars: ✭ 67 (-8.22%)
Mutual labels:  markdown
Gitjournal
Mobile first Note Taking integrated with Git
Stars: ✭ 1,138 (+1458.9%)
Mutual labels:  markdown
Nice Mail
💌 Nice Mail 是一款以 Markdown 为基础的邮件编辑器。
Stars: ✭ 69 (-5.48%)
Mutual labels:  markdown
Hexoeditor
this markdown Editor for hexo blog
Stars: ✭ 1,141 (+1463.01%)
Mutual labels:  markdown
Taskell
Command-line Kanban board/task manager with support for Trello boards and GitHub projects
Stars: ✭ 1,175 (+1509.59%)
Mutual labels:  markdown
Toc
🚩 TOC, zero configuration table of content generator for Markdown files, create table of contents from any Markdown file with ease.
Stars: ✭ 66 (-9.59%)
Mutual labels:  markdown
Swift
Airbnb's Swift Style Guide.
Stars: ✭ 1,165 (+1495.89%)
Mutual labels:  markdown
Linkify Markdown
🚀 A cli tool which automatically add references to issues, pull requests, user mentions and forks to a markdown file.
Stars: ✭ 67 (-8.22%)
Mutual labels:  markdown
Typora Issues
Bugs, suggestions or free discussions about the minimal markdown editor — Typora
Stars: ✭ 1,147 (+1471.23%)
Mutual labels:  markdown
Markdeck
presentations as code - author cool slide decks, text-only, offline-ready, collaborative
Stars: ✭ 1,159 (+1487.67%)
Mutual labels:  markdown
Markdown Builder
1kb Markdown builder for Node.js
Stars: ✭ 67 (-8.22%)
Mutual labels:  markdown
Markdown Formatter
markdown formatter
Stars: ✭ 70 (-4.11%)
Mutual labels:  markdown
Startup Matrix
Startup Matrix exported to CSV, JSON, Markdown and HTML formats. Credits to original article by Eric Stromberg.
Stars: ✭ 66 (-9.59%)
Mutual labels:  markdown
Wemark
微信小程序Markdown渲染库
Stars: ✭ 1,159 (+1487.67%)
Mutual labels:  markdown
Evermark
🐘 A command line tool for syncing markdown notes to Evernote
Stars: ✭ 72 (-1.37%)
Mutual labels:  markdown
Markdown Component Loader
📑 Turn Markdown into dynamic, stateless React components
Stars: ✭ 71 (-2.74%)
Mutual labels:  markdown
Starter Academic
🎓 Easily create a beautiful academic résumé or educational website using Hugo, GitHub, and Netlify
Stars: ✭ 1,158 (+1486.3%)
Mutual labels:  markdown

markdown-to-confluence

Converts and deploys a Markdown file to Confluence.

This project was created to sync Journal posts to Confluence as part of the CI process. However, it's able to more generally handle Markdown files that have front-matter at the top, such as those used in Hugo, Jeykll, etc.

Installation

To install the project, you need to first install the dependencies:

pip install -r requirements.txt

Alternatively, you can use the provided Dockerfile:

docker build -t markdown-to-confluence .

Usage

usage: markdown-to-confluence.py [-h] [--git GIT] [--api_url API_URL]
                                 [--username USERNAME] [--password PASSWORD]
                                 [--space SPACE] [--ancestor_id ANCESTOR_ID]
                                 [--header HEADER] [--dry-run]
                                 [posts [posts ...]]

Converts and deploys a markdown post to Confluence

positional arguments:
  posts                 Individual files to deploy to Confluence (takes
                        precendence over --git)

optional arguments:
  -h, --help            show this help message and exit
  --git GIT             The path to your Git repository (default:
                        /Users/jwright/src/journal-to-confluence))
  --api_url API_URL     The URL to the Confluence API (e.g.
                        https://wiki.example.com/rest/api/)
  --username USERNAME   The username for authentication to Confluence
                        (default: env('CONFLUENCE_USERNAME'))
  --password PASSWORD   The password for authentication to Confluence
                        (default: env('CONFLUENCE_PASSWORD'))
  --space SPACE         The Confluence space where the post should reside
                        (default: env('CONFLUENCE_SPACE'))
  --ancestor_id ANCESTOR_ID
                        The Confluence ID of the parent page to place posts
                        under (default: env('CONFLUENCE_ANCESTOR_ID'))
  --header HEADER       Extra header to include in the request when sending
                        HTTP to a server. May be specified multiple times.
                        (default: env('CONFLUENCE_HEADER_<NAME>'))
  --dry-run             Print requests that would be sent- don't actually make
                        requests against Confluence (note: we return empty
                        responses, so this might impact accuracy)

What Posts are Deployed

This project assumes that the Markdown files being processed have YAML formatted front-matter at the top. In order for a file to be processed, we expect the following front-matter to be present:

wiki:
    share: true

Deploying a Post

There are two ways to deploy a post:

Syncing from a Git Repository

This project was originally created to keep an instance of Journal in sync with a Confluence instance. To that end, this project is able to be run as part of a CI/CD pipeline, taking the Markdown files modified in the latest commit and syncing them to the upstream Confluence instance.

To enable this as part of your CI/CD pipeline, run markdown-to-confluence, providing the --git flag:

markdown-to-confluence.py --git /path/to/your/repo

Deploying Posts On-Demand

You may wish to deploy a post on-demand, rather than building this process into your CI/CD pipeline. To do this, just put the filenames of the posts you wish to deploy to Confluence as arguments:

markdown-to-confluence.py /path/to/your/post.md
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].