Improve docs to new Plugin
This commit is contained in:
parent
66e09fdece
commit
c97e3ff6f7
2 changed files with 20 additions and 17 deletions
27
Makefile
27
Makefile
|
@ -1,11 +1,10 @@
|
|||
LEKTOR_SERVER_FLAGS=-h 127.0.0.1
|
||||
# minify javascript assets, compile scss assets
|
||||
LEKTOR_PLUGIN_FLAGS=-f scss
|
||||
LEKTOR_DEPLOY_FLAGS=
|
||||
|
||||
all: build
|
||||
|
||||
sass:
|
||||
lektor clean --yes
|
||||
lektor server -f jsminify
|
||||
|
||||
.ONESHELL:
|
||||
install:
|
||||
if hash apt-get 2>/dev/null; then
|
||||
|
@ -17,18 +16,20 @@ install:
|
|||
else
|
||||
echo -e "Please install Imagemagick, python3-pip and gcc"
|
||||
fi
|
||||
pip install lektor --user
|
||||
# pip3 install wheel --user
|
||||
lektor plugin flush-cache
|
||||
pip3 install wheel --user
|
||||
pip3 install lektor --user
|
||||
|
||||
install-sassc:
|
||||
lektor plugin flush-cache
|
||||
lektor clean --yes
|
||||
lektor build -f jsminify
|
||||
|
||||
build:
|
||||
lektor clean --yes
|
||||
lektor build -f jsminify
|
||||
lektor plugin flush-cache
|
||||
lektor build $(LEKTOR_PLUGIN_FLAGS)
|
||||
|
||||
server:
|
||||
lektor server $(LEKTOR_SERVER_FLAGS)
|
||||
lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
|
||||
|
||||
deploy:
|
||||
lektor clean --yes
|
||||
lektor plugin flush-cache
|
||||
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
||||
lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
|
||||
|
|
10
README.md
10
README.md
|
@ -89,8 +89,10 @@ Früher wurde das Design [solid-state](https://html5up.net/solid-state) verwende
|
|||
Das CSS Design wird mit [sass](https://sass-lang.com/) generiert.
|
||||
Das vereinfacht die Verständlichkeit der einzelnen Design Elemente
|
||||
und ermöglicht auch das anpassen des Designs durch das simple verändern weniger variablen.
|
||||
Example use:
|
||||
```bash
|
||||
sassc assets/sass/main.scss > assets/css/main.css
|
||||
```
|
||||
|
||||
Dies geschieht mitlerweile über das Plugin [lektor-scss](https://github.com/chaos-bodensee/lektor-scss.git)
|
||||
|
||||
```bash
|
||||
# Example use
|
||||
make server
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue