Skip to content

codeaddslife/koara-ant-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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