The complete new build-websites.sh is a bit more generic and allows
people to re-use the asciidoc website example for their own site a bit
easier.

This http://gist.github.com/494825[gist] has the entire new file. The
patch is below. I plan to make more edits so that the example website
is more useable in general, so I'd like to know the general process
for patch submission.


--- a/examples/website/build-website.sh Thu May 13 09:12:42 2010 +1200
+++ b/examples/website/build-website.sh Wed Jul 28 11:08:50 2010 -0400
@@ -1,25 +1,39 @@
-#!/bin/sh
+#!/bin/bash -x

 VERS="8.1.0"
 DATE="2006-10-22"

+# ----- configure build here
+
+# specify how to invoke the asciidoc binary
+
+ASCIIDOC="python ../../asciidoc.py"
+#ASCIIDOC=asciidoc.py
+
 # Leave the desired layout uncommented.
 LAYOUT=layout1         # Tables based layout.
 #LAYOUT=layout2                # CSS based simulated frames layout.

-ASCIIDOC_HTML="python ../../asciidoc.py --unsafe --backend=xhtml11 --
conf-file=${LAYOUT}.conf --attribute icons --attribute iconsdir=./
images/icons --attribute=badges --attribute=revision=$VERS  --
attribute=date=$DATE"
+# Specify the suffix for asciidoc files
+ADOC=adoc

-$ASCIIDOC_HTML -a index-only index.txt
-$ASCIIDOC_HTML -a toc -a numbered userguide.txt
-$ASCIIDOC_HTML -d manpage manpage.txt
-$ASCIIDOC_HTML downloads.txt
-$ASCIIDOC_HTML latex-backend.txt
-$ASCIIDOC_HTML README.txt
-$ASCIIDOC_HTML INSTALL.txt
-$ASCIIDOC_HTML CHANGELOG.txt
-$ASCIIDOC_HTML README-website.txt
-$ASCIIDOC_HTML support.txt
-$ASCIIDOC_HTML source-highlight-filter.txt
-$ASCIIDOC_HTML music-filter.txt
-$ASCIIDOC_HTML a2x.1.txt
-$ASCIIDOC_HTML asciimath.txt
+
+
+# ---- no need to edit below
+
+ASCIIDOC_HTML="$ASCIIDOC --unsafe --backend=xhtml11 --conf-file=$
{LAYOUT}.conf --attribute icons --attribute iconsdir=./images/icons --
attribute=badges --attribute=revision=$VERS  --attribute=date=$DATE"
+
+$ASCIIDOC_HTML -a index-only index.$ADOC
+$ASCIIDOC_HTML -a toc -a numbered userguide.$ADOC
+$ASCIIDOC_HTML -d manpage manpage.$ADOC
+$ASCIIDOC_HTML downloads.$ADOC
+$ASCIIDOC_HTML latex-backend.$ADOC
+$ASCIIDOC_HTML README.$ADOC
+$ASCIIDOC_HTML INSTALL.$ADOC
+$ASCIIDOC_HTML CHANGELOG.$ADOC
+$ASCIIDOC_HTML README-website.$ADOC
+$ASCIIDOC_HTML support.$ADOC
+$ASCIIDOC_HTML source-highlight-filter.$ADOC
+$ASCIIDOC_HTML music-filter.$ADOC
+$ASCIIDOC_HTML a2x.1.$ADOC
+$ASCIIDOC_HTML asciimath.$ADOC

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to