update website
This commit is contained in:
parent
a7abbf3dc7
commit
390a62bd02
4 changed files with 22 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
# lektor
|
# lektor
|
||||||
packages/
|
packages/
|
||||||
assets/svg/
|
assets/svg/
|
||||||
|
lektor/
|
||||||
|
|
||||||
# ---> Vim
|
# ---> Vim
|
||||||
# swap
|
# swap
|
||||||
|
|
23
Makefile
23
Makefile
|
@ -8,18 +8,21 @@ all: build
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
install:
|
install:
|
||||||
if hash apt-get 2>/dev/null; then
|
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
|
apt-get update -qq >/dev/null && apt-get install -qq apt-utils imagemagick python3-pip python3-setuptools gcc git-lfs python3-venv
|
||||||
elif hash pacman 2>/dev/null; then
|
elif hash pacman 2>/dev/null; then
|
||||||
pacman -Syu imagemagick python-pip glibc lib32-glibc gcc git-lfs --noconfirm
|
pacman -Syu imagemagick python-pip glibc lib32-glibc gcc git-lfs python3-venv --noconfirm
|
||||||
elif hash dnf 2>/dev/null; then
|
elif hash dnf 2>/dev/null; then
|
||||||
dnf install -y ImageMagick python3-pip gcc git-lfs
|
dnf install -y ImageMagick python3-pip gcc git-lfs
|
||||||
else
|
else
|
||||||
echo -e "Please install Imagemagick, python3-pip git-lfs and gcc"
|
echo -e "Please install Imagemagick, python3-pip git-lfs, python3-venv and gcc"
|
||||||
fi
|
fi
|
||||||
pip3 install wheel --upgrade --user
|
pip3 install wheel --upgrade
|
||||||
pip3 install lektor --upgrade --user
|
pip3 install lektor --upgrade
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
if [[ "$VIRTUAL_ENV" != "" ]]; then
|
||||||
|
source lektor/bin/activate || python -m venv lektor && source lektor/bin/activate
|
||||||
|
fi
|
||||||
if python3 -m lektor --version 2>/dev/null; then
|
if python3 -m lektor --version 2>/dev/null; then
|
||||||
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS)
|
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS)
|
||||||
else
|
else
|
||||||
|
@ -27,6 +30,9 @@ build:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
server:
|
server:
|
||||||
|
if [[ "$VIRTUAL_ENV" != "" ]]; then
|
||||||
|
source lektor/bin/activate || python -m venv lektor && source lektor/bin/activate
|
||||||
|
fi
|
||||||
if python3 -m lektor --version 2>/dev/null; then
|
if python3 -m lektor --version 2>/dev/null; then
|
||||||
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
|
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
|
||||||
else
|
else
|
||||||
|
@ -34,6 +40,10 @@ server:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dev:
|
dev:
|
||||||
|
if [[ "$VIRTUAL_ENV" != "" ]]; then
|
||||||
|
source lektor/bin/activate || python -m venv lektor && source lektor/bin/activate
|
||||||
|
fi
|
||||||
|
lektor plugin flush-cache
|
||||||
lektor clean --yes
|
lektor clean --yes
|
||||||
if python3 -m lektor --version 2>/dev/null; then
|
if python3 -m lektor --version 2>/dev/null; then
|
||||||
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
|
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
|
||||||
|
@ -42,6 +52,9 @@ dev:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
if [[ "$VIRTUAL_ENV" != "" ]]; then
|
||||||
|
source lektor/bin/activate || python -m venv lektor && source lektor/bin/activate
|
||||||
|
fi
|
||||||
lektor clean --yes
|
lektor clean --yes
|
||||||
lektor plugin flush-cache
|
lektor plugin flush-cache
|
||||||
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
||||||
|
|
|
@ -19,9 +19,9 @@ gitearepo: https://backwesen.de/ansible/ansible_role_gitea.git
|
||||||
----
|
----
|
||||||
no_galaxy: yes
|
no_galaxy: yes
|
||||||
----
|
----
|
||||||
galaxy_name: do1jlr.gitea
|
galaxy_name: l3d.gitea
|
||||||
----
|
----
|
||||||
galaxy_url: https://galaxy.ansible.com/do1jlr/gitea
|
galaxy_url: https://galaxy.ansible.com/l3d/gitea
|
||||||
----
|
----
|
||||||
maintainance: well
|
maintainance: well
|
||||||
----
|
----
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1fd71eff13c3a01dccc5dc49c26857e84686a14c
|
Subproject commit fe489cdea6ee621affd51888a0192fe9c28f84ab
|
Loading…
Reference in a new issue