-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
34 lines (28 loc) · 1.14 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Templado Documentation" default="serve" basedir=".">
<property name="source" value="src"/>
<property name="venv" value="${basedir}/venv" />
<property name="mkdocs" value="${venv}/bin/mkdocs" />
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/public"/>
</target>
<target name="publish" description="Publish current state of document">
<exec executable="${mkdocs}" >
<env key="VIRTUAL_ENV" value="${venv}" />
<arg line="gh-deploy --force --strict --clean --verbose" />
</exec>
</target>
<target name="serve" description="Service locally">
<exec executable="${mkdocs}" >
<env key="VIRTUAL_ENV" value="${venv}" />
<arg line="serve --dirty" />
</exec>
</target>
<target name="render">
<exec executable="${mkdocs}" >
<env key="VIRTUAL_ENV" value="${venv}" />
<arg line="build --verbose --strict" />
</exec>
</target>
<target name="build" depends="clean,render" />
</project>