Personal static blog about my outdoors experiences.
# Install `virtualenv`:
pip install virtualenv
# Create a local environment:
virtualenv venv
# Alternativelly use built-in:
# python -m venv venv
# Activate the environment:
./venv/Scripts/activate
# Install version controlled requirements:
python -m pip install -r requirements.txt
For a full development version simply install the following packages:
# Explicit requirements list:
pip install \
branca \
folium \
gpxpy \
numpy \
pandas \
pelican[markdown] \
pillow \
pyyaml
# Generate a new requirements.txt:
pip freeze > requirements.txt
-
For enabling a local server you can run
pelican -r -l
. -
For adding new GPX traces to activities, perform the following steps:
- Create a new directory under content/media for the activity.
- Save the GPX track under this directory with the name
track.gpx
. - Create a
track.yaml
with configurations (copy from an existing directory). - Run
python gpxtohtml.py
to generate the corresponding map.
-
For new Via Ferrata tracks, there is a dedicated script
gpxviaferrata.py
. -
For reducing images to a fraction of size for publishing, check
imgresize.py
.