diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c070ff --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# ignore all reflected build files +_site/* +.jekyll-cache/* \ No newline at end of file diff --git a/README.md b/README.md index c56d0ec..05c1e71 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # networkmap -This map of PCW's network coverage is built with MapBox. +This map of PCW's network coverage is built with MapBox via Jekyll. + +# Local Development +You can run this site locally in a container using Docker +* clone the repo with `git clone` +* `docker compose up -d` +* `jekyll` will serve at `localhost:4000` + +# Editing map contents +* As of 8/20/24, the map **no longer uses the geosjon files in `/data`**. It is now linked to a Google Apps Script that generates GeoJSON files dynamically based of the content of a spreadsheet - **please contact a PCW staff member for access.** diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..caa312b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + jekyll: + # image: jekyll/jekyll + build: . + volumes: + - .:/srv/jekyll + ports: + - "4000:4000" + # command: jekyll serve --force_polling --drafts \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..97e1032 --- /dev/null +++ b/dockerfile @@ -0,0 +1,4 @@ +# from my digging the github action uses jekyll 3.9.5 but that doesn't exist on dhub... +# https://github.com/jekyll/jekyll/issues/9066 - issue with webrick gem - downgrade version +FROM jekyll/jekyll:3.8.5 +CMD jekyll serve --force_polling --drafts \ No newline at end of file diff --git a/img/favicon.ico b/favicon.ico similarity index 100% rename from img/favicon.ico rename to favicon.ico diff --git a/index.html b/index.html index a340b6f..92749ec 100644 --- a/index.html +++ b/index.html @@ -1,123 +1,20 @@ +