Skip to content

wallytutor/outdoors

Repository files navigation

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.

About

Personal static blog about my outdoors experiences.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published