Mercurial > hg > easyhg
diff help/generate.sh @ 495:e6141a238811
A bit more Help
author | Chris Cannam |
---|---|
date | Thu, 18 Aug 2011 17:13:04 +0100 |
parents | 41a156d439d0 |
children | fb95d70c80d5 |
line wrap: on
line diff
--- a/help/generate.sh Thu Aug 18 16:37:27 2011 +0100 +++ b/help/generate.sh Thu Aug 18 17:13:04 2011 +0100 @@ -23,7 +23,7 @@ s/^\s+\*\s+(.*)$/<ul><li>$1<\/li><\/ul>/gm; s/"([\w])/“$1/gs; s/([\w])"/$1”/gs; -s/^\#([^\s]+)$/<center><img src="images\/$1"><\/center>/gm; +s/^\#([^\s]+)$/<center><img src="images\/$1.png"><\/center>/gm; s/\n-+\n/\n/gs; s/\n\n([^\n])/\n\n<p>$1/gs; s/^\n*([^<\n])/\n<p>$1/gs; @@ -48,6 +48,7 @@ if [ "$category" != "$pcat" ]; then echo "<h3>$category</h3>" >> topics.html + pcat="$category" fi grep '<h2>' "$out" | sed "s|<h2>|<p><a href=\"$out\">|" | sed 's/<\/h2>/<\/a><\/p>/' >> topics.html