|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
echo "generating complete file"
|
|
|
|
|
|
+echo "creating folders"
|
|
|
if [ ! -d ../output/images ]; then
|
|
|
mkdir ../output/images
|
|
|
fi
|
|
@@ -23,6 +24,7 @@ touch content.textile
|
|
|
|
|
|
echo "" > /tmp/summary
|
|
|
|
|
|
+echo "reading content"
|
|
|
|
|
|
|
|
|
|
|
@@ -32,12 +34,13 @@ echo "" > /tmp/summary
|
|
|
echo "<section id='main'>" >> content.textile
|
|
|
for i in ../content/*; do
|
|
|
|
|
|
- if [ -d "$i" ] && [ "$i" != "../model" ]; then
|
|
|
+ if [ -d "$i" ] && [[ ! "$i" =~ "model" ]]; then
|
|
|
|
|
|
if [ -f "$i/readme.textile" ]; then
|
|
|
|
|
|
|
|
|
cont=$(cat "$i/readme.textile")
|
|
|
+ echo " $i"
|
|
|
|
|
|
|
|
|
|
|
@@ -69,6 +72,7 @@ for i in ../content/*; do
|
|
|
|
|
|
|
|
|
|
|
|
+ echo " images"
|
|
|
images=""
|
|
|
l=0
|
|
|
echo "<section class='images'>"$'\n' >> content.textile
|
|
@@ -109,6 +113,7 @@ for i in ../content/*; do
|
|
|
|
|
|
|
|
|
|
|
|
+ echo " sources"
|
|
|
echo "<section class='sources'>"$'\n' >> content.textile
|
|
|
for src in $i/sources/*; do
|
|
|
|
|
@@ -141,6 +146,7 @@ echo "</section>" >> content.textile
|
|
|
|
|
|
|
|
|
|
|
|
+echo "header"
|
|
|
touch /tmp/header
|
|
|
echo "<header id='header'>"$'\n' > /tmp/header
|
|
|
echo "h1. OLA#3 Documentation"$'\n' >> /tmp/header
|
|
@@ -151,16 +157,17 @@ echo "</header>" >> /tmp/header
|
|
|
|
|
|
cat /tmp/header|cat - content.textile > /tmp/out && mv /tmp/out content.textile
|
|
|
|
|
|
-
|
|
|
+echo "Pandoc"
|
|
|
pandoc -s \
|
|
|
-f textile \
|
|
|
-t html5 -o ../output/index.html \
|
|
|
- -H css/lightbox.min.css \
|
|
|
- -H css/main.css \
|
|
|
+ -H style.tpl.html \
|
|
|
-A script.tpl.html \
|
|
|
content.textile
|
|
|
|
|
|
+
|
|
|
|
|
|
+cp -r css ../output/
|
|
|
cp -r fonts ../output/
|
|
|
cp -r bower_components ../output/
|
|
|
|