Giter VIP home page Giter VIP logo

asciidoctor-confluence's Introduction

Asciidoctor-Confluence 0.0.2

Asciidoctor-confluence is a ruby gem that takes Asciidoc files, parse them using Asciidoctor and push the result into Confluence. This gem currently supports Asciidoctor 1.5.2
This gem is compatible with Confluence 5.x

How to use it ?

First you need to download and install the gem

gem install asciidoctor-confluence

Then to create a page

asciidoctor-confluence --host HOSTNAME --spaceKey SPACEKEY --title TITLE --username USERNAME --password PASSWORD file.adoc

To update a page

asciidoctor-confluence --host HOSTNAME --spaceKey SPACEKEY --title TITLE --username USERNAME --password PASSWORD --update file.adoc
#or
asciidoctor-confluence --host HOSTNAME --spaceKey SPACEKEY --title TITLE --username USERNAME --password PASSWORD --update --pageid PAGEID file.adoc

Here is the list of arguments that can used with this gem

Table 1. Gem parameters
Argument Is mandatory Role Example

host

yes

The hostname of the Confluence instance

http://confluence.mydomain/

spaceKey

yes

The space wihtin the page will be created

'AS' in http://confluence.mydomain/display/AS/

title

yes

The title of the Confluence page

username

no

The username to use if the page has write restrictions

password

no

The password associated to the account used to login into Confluence

update

false

Indicate that the page must be updated instead of created. No values are required for this option

pageid

no

The ID of the page you want to update, if it’s not provided it will be determined using the space key and the title

Want to try it ?

If you want to try asciidoctor-confluence you can either download the gem:

gem install asciidoctor-confluence

Or install from the source

  1. Install the gem locally (at the moment it has not been publish to rubygem)

    1. Clone the github repository locally git clone https://github.com/gscheibel/asciidoctor-confluence.git

    2. Built it gem build asciidoctor-confluence.gemspec

    3. Install it gem install ./asciidoctor-confluence.0.0.2.gem

    4. To check it has been done correctly asciidoctor-confluence -v should display asciidoctor-confluence: 0.0.2

  2. Have a Confluence instance

    1. If you don’t have a Confluence server, you can use a Docker container (e.i.: https://registry.hub.docker.com/u/cptactionhank/atlassian-confluence/), the option requires therefore an Atlassian account so it can generate a trial licence key.

asciidoctor-confluence's People

Contributors

gscheibel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.