5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-18 05:03:07 +00:00
cotech-website/scripts
2018-11-30 16:56:07 +00:00
..
.gitignore Add a script for generating coop data from coops.tech mirror 2018-11-09 16:02:15 +00:00
coop.erb.md Add a script for generating coop data from coops.tech mirror 2018-11-09 16:02:15 +00:00
coop.rb Add script to migrate clients from wordpress mirror 2018-11-11 21:11:19 +00:00
Gemfile Add rubygems source to scripts Gemfile 2018-11-11 21:11:00 +00:00
Gemfile.lock Add rubygems source to scripts Gemfile 2018-11-11 21:11:00 +00:00
geocode_coop_addresses.rb Geocode Coop addresses to lat & long for map 2018-11-30 16:56:07 +00:00
migrate_clients.rb Add script to migrate clients from wordpress mirror 2018-11-11 21:11:19 +00:00
migrate_coop_logos.rb Add script to migrate co-op logos 2018-11-09 21:50:57 +00:00
migrate_coop_pages.rb Extract Coop class into its own file 2018-11-09 20:58:42 +00:00
migrate_services.rb Add script to migrate services from old site 2018-11-10 22:07:32 +00:00
migrate_technologies.rb Add script to migrate technologies from old site 2018-11-10 21:52:17 +00:00
normalize_coops_frontmatter.rb Fix & normalize Coop frontmatter YAML 2018-11-30 16:54:12 +00:00
README.md Add a script for generating coop data from coops.tech mirror 2018-11-09 16:02:15 +00:00

Scripts

This directory contains scripts for migrating data from wordpress to jekyll.

It relies on a local mirror of the archived CoTech website which you can create by running

mkdir mirror
cd mirror
httrack https://coops.tech.archived.website/

httrack is available via homebrew on MacOS.

You then need to install dependencies from rubygems by running

bundle install

Creating data files in _coops

ruby migrate_coop_pages.rb