updated sys and created publi

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-21 18:09:49 +01:00
parent 2a6e2ff863
commit cefd1c2ad0
9509 changed files with 744901 additions and 32263 deletions
+21 -20
View File
@@ -131,9 +131,9 @@ for i in ../content/*; do
if [[ ! "$src" =~ "~" ]]; then
# record file name
fn=$(basename "$src")
cp -f "$src" ../output/sources/$fn
cp -f "$src" ../output/sources/$i/$fn
# echo $'\r'"<li>" >> tmp/content.textile
echo "* \"$fn\":sources/$fn" >> tmp/content.textile
echo "* \"$fn\":sources/$i/$fn" >> tmp/content.textile
# echo $'\r'"</li>" >> tmp/content.textile
fi
fi
@@ -154,7 +154,8 @@ done
# / ____/ /_/ / /_/ /
# /_/ \__,_/\__,_/
curl http://pads.osp.kitchen/p/ola-workshop/export/txt -o tmp/pad.md
# curl http://pads.osp.kitchen/p/ola-workshop/export/txt -o tmp/pad.md
curl https://mypads.framapad.org/p/ola-5doc-6117z7kl/export/txt -o tmp/pad.md
echo "* \"Pad\":#pad" >> tmp/summary
@@ -177,22 +178,22 @@ echo '<div class="pagebreak"></div>' >> tmp/content.textile
# / /___/ /_/ / /_/ / ,< / /_/ / /_/ / /_/ / ,<
# \____/\____/\____/_/|_/_____/\____/\____/_/|_|
curl http://pads.osp.kitchen/p/ola-cookbook/export/txt -o tmp/cookbook.md
echo "* \"CookBook\":#cookbook" >> tmp/summary
# right html and contents on main tmp/content.textile
echo "<div id='cookbook' class='user'>" >> tmp/content.textile
echo "<h1>CookBook</h1>" >> tmp/content.textile
# add user content to main content
echo "<section class='content'>"$'\n' >> tmp/content.textile
# add content to main tmp/content.textile
pandoc -f markdown -t textile -o tmp/cookbook.textile tmp/cookbook.md
cat tmp/cookbook.textile >> tmp/content.textile
echo $'\n'"</section>" >> tmp/content.textile
echo "</div>" >> tmp/content.textile
echo '<div class="pagebreak"></div>' >> tmp/content.textile
# curl http://pads.osp.kitchen/p/ola-cookbook/export/txt -o tmp/cookbook.md
#
# echo "* \"CookBook\":#cookbook" >> tmp/summary
#
# # right html and contents on main tmp/content.textile
# echo "<div id='cookbook' class='user'>" >> tmp/content.textile
# echo "<h1>CookBook</h1>" >> tmp/content.textile
# # add user content to main content
# echo "<section class='content'>"$'\n' >> tmp/content.textile
# # add content to main tmp/content.textile
# pandoc -f markdown -t textile -o tmp/cookbook.textile tmp/cookbook.md
# cat tmp/cookbook.textile >> tmp/content.textile
# echo $'\n'"</section>" >> tmp/content.textile
# echo "</div>" >> tmp/content.textile
#
# echo '<div class="pagebreak"></div>' >> tmp/content.textile
@@ -210,7 +211,7 @@ echo "</section>" >> tmp/content.textile
echo "header"
touch tmp/header
echo "<header id='header'>"$'\n' > tmp/header
echo "h1. OLA#4 Documentation : OSP html2print"$'\n' >> tmp/header
echo "h1. OLA#5 Documentation : An Mertens, Programation Python Algolittéraire"$'\n' >> tmp/header
echo "<nav id='menu'>"$'\n' >> tmp/header
cat tmp/summary >> tmp/header
echo $'\n'"</nav>" >> tmp/header