1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="org.eclipse.linuxtools.cdt.libhover.library-docs" default="all">
4
Generate Eclipse help content for the Linux Tools Libhover Developers guide
7
<property name="help.doc.url.base" value="http://wiki.eclipse.org" />
9
<path id="tasks.classpath" path="bin" />
10
<path id="wikitext.tasks.classpath">
11
<!-- Replace dir with the dir you have wikitext installed into.-->
12
<fileset dir="/notnfs/jjohnstn/helios/eclipse/plugins">
13
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
17
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
18
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
20
<target name="all" description="Generate Eclipse help content for the Linux Tools changelog user guide">
21
<mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}" title="Libhover Developer's Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
23
<path name="Linux_Tools_Project/Libhover/Developers_Guide" title="Libhover Developer's Guide" generateToc="false" />
24
<stylesheet url="book.css" />
26
= Updating This Document =
28
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
29
http://wiki.eclipse.org/Linux_Tools_Project/Libhover/Developers_Guide .
31
</mediawiki-to-eclipse-help>
32
<antcall target="test" />
35
<target name="test" description="verify that all of the HTML files are well-formed XML">
37
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
39
If validation fails it is because either:
41
* the userguide source code is poorly formed, or
42
* the WikiText MediaWiki parser has a bug
44
Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
45
or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block)
49
Don't bother with DTD validation: we only care if the files are well-formed.
50
We therefore provide an empty DTD
53
<echo file="tmp/__empty.dtd" message="" />
54
<xmlvalidate lenient="true">
55
<fileset dir="Linux_Tools_Project">
56
<include name="**/*.html" />
58
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />