some display improvement

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-14 16:45:05 +01:00
parent 8a016f3d53
commit c4f669d893
4 changed files with 71 additions and 7 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ div.user {
position: relative;
width: 55%;
max-width: 800px;
margin: 0 auto 5rem auto; }
margin: 0 auto 5rem auto;
overflow-x: hidden; }
div.user header {
min-height: 200px; }
div.user .content {
+2 -2
View File
@@ -3,6 +3,6 @@ while true; do
now=$(date +"%Y-%m-%d--%T")
echo "export contents -- $now"
./tex2html.sh
echo "sleep 30sec for new export"
sleep 30s
echo "sleep 15sec for new export"
sleep 15s
done
+8
View File
@@ -130,6 +130,8 @@ div.user{
width: 55%;
max-width: 800px;
margin:0 auto 5rem auto;
overflow-x: hidden;
// outline: 1px solid red;
header{
min-height: 200px;
@@ -158,6 +160,12 @@ div.user{
border:none;
}
}
video{
max-width: 100%;
max-height: 600px;
}
}
@media print {
+59 -4
View File
@@ -46,7 +46,7 @@ for i in ../content/*; do
# user name
# record readme content on variable
cont=$(cat "$i/readme.textile")
echo " $i"
echo "$i"
# echo "$cont"
# user=$(grep "h1\.\s*.+" "$i/readme.textile")
@@ -57,10 +57,12 @@ for i in ../content/*; do
u=${i/..\//}
# record link for menu
# echo "<li><a href='#$u'>$u</a></li>" >> tmp/summary
echo "* \"$u\":#$u" >> tmp/summary
u=${u/content//}
id=${u:2}
echo "* \"$id\":#$id" >> tmp/summary
# right html and contents on main tmp/content.textile
echo "<div id='$u' class='user'>" >> tmp/content.textile
echo "<div id='$id' class='user'>" >> tmp/content.textile
# add user content to main content
echo "<section class='content'>"$'\n' >> tmp/content.textile
# add content to main tmp/content.textile
@@ -98,7 +100,8 @@ for i in ../content/*; do
convert ../output/images/$fimg -resize 800x800\> ../output/thumbs/$fimg
# replace image name in main tmp/content.textile file
# pandoc can't render textile links
sed -i "s/!images\/$fn!/<a data-lightbox='$folder' href='images\/$fimg'>!thumbs\/$fimg!<\/a>/g" tmp/content.textile
sed -i \
"s/!images\/$fn!/<a data-lightbox='$folder' href='images\/$fimg'>!thumbs\/$fimg!<\/a>/g" tmp/content.textile
# sed -i "s/!images\/$fn!/thumbs\/$fimg/g" tmp/content.textile
@@ -143,6 +146,58 @@ for i in ../content/*; do
fi
done
# ____ __
# / __ \____ _____/ /
# / /_/ / __ `/ __ /
# / ____/ /_/ / /_/ /
# /_/ \__,_/\__,_/
curl http://pads.osp.kitchen/p/ola-workshop/export/txt -o tmp/pad.md
echo "* \"Pad\":#pad" >> tmp/summary
# right html and contents on main tmp/content.textile
echo "<div id='pad' class='user'>" >> tmp/content.textile
echo "<h1>Pad</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/pad.textile tmp/pad.md
cat tmp/pad.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
# end main section
echo "</section>" >> tmp/content.textile