Hi Terrance
On 29/07/10 03:34, metaperl wrote:
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.
Is the bash -x option an undocumented option? I can't find it on the bash man
page.
Long ago I adopted the .txt extension for AsciiDoc source. I experimented early
on with custom extensions but it was too confusing -- AsciiDoc source files are
readable plain text files which is what the .txt extension is for and all text
edits recognize and open .txt files. I also wanted to be able to pass around
AsciiDoc files for others to read without confusing them with "What on earth is
this file with the funny extension he's sent me? How do I open it? Is it safe to
open?".
My preference is to stick unambiguously with the .txt extension for AsciiDoc
source files. See also http://en.wikipedia.org/wiki/Text_file and
http://en.wikipedia.org/wiki/Plain_text). Maybe I should put this in an FAQ.
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.
The easiest way is to attach diff files (unified context -u) and post to the
discussion list.
Cheers, Stuart
--- 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.