-
Notifications
You must be signed in to change notification settings - Fork 54
/
generateWikitext.xml
executable file
·38 lines (32 loc) · 1.99 KB
/
generateWikitext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<project name="GEF4 Geometry Documentation Build" default="generate.wikitext" basedir=".">
<!-- path to wikitext standalone package -->
<path id="wikitext.classpath">
<fileset dir="../org.eclipse.gef4.releng/libs">
<include name="com.google.guava_*.jar" />
<include name="org.eclipse.mylyn.wikitext.core_*.jar" />
<include name="org.eclipse.mylyn.wikitext.core.ant_*.jar" />
<include name="org.eclipse.mylyn.wikitext.mediawiki.core_*.jar" />
<include name="org.eclipse.mylyn.wikitext.mediawiki.core.ant_*.jar" />
</fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/mediawiki/core/ant/tasks.properties" />
<property file="wikitextOptions.txt" />
<target name="generate.wikitext">
<echo message="Generating reference documentation for ${wiki.title} by extracting it from ${wiki.path} wiki page." />
<!-- Set up the base wiki location to pull content from: -->
<mediawiki-to-eclipse-help markuplanguage="MediaWiki" wikiBaseUrl="http://wiki.eclipse.org" navigationImages="true" validate="true" failonvalidationerror="true" prependImagePrefix="images" formatoutput="true" defaultAbsoluteLinkTarget="doc_external" dest="${basedir}/reference/wiki" helpPrefix="reference/wiki" title="${wiki.title}" generateUnifiedToc="false">
<!-- Set up which wiki pages to pull from: -->
<path name="${wiki.path}" title="${wiki.title}" generateToc="true" />
<stylesheet url="../../book.css" />
</mediawiki-to-eclipse-help>
<!-- perform (global) URL rewriting for http-based platform javadoc references (of any release) to local org.eclipse.platform.doc.isv bundle -->
<replaceregexp flags="g">
<fileset dir="${basedir}/reference/wiki/">
<include name="**/*.html" />
</fileset>
<regexp pattern="http://help.eclipse.org/(.+?/)?topic/org.eclipse.platform.doc.isv/reference/api/"/>
<substitution expression="PLUGINS_ROOT/org.eclipse.platform.doc.isv/reference/api/" />
</replaceregexp>
</target>
</project>