blob: 722dfe21219648d2eb2419ae1a2781e4798b1a39 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2013 Obeo
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:
Obeo - Initial API and implementation
-->
<project name="org.eclipse.emf.compare.doc" default="generate-html">
<property name="wikitext.standalone" value="${user.home}/.local/ant" description="Path to the WikiText standalone JARs" />
<path id="wikitext.classpath">
<fileset dir="${wikitext.standalone}">
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
</fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
<target name="generate-html" description="Generate Eclipse help from Mediawiki source">
<wikitext-to-html markupLanguage="MediaWiki" formatOutput="true" internallinkpattern="{0}">
<fileset dir="${basedir}">
<include name="doc/**/*.mediawiki" />
</fileset>
<stylesheet url="/help/topic/org.eclipse.emf.compare.doc/doc/resources/bootstrap.css" />
<stylesheet url="/help/topic/org.eclipse.emf.compare.doc/doc/resources/custom.css" />
</wikitext-to-html>
</target>
<target name="generate-site-html" description="Generate Eclipse help from Mediawiki source">
<wikitext-to-html markupLanguage="MediaWiki" formatOutput="true" internallinkpattern="{0}">
<fileset dir="${basedir}">
<include name="doc/**/*.mediawiki" />
</fileset>
<stylesheet url="/emf/compare/doc/resources/bootstrap.css" />
<stylesheet url="/emf/compare/doc/resources/custom.css" />
</wikitext-to-html>
</target>
</project>