Skip to content

Commit e494a15

Browse files
committed
Generate API doc from source comments
1 parent 903c701 commit e494a15

4 files changed

Lines changed: 486 additions & 2 deletions

File tree

build.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,22 @@
1515
</javac>
1616
</target>
1717

18-
18+
<target name="gendocs" description="Generate API documentation">
19+
<javac srcdir="src/docs/java"/>
20+
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
21+
<classpath>
22+
<pathelement path="src/docs/java"/>
23+
</classpath>
24+
<arg value="src/docs/javascript/generateApiDocs.js"/>
25+
<arg value="src/main/javascript"/>
26+
</java>
27+
</target>
1928

2029
<target name="zip_js">
2130
<zip zipfile="${build}/js-plugins.zip" basedir="./src/main/javascript"/>
2231
</target>
2332

24-
<target name="package" depends="zip_js,compile"
33+
<target name="package" depends="gendocs,zip_js,compile"
2534
description="generate the distribution" >
2635
<copy file="src/main/resources/plugin.yml" todir="${build}"/>
2736
<replace file="${build}/plugin.yml" value="${bukkit-version}-${DSTAMP}">

0 commit comments

Comments
 (0)