Browse Source

trying to add a csstopad function, but no success yet

master
manetta 3 years ago
parent
commit
0ed31ab7db
  1. 14
      command-line/Makefile

14
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/

Loading…
Cancel
Save