Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.93 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.93 KB

Koara

Build Status Coverage Status ![Latest Version](https://img.shields.io/maven-central/v/io.koara/koara-ant-plugin.svg?label=Maven Central) License

Koara-ant-plugin

This project is a plugin for parsing Koara documents with Apache Ant.

Getting Started

Download the koara-ant-plugin jar file and include the following code in your Ant build file.

<project default="convert">

	<get src="http://repo1.maven.org/maven2/io/koara/koara-ant-plugin/0.3.0/koara-ant-plugin-0.3.0-all.jar"
	           dest="${basedir}/libs/koara-ant-plugin-all.jar" />
	
	<taskdef name="koara" classname="io.koara.ant.ConvertTask"
	    classpath="${basedir}/libs/koara-ant-plugin-all.jar" />
	
	<target name="convert">  
	    <koara todir="${basedir}/output" modules="paragraphs,headings,lists" outputFormat="html5" >
	        <fileset dir="${basedir}/input" />
	    </koara>
	</target>

</project>

Task attributes

  • todir: Location to which all rendered documents should be written

  • modules: Optional comma-seperated string of modules used to render the koara documents. By default, all modules will be used. Possible values: paragraphs, headings, lists, links, images, formatting, blockquote, code

  • outputFormat: The format in which the koara documents should be rendered. Possible values: html5, xml