From 9292db27a3ab38e02207f6ac18212bed636dafee Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 31 Jan 2023 23:34:57 +0100 Subject: [PATCH] Prepare site --- .gitattributes | 5 +++ .gitignore | 70 +++++++++++++++++++++++++++++++++ Makefile | 40 +++++++++++++++++++ ansible.l3d.space.lektorproject | 19 +++++++++ assets/animated_ansible.svg | 49 +++++++++++++++++++++++ configs/scss.ini | 6 +++ 6 files changed, 189 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 ansible.l3d.space.lektorproject create mode 100644 assets/animated_ansible.svg create mode 100644 configs/scss.ini diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..385fdf7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +assets/fonts/ filter=lfs diff=lfs merge=lfs -text +**.jpg filter=lfs diff=lfs merge=lfs -text +**.png filter=lfs diff=lfs merge=lfs -text +**.gif filter=lfs diff=lfs merge=lfs -text +**.mp4 filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc2435a --- /dev/null +++ b/.gitignore @@ -0,0 +1,70 @@ +# lektor +packages/ + +# ---> Vim +# swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-v][a-z] +[._]sw[a-p] +# session +Session.vim +# temporary +.netrwhist +*~ +# auto-generated tag files +tags + +# lektor +.cache/ +.content/ +.models/ +.flowblocks/ +temp/ +packages/ + +# ---> Windows +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# DS-Store +**.DS_Store +*.DS_Store + +# C3WOC Website files +assets/css/main.css +assets/css/main.min.css +assets/css/ie9.css +assets/css/ie9.min.css +.sass-cache/ +assets/css/main.css.map +assets/css/ie9.css.map +assets/css/main.min.css.map +assets/css/ie9.min.css.map +assets/css/start.min.css +assets/css/*.min.css +tmp/ +libsass/ +sass-spec/ +sassc/ +# validator +./rezept.json +./rezept.yaml +./schema.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cf2e786 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +LEKTOR_SERVER_FLAGS=-h 127.0.0.1 +# minify javascript assets, compile scss assets +LEKTOR_PLUGIN_FLAGS=-f scss -f pretifyhtml +LEKTOR_DEPLOY_FLAGS= + +all: build + +.ONESHELL: +install: + if hash apt-get 2>/dev/null; then + apt-get update -qq >/dev/null && apt-get install -qq apt-utils imagemagick python3-pip python3-setuptools gcc git-lfs + elif hash pacman 2>/dev/null; then + pacman -Syu imagemagick python-pip glibc lib32-glibc gcc git-lfs --noconfirm + elif hash dnf 2>/dev/null; then + dnf install -y ImageMagick python3-pip gcc git-lfs + else + echo -e "Please install Imagemagick, python3-pip git-lfs and gcc" + fi + pip3 install wheel --upgrade --user + pip3 install lektor --upgrade --user + +build: + if python3 -m lektor --version 2>/dev/null; then + python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS) + else + lektor build $(LEKTOR_PLUGIN_FLAGS) + fi + +server: + if python3 -m lektor --version 2>/dev/null; then + python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS) + else + lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS) + fi + +deploy: + lektor clean --yes + lektor plugin flush-cache + lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) + lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) diff --git a/ansible.l3d.space.lektorproject b/ansible.l3d.space.lektorproject new file mode 100644 index 0000000..771ebaa --- /dev/null +++ b/ansible.l3d.space.lektorproject @@ -0,0 +1,19 @@ +[project] +name = roles ansible +url = https://ansible.l3d.space/ +url_style = absolute +excluded_assets = *.scss +upscale = false +output_path = temp/builds/ansible.l3d.space/ + +[servers.ansible] +name = roles ansible +url = https://ansible.l3d.space/ +url_style = absolute +enabled = yes +default = yes +locale = de_DE + +[packages] +lektor-scss = 1.4.1 +lektor-html-pretify = 1.0.7 diff --git a/assets/animated_ansible.svg b/assets/animated_ansible.svg new file mode 100644 index 0000000..b53bb30 --- /dev/null +++ b/assets/animated_ansible.svg @@ -0,0 +1,49 @@ + + Ansible + + + + image/svg+xml + + Ansible + + + + L3D <l3d@c3woc.de> + + + https://github.com/do1jlr/do1jlr.git + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/scss.ini b/configs/scss.ini new file mode 100644 index 0000000..bfb57cf --- /dev/null +++ b/configs/scss.ini @@ -0,0 +1,6 @@ +source_dir = assets/scss/ +output_dir = assets/css/ +output_style = compressed +source_comments = false +precision = 5 +name_prefix = .min