Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Documentation in EPUB format is now available with version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Laville committed Feb 15, 2012
1 parent 9c63573 commit 1b7aa8c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ phing -f /path/to/build-phing.xml make-userguide-htmlhelp

PDF file (with FOP)
phing -f /path/to/build-phing.xml make-userguide-pdf

Since version 1.3.0
EPUB file
phing -f /path/to/build-phing.xml make-userguide-epub
34 changes: 34 additions & 0 deletions docs/build-phing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<echo>make-userguide-chunked Build the user guide in many HTML files</echo>
<echo>make-userguide-htmlhelp Build the user guide in CHM format</echo>
<echo>make-userguide-pdf Build the user guide in PDF format</echo>
<echo>make-userguide-epub Build the user guide in EPUB format</echo>
</target>

<target name="notify" if="growl.task.available">
Expand Down Expand Up @@ -71,6 +72,13 @@
</then>
</if>

<if>
<istrue value="${build.book.epub}" />
<then>
<phingcall target="make-userguide-epub" />
</then>
</if>

</target>

<target name="make-userguide"
Expand Down Expand Up @@ -165,6 +173,32 @@

</target>

<target name="make-userguide-epub"
description="Build the user guide of PHP_Reflect in EPUB format">

<exec dir="${asciidoc.home}"
command="a2x.py --verbose -L -d book -f epub -D ${output.dir} ${homedir}/docs/phpreflect-book.txt"
returnProperty="exitCode"
/>

<if>
<equals arg1="${exitCode}" arg2="0" />
<then>
<if>
<istrue value="${build.tarball}" />
<then>
<zip destfile="${output.dir}/phpreflect-book.epub.zip">
<fileset dir="${output.dir}">
<include name="phpreflect-book.epub" />
</fileset>
</zip>
</then>
</if>
</then>
</if>

</target>

<target name="make-docs"
description="Build the documentation of PHP_Reflect">

Expand Down
3 changes: 2 additions & 1 deletion docs/local.win.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
asciidoc.home=C:\asciidoc-8.6.6
homedir=C:\home\pear\cruisecontrol\projects\php-reflect\src\php-reflect
output.dir=C:\www\php5\reflect\manual\1.2\en
output.dir=C:\www\php5\reflect\manual\1.3\en
build.tarball=true
build.book.chunked=true
build.book.chm=true
build.book.pdf=true
build.book.epub=true
htmlhelpworkshop=C:\Program Files\HTML Help Workshop
theme=flask

0 comments on commit 1b7aa8c

Please sign in to comment.