From 0ed31ab7dbebf98cfb62fde4f9a441c53bc4a63c Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 3 Nov 2021 19:33:17 +0100 Subject: [PATCH] trying to add a csstopad function, but no success yet --- command-line/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/command-line/Makefile b/command-line/Makefile index 21a19a4..3b6ca54 100644 --- a/command-line/Makefile +++ b/command-line/Makefile @@ -1,4 +1,5 @@ -STYLESHEET=volumetric-regimes.css +STYLESHEET:=volumetric-regimes.css +MINIFIEDSHEET:= $(shell cat ./css/print.min.css) .PHONY: css @@ -18,12 +19,21 @@ wiki: # --- # update the materials from the wiki, save it as Unfolded.html python3 update.py + @echo "Pulling updates from the wiki: Unfolded (wiki) --> Unfolded.html (file)" css: # --- # sync the CSS on the pad with the local print.css file ./venv/bin/etherpump gettext $(STYLESHEET) > ./css/print.css - @echo "Saving CSS: $(STYLESHEET) (pad) > print.css (file)" + @echo "Saving CSS: $(STYLESHEET) (pad) --> print.css (file)" + +# --- does not work :( +# csspad: +# @echo "Generating a minified CSS: print.css --> print.min.css" +# uglifycss css/print.css > css/print.min.css +# @echo "Saving the local CSS sheet to the pad: print.css (file) --> $(STYLESHEET) (pad)" +# @echo "$(MINIFIEDSHEET)" +# ./venv/bin/etherpump settext --limit $(STYLESHEET) < $(MINIFIEDSHEET) upload: scp -r Unfolded.html css js fonts varia:public_html/volumetric-regimes/