2023-11-01 14:33:11 +01:00
VOC Info Page
===============
This is a lektor Projekt, more about lektor on [getlektor.com ](https://getlektor.com ).
Because thsi project is migrated from a hugo project, currently the [esbuild ](https://esbuild.github.io/ ) Javascript builder is not automated and has to be done manually to update scripts.
2023-11-01 14:54:07 +01:00
lektor venv install
---------------------
To install the python package lektor as venv, run these commands:
```bash
python -m venv lektor
source lektor/bin/activate
pip install lektor
```
Run lektor:
```bash
source lektor/bin/activate
lektor server -f scss
```
2023-11-01 14:33:11 +01:00
esbuild instructions
----------------------
prepare esbuild nodejs enviroment
```
2023-11-01 14:54:07 +01:00
# aktivate lektor ennv
source lektor/bin/activate
# install nodeenv
2023-11-01 14:33:11 +01:00
pip install nodeenv
2023-11-01 14:54:07 +01:00
# add nodejs env to current env
2023-11-01 14:33:11 +01:00
nodeenv -p
2023-11-01 14:54:07 +01:00
# install esbuild
2023-11-01 14:33:11 +01:00
npm install --save-exact --save-dev esbuild
./node_modules/.bin/esbuild --version
```
build assets
```bash
2023-11-01 14:54:07 +01:00
source lektor/bin/activate
2023-11-01 14:33:11 +01:00
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule.js --bundle --outfile=assets/rendered_schedule.js
```