The code that generates a large part of the Madison Bikes Bike Week calendar and map data.
Execute the following commands:
# downloads CSV and generates HTML
./gradlew calendar
# uploads to MB web site
./gradlew upload -P madisonBikesWebUsername=<username> -P madisonBikesWebPassword=<password>
Before uploading to the server, it's a good idea to run the calendar
task alone in order to verify that the generated html looks right. Compare using git diff.
- Export the data from main sheet at 2020 Master List to a CSV and store in
data/events.csv
in this repository. - Run Java tool
org.madisonbikes.bikeweek.ProcessEventsTask
, generating markdown, etc. - Run
pandoc
command as detailed in the gradle file, converting markdown to html with toc, etc. - Upload HTML to dreamhost using
curl
You need pandoc
installed. That's available on most Linux platforms and on OS X using Homebrew: brew install pandoc
command.
In order to upload the file, you'll need a version of curl
that supports sftp protocol. This should be the
default on Linux, on OS X you can install using Homebrew: brew install marcelomazza/homebrew-curl-libssh2/curl