updated slightly engine

This commit is contained in:
Yann Esposito (Yogsototh) 2020-02-16 16:56:19 +01:00
parent d426186477
commit 717269a4bb
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
9 changed files with 27 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
_cache
_site
_optim
src/archive.org

View File

@ -4,7 +4,7 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
# Directory
webdir="_site"
webdir="_optim"
postsdir="$webdir/posts"
rssfile="$webdir/rss.xml"

View File

@ -3,7 +3,7 @@
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
webdir="_optim"
retrieve_classes_in_html () {
cat $webdir/**/*.html(N) | \

View File

@ -3,7 +3,7 @@
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
webdir="_optim"
debug () {
print -- $* >/dev/null

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
cd "$(git rev-parse --show-toplevel)" || exit 1
echo "Copying to optim dir"
rm -rf _optim/ && cp -r _site _optim
echo "Optim HTML size"
./engine/optim-html.sh
# echo "Gen themes clones"

View File

@ -1,4 +1,13 @@
#!/usr/bin/env bash
cd "$(git rev-parse --show-toplevel)" || exit 1
cd _site && sws -d --port 3001 .
if (( $# == 0 )); then
webdir="_site"
else
webdir="$1"
fi
cd $webdir && \
echo "Serving: $webdir" && \
sws -d --port 3001 .

View File

@ -1,9 +1,13 @@
#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
rootdir=$PWD
echo $rootdir
webdir="_optim"
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
echo -n "Uploading website"
rsync --progress --partial -avHe ssh $rootdir/_site/ root@esy.fun:/var/www/her.esy.fun/ --delete
rsync --progress\
--partial \
--delete \
-avHe ssh ${webdir}/ root@esy.fun:/var/www/her.esy.fun/
echo " [done]"

View File

@ -3,7 +3,7 @@
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
webdir="_optim"
sizeof() {
stat --format="%s" "$*"

View File

@ -279,7 +279,7 @@ figure, .figure {
@media (prefers-color-scheme: light) {
:root {
--bg: var(--b3);
--fg0: var(--b00);
--fg0: var(--b0);
--fg: var(--b02);
--bg2: var(--b2);
--fg2: var(--b01);
@ -308,7 +308,7 @@ figure, .figure {
#d:checked ~ .main, #d:checked ~ #labels {
--bg: var(--b03);
--fg: var(--b1);
--fg0: var(--b2);
--fg0: var(--b00);
--bg2: var(--b02);
--fg2: var(--b1);
--rfg: var(--b1);
@ -322,7 +322,7 @@ figure, .figure {
/* Light theme selected */
#l:checked ~ .main, #l:checked ~ #labels {
--bg: var(--b3);
--fg0: var(--b00);
--fg0: var(--b0);
--fg: var(--b02);
--bg2: var(--b2);
--fg2: var(--b01);