optim is a bit better

This commit is contained in:
Yann Esposito (Yogsototh) 2020-02-29 18:19:00 +01:00
parent d938e25503
commit a89eece4c9
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
5 changed files with 13 additions and 11 deletions

View File

@ -3,5 +3,7 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
echo -n "* Clean site cache"
find _site -mindepth 1 -delete
find _full -mindepth 1 -delete
find _optim -mindepth 1 -delete
rm -rf _cache
echo " [done]"

View File

@ -20,12 +20,9 @@ fi
tmp=$(mktemp)
for fic in $filelist; do
if echo $fic|egrep -- '-(mk|min|sci|modern).html$'>/dev/null; then
continue
fi
print -n -- "$fic "
cp $fic $tmp
perl -pi -e 's#<div id="outline-container-[^"]*"([^>]*)>#<div$1>#g;s# id="org[a-f0-9]{7}"##g' $tmp
perl -pi -e 's#<div id="outline-container-[^"]*"([^>]*)>#<div$1>#g;s# id="org[a-f0-9]{7}"##g;s# class="src src-# class="src-#g;s#<label class="org-src-name">#<label>#g;s#<div class="org-src-container">#<div>#g' $tmp
minify --mime text/html $tmp > $fic
print "[OK]"
done

View File

@ -2,7 +2,7 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
echo "Copying to optim dir"
rm -rf _optim/ && cp -r _site _optim
find _optim -mindepth 1 -delete && cp -r _site _optim
echo "Optim HTML size"
./engine/optim-html.sh
# echo "Gen themes clones"

Binary file not shown.

View File

@ -135,7 +135,7 @@ hr {
#postamble:before, hr:after {
font-family: Menlo, monospace;
text-align: center;
content: "--------------------------------------------------------------------------------";
content: "----------------------------------------------------------";
display:block;
width: 100%;
overflow: hidden;
@ -148,10 +148,10 @@ pre {
overflow-y: hidden;
}
pre:after,pre:before {
content: "~~~~~~~~~";
content: "~~~~~~~";
display: block; }
pre:before {
content: "~~~~~~~~~ " attr(class);
content: "~~~~~~~ " attr(class);
}
pre code {
background: none;
@ -368,17 +368,20 @@ li .keywords {
color: var(--fg0);
}
nav a, nav a:visited, .main nav a,.main nav a:visited {
color: var(--fg);
}
.main ol > li:before, ol > li:before,
pre::after,pre::before,hr:after,
.main pre::after,.main pre::before,.main hr:after,
blockquote:after, .main blockquote:after,
label, label a, .main label, .main label a
label a:visited, .main label a:visited
{
color: var(--fg0);
}
nav a, nav a:visited, .main nav a,.main nav a:visited {
color: var(--fg);
}
#labels label:hover,
a:hover,
a:hover *,