Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

101 lines (85 sloc) 3.581 kb
<project name="docs" default="full">
<target name="init">
<property environment="env"/>
<condition property="sphinx.available">
<or>
<available file="sphinx-build" filepath="${env.PATH}"/>
<available file="sphinx-build.exe" filepath="${env.Path}"/>
<available file="sphinx-build.exe" filepath="${env.PATH}"/>
</or>
</condition>
<condition property="rst2pdf.available">
<or>
<available file="rst2pdf" filepath="${env.PATH}"/>
<available file="rst2pdf.exe" filepath="${env.Path}"/>
<available file="rst2pdf.exe" filepath="${env.PATH}"/>
</or>
</condition>
<condition property="latex.available">
<or>
<available file="latex" filepath="${env.PATH}"/>
</or>
</condition>
<condition property="build.directory" value="${build.directory}" else="${basedir}/target">
<isset property="build.directory" />
</condition>
<condition property="project.version" value="${project.version}" else="9-SNAPSHOT">
<isset property="project.version" />
</condition>
<echo message="Build directory is ${build.directory} and project version is ${project.version}"/>
</target>
<target name="clean" depends="init">
<delete includeemptydirs="true">
<fileset dir="${build.directory}" defaultexcludes="false">
<include name="**/" />
</fileset>
</delete>
</target>
<target name="index" depends="init">
<antcall target="sphinx-ignore-warnings">
<param name="id" value="index"/>
<param name="build" value="html"/>
</antcall>
</target>
<target name="user" depends="init">
<antcall target="sphinx">
<param name="id" value="user" />
<param name="build" value="html" />
</antcall>
</target>
<target name="web" depends="init">
<antcall target="sphinx">
<param name="id" value="web"/>
<param name="build" value="html"/>
</antcall>
</target>
<target name="developer" depends="init">
<antcall target="sphinx">
<param name="id" value="developer"/>
<param name="build" value="html"/>
</antcall>
</target>
<target name="full" depends="index,user,web,developer">
</target>
<target name="sphinx-ignore-warnings" if="sphinx.available">
<exec executable="sphinx-build" failonerror="true" dir="${basedir}/${id}">
<arg line="-D release=${project.version} -b ${build} -d &quot;${build.directory}/${id}/doctrees&quot; . &quot;${build.directory}/${id}/${build}&quot;"/>
</exec>
</target>
<target name="sphinx" if="sphinx.available">
<echo message="Running sphinx-build -D release=${project.version} -W -b ${build} -d &quot;${build.directory}/${id}/doctrees&quot; . &quot;${build.directory}/${id}/${build}&quot;"/>
<exec executable="sphinx-build" failonerror="true" dir="${basedir}/${id}">
<arg line="-D release=${project.version} -W -b ${build} -d &quot;${build.directory}/${id}/doctrees&quot; . &quot;${build.directory}/${id}/${build}&quot;"/>
</exec>
</target>
<target name="latex" if="latex.available">
<exec executable="sphinx-build" failonerror="true" dir="${basedir}/${id}">
<arg line="-D release=${project.version} -b latex -d &quot;${build.directory}/${id}/doctrees&quot; . &quot;${build.directory}/${id}/${build}&quot;"/>
</exec>
</target>
<target name="pdf" if="rst2pdf.available">
<exec executable="sphinx-build" failonerror="true" dir="${basedir}/${id}">
<arg line="-D release=${project.version} -c ${basedir}/${id}/pdf -b pdf -d &quot;${build.directory}/${id}/doctrees&quot; . &quot;${build.directory}/${id}/${build}&quot;"/>
</exec>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.