No release in over 3 years
Low commit activity in last 3 years
Asciidoctor-Confluence parse asciidoc and publish the document to confluence.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.8.0

Runtime

~> 2.0.0
~> 5.1.0
~> 2.1.0
 Project Readme

Asciidoctor-ConfluencePublisher

Asciidoctor-ConfluencePublisher is a command line tool that parse asciidoc files, generate confluence compatible html and upload the content and attachment to confluence.

This repo inspired by confluence-publisher

It requires Ruby 2.x. works for Confluence 6+.

Installation

gem install asciidoctor-confluence_publisher

Usage

configuration

asciidoctor-confluence_publisher is built on asciidoctor gem, so the gem is compatible with all the arguments of asciidoctor.

The configuration of confluence can be set via attribute(-a attr=attr_value), or set via system environment. The attribute or environment are:

attribute name environment variable note required
confluence_host CONFLUENCE_HOST confluence host with protocol. Y
space SPACE confluence page space. Y
username CONFLUENCE_USERNAME confluence username. Y
password CONFLUENCE_PASSWORD confluence password. Y
ancestor_id ANCESTOR_ID page ancestor id. Y
proxy CONFLUENCE_PROXY confluence http proxy. N
skip_verify_ssl - whether skip verify ssl. N

It is recomanded that use environment for confluence related host, username and password, for example autoenv

Run

confluence-publisher [file or directory]

The title of source file will be the title in confluence.

If the final argument is a file, it will only processed the single file. It will recursively process all the source file except file starting with _, for directory parameter.

Development

After checking out the repo, run bundle install to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/polarlights/asciidoctor-confluence_publisher.