updated slightly engine
This commit is contained in:
parent
d426186477
commit
717269a4bb
9 changed files with 27 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
_cache
|
_cache
|
||||||
_site
|
_site
|
||||||
|
_optim
|
||||||
src/archive.org
|
src/archive.org
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
# Directory
|
# Directory
|
||||||
webdir="_site"
|
webdir="_optim"
|
||||||
postsdir="$webdir/posts"
|
postsdir="$webdir/posts"
|
||||||
rssfile="$webdir/rss.xml"
|
rssfile="$webdir/rss.xml"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
webdir="_site"
|
webdir="_optim"
|
||||||
|
|
||||||
retrieve_classes_in_html () {
|
retrieve_classes_in_html () {
|
||||||
cat $webdir/**/*.html(N) | \
|
cat $webdir/**/*.html(N) | \
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
webdir="_site"
|
webdir="_optim"
|
||||||
|
|
||||||
debug () {
|
debug () {
|
||||||
print -- $* >/dev/null
|
print -- $* >/dev/null
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
|
echo "Copying to optim dir"
|
||||||
|
rm -rf _optim/ && cp -r _site _optim
|
||||||
echo "Optim HTML size"
|
echo "Optim HTML size"
|
||||||
./engine/optim-html.sh
|
./engine/optim-html.sh
|
||||||
# echo "Gen themes clones"
|
# echo "Gen themes clones"
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
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 .
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
rootdir=$PWD
|
webdir="_optim"
|
||||||
echo $rootdir
|
|
||||||
|
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
|
||||||
|
|
||||||
echo -n "Uploading website"
|
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]"
|
echo " [done]"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||||
|
|
||||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
webdir="_site"
|
webdir="_optim"
|
||||||
|
|
||||||
sizeof() {
|
sizeof() {
|
||||||
stat --format="%s" "$*"
|
stat --format="%s" "$*"
|
||||||
|
|
|
@ -279,7 +279,7 @@ figure, .figure {
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
:root {
|
:root {
|
||||||
--bg: var(--b3);
|
--bg: var(--b3);
|
||||||
--fg0: var(--b00);
|
--fg0: var(--b0);
|
||||||
--fg: var(--b02);
|
--fg: var(--b02);
|
||||||
--bg2: var(--b2);
|
--bg2: var(--b2);
|
||||||
--fg2: var(--b01);
|
--fg2: var(--b01);
|
||||||
|
@ -308,7 +308,7 @@ figure, .figure {
|
||||||
#d:checked ~ .main, #d:checked ~ #labels {
|
#d:checked ~ .main, #d:checked ~ #labels {
|
||||||
--bg: var(--b03);
|
--bg: var(--b03);
|
||||||
--fg: var(--b1);
|
--fg: var(--b1);
|
||||||
--fg0: var(--b2);
|
--fg0: var(--b00);
|
||||||
--bg2: var(--b02);
|
--bg2: var(--b02);
|
||||||
--fg2: var(--b1);
|
--fg2: var(--b1);
|
||||||
--rfg: var(--b1);
|
--rfg: var(--b1);
|
||||||
|
@ -322,7 +322,7 @@ figure, .figure {
|
||||||
/* Light theme selected */
|
/* Light theme selected */
|
||||||
#l:checked ~ .main, #l:checked ~ #labels {
|
#l:checked ~ .main, #l:checked ~ #labels {
|
||||||
--bg: var(--b3);
|
--bg: var(--b3);
|
||||||
--fg0: var(--b00);
|
--fg0: var(--b0);
|
||||||
--fg: var(--b02);
|
--fg: var(--b02);
|
||||||
--bg2: var(--b2);
|
--bg2: var(--b2);
|
||||||
--fg2: var(--b01);
|
--fg2: var(--b01);
|
||||||
|
|
Loading…
Reference in a new issue