summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-11-26 14:19:10 -0500
committerJoey Hess <joey@kitenet.net>2007-11-26 14:19:10 -0500
commit8df24a447d9bcae138873bc076432e6a69946d7f (patch)
tree1153562d3c31a0363903340e17223a3f440e7804
parent23545d3b5fd87e955c380bfe7e342675aa5d54ac (diff)
parent8eac17928795859c403d39c512f99a49267fbb8f (diff)
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
-rw-r--r--doc/bugs/Symlinked_srcdir_requires_trailing_slash.mdwn66
1 files changed, 66 insertions, 0 deletions
diff --git a/doc/bugs/Symlinked_srcdir_requires_trailing_slash.mdwn b/doc/bugs/Symlinked_srcdir_requires_trailing_slash.mdwn
new file mode 100644
index 000000000..0310c17f3
--- /dev/null
+++ b/doc/bugs/Symlinked_srcdir_requires_trailing_slash.mdwn
@@ -0,0 +1,66 @@
+If the srcdir is a symlink, Ikiwiki will not render the pages unless the srcdir has a trailing slash.
+
+For example:
+
+ #!/bin/sh
+ set -x
+
+ REALSRCDIR=~/tmp/ikiwiki/wikiwc2
+ SRCDIR=~/tmp/ikiwiki/wikiwc
+ DESTDIR=~/tmp/ikiwiki/public_html/wiki/
+
+ echo "*** Testing without trailing slash."
+
+ rm -rf $REALSRCDIR $SRCDIR $DESTDIR
+
+ # Create the real srcdir and link the srcdir to it
+ mkdir -p $REALSRCDIR
+ ln -s $REALSRCDIR $SRCDIR
+
+ mkdir -p $DESTDIR
+
+ echo Test > $SRCDIR/index.mdwn
+
+ # No trailing slash after $SRCDIR
+ ikiwiki --verbose $SRCDIR $DESTDIR --url=http://example.org/~you/wiki/ --underlaydir /dev/null
+
+ echo "*** Testing with trailing slash."
+
+ rm -rf $REALSRCDIR $SRCDIR $DESTDIR
+
+ # Create the real srcdir and link the srcdir to it
+ mkdir -p $REALSRCDIR
+ ln -s $REALSRCDIR $SRCDIR
+
+ mkdir -p $DESTDIR
+
+ echo Test > $SRCDIR/index.mdwn
+
+ # Trailing slash after $SRCDIR
+ ikiwiki --verbose $SRCDIR/ $DESTDIR --url=http://example.org/~you/wiki/ --underlaydir /dev/null
+
+My output:
+
+ + REALSRCDIR=/home/svend/tmp/ikiwiki/wikiwc2
+ + SRCDIR=/home/svend/tmp/ikiwiki/wikiwc
+ + DESTDIR=/home/svend/tmp/ikiwiki/public_html/wiki/
+ + echo '*** Testing without trailing slash.'
+ *** Testing without trailing slash.
+ + rm -rf /home/svend/tmp/ikiwiki/wikiwc2 /home/svend/tmp/ikiwiki/wikiwc /home/svend/tmp/ikiwiki/public_html/wiki/
+ + mkdir -p /home/svend/tmp/ikiwiki/wikiwc2
+ + ln -s /home/svend/tmp/ikiwiki/wikiwc2 /home/svend/tmp/ikiwiki/wikiwc
+ + mkdir -p /home/svend/tmp/ikiwiki/public_html/wiki/
+ + echo Test
+ + ikiwiki --verbose /home/svend/tmp/ikiwiki/wikiwc /home/svend/tmp/ikiwiki/public_html/wiki/ --url=http://example.org/~you/wiki/ --underlaydir /dev/null
+ + echo '*** Testing with trailing slash.'
+ *** Testing with trailing slash.
+ + rm -rf /home/svend/tmp/ikiwiki/wikiwc2 /home/svend/tmp/ikiwiki/wikiwc /home/svend/tmp/ikiwiki/public_html/wiki/
+ + mkdir -p /home/svend/tmp/ikiwiki/wikiwc2
+ + ln -s /home/svend/tmp/ikiwiki/wikiwc2 /home/svend/tmp/ikiwiki/wikiwc
+ + mkdir -p /home/svend/tmp/ikiwiki/public_html/wiki/
+ + echo Test
+ + ikiwiki --verbose /home/svend/tmp/ikiwiki/wikiwc/ /home/svend/tmp/ikiwiki/public_html/wiki/ --url=http://example.org/~you/wiki/ --underlaydir /dev/null
+ scanning index.mdwn
+ rendering index.mdwn
+
+Note that index.mdwn was only rendered when srcdir had a trailing slash. \ No newline at end of file