blob: 93a002ec8a478b7fcf0df99b8a0b6e1e8cb06c32 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.aniszczyk.minerva.doc" basedir="." default="all">
<!--
Copyright (c) 2011 Red Hat and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Chris Aniszczyk <caniszczyk@gmail.com> - initial API and implementation
-->
<description>
Generate Eclipse help content
</description>
<path id="wikitext.tasks.classpath">
<pathelement path="${compile_classpath}"/>
</path>
<echo message="compile classpath: ${compile_classpath}"/>
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties"/>
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties"/>
<property name="help.doc.url.base" value="http://wiki.eclipse.org" />
<target name="all" description="Generate Eclipse help content from the wiki documentation">
<sequential>
<delete failonerror="false">
<fileset dir="${basedir}/help/images" />
</delete>
<mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}"
validate="true" failonvalidationerror="true" prependImagePrefix="images"
formatoutput="true" defaultAbsoluteLinkTarget="minerva_external" dest="${basedir}/help"
navigationimages="true" title="Minerva Documentation" helpPrefix="help"
generateUnifiedToc="true">
<path name="Minerva" title="Minerva User Guide" />
<path name="Minerva/Sample" title="Minerva Sample" />
<stylesheet url="book.css" />
<pageAppendum>
= Updating This Document =
This document is maintained in a collaborative wiki. If you wish to
update or modify this document please visit
{url}</pageAppendum>
</mediawiki-to-eclipse-help>
<mkdir dir="help/images" />
<copy todir="${basedir}/help/images" overwrite="true">
<fileset dir="images" />
</copy>
</sequential>
</target>
</project>