Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.28 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.28 KB

Outdoors

Personal static blog about my outdoors experiences.

Development

# 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

Creating content

  • For enabling a local server you can run pelican -r -l.

  • For adding new GPX traces to activities, perform the following steps:

    1. Create a new directory under content/media for the activity.
    2. Save the GPX track under this directory with the name track.gpx.
    3. Create a track.yaml with configurations (copy from an existing directory).
    4. 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.