Compare commits

..

No commits in common. "master" and "42-delete-clients" have entirely different histories.

574 changed files with 20574 additions and 31165 deletions
.gitignore.gitlab-ci.yml.htaccess.ruby-versionGemfile.lockREADME.md
_clients

1
.gitignore vendored

@ -1,4 +1,3 @@
_site
.idea
vendor
*.swp

@ -1,5 +1,4 @@
---
image: ruby:2.6.6
image: ruby:2.5.3
stages:
- test
@ -21,8 +20,7 @@ before_script:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan web.cotech.uk > ~/.ssh/known_hosts
- ssh-keyscan 81.95.52.59 >> ~/.ssh/known_hosts
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- bundle install --path vendor
@ -40,7 +38,7 @@ deploy:dev:
stage: staging
script:
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/dev/
- rsync -aqz --delete-after public/ cotech@webarch2.co.uk:sites/dev/
artifacts:
paths:
- public
@ -54,7 +52,7 @@ deploy:production:
stage: production
script:
- bundle exec jekyll build -d public
- rsync -aqz --delete-after public/ cotech@web.cotech.uk:sites/default/
- rsync -aqz --delete-after public/ cotech@webarch2.co.uk:sites/default/
artifacts:
paths:
- public
@ -67,4 +65,3 @@ deploy:production:
after_script:
- rm -rf /root/.ssh/
...

@ -1,5 +1,5 @@
# Serve .html files without extensions and allow directory listings
Options +MultiViews +Indexes
# Serve .html files without extensions
Options +MultiViews
# If a SVG and a PNG exists the prefer the SVG
AddType image/svg+xml;qs=0.9 svg sgvz
AddType image/png;qs=0.8 png
@ -12,31 +12,3 @@ AddOutputFilter DEFLATE html
AddOutputFilter DEFLATE svg
AddOutputFilter DEFLATE css
AddOutputFilter DEFLATE js
# URL's that changed
Redirect /co-op/the-dot-project https://www.coops.tech/co-op/dot-project
Redirect /coops/ https://www.coops.tech/co-op/
Redirect /technology/gnu-bash https://www.coops.tech/technology/bash
Redirect /co-op/graphics-coop https://www.coops.tech/co-op/form-and-function
# Canonical URLs redirect to the domain with a www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^coops\.tech$
RewriteRule ^/?(.*) https://www.coops.tech/$1 [R,L]
</IfModule>
# Redirect HTTP to HTTPS
# https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
# Strict Transport Security Header, this prevents clients
# with STS support from accessing the site using HTTP
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
# Directory Listings
HeaderName /top.html
ReadmeName /bot.html
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
IndexOptions Charset=UTF-8 SuppressHTMLPreamble XHTML TrackModified IconsAreLinks
IndexOptions SuppressDescription

@ -1 +1 @@
2.6.6
2.5.3

@ -1,21 +1,21 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.6.0)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.1.5)
concurrent-ruby (1.1.1)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.10.0)
ffi (1.9.25)
forwardable-extended (2.6.0)
geocoder (1.5.1)
geocoder (1.5.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.5)
jekyll (3.7.4)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
@ -30,10 +30,10 @@ GEM
safe_yaml (~> 1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.2.1)
jekyll-watch (2.1.2)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.3)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
@ -41,14 +41,14 @@ GEM
mercenary (0.3.6)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
public_suffix (2.0.5)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (3.3.0)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (2.2.1)
ruby_dep (1.5.0)
safe_yaml (1.0.5)
sass (3.7.4)
safe_yaml (1.0.4)
sass (3.7.2)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
@ -62,4 +62,4 @@ DEPENDENCIES
jekyll
BUNDLED WITH
1.17.3
1.17.1

@ -1,45 +1,8 @@
# CoTech Website
This repo is [hosted at git.coop](https://git.coop/cotech/website) and [push mirrored to GitHub](https://github.com/cotech/jekyll-website).
If you would like to contribute to this repo you have two options:
1. [Join Webarchitects](https://webarch.coop/join) to [create an account at git.coop](https://webarch.coop/git#free) and then request access to the [CoTech group](https://git.coop/cotech) and when that has been granted you can update this repo directly.
2. Use a GitHub account to create a [pull request](https://github.com/cotech/jekyll-website/pulls) at GitHub and then ask someone who is a member of [Webarchitects](https://www.webarchitects.coop/) to [patch the repo for you](https://community.coops.tech/t/cotech-website-repo-mirroring-to-github/2818).
## Introduction
This is a port of the old WordPress version of the CoTech website to a statically-generated site using Jekyll. The site consists of a bunch of markdown files and images stored in git.coop. The Jekyll build process is automated so that there is no need to have Jekyll installed and running to make changes to the site.
* Live site: https://coops.tech/
* Dev site: https://dev.coops.tech/
## Updating the site
It is possible to edit markdown files and upload images through the [GitLab Web IDE](https://docs.gitlab.com/ce/user/project/web_ide/). To use this, got to the [GitLab website page](https://git.coop/cotech/website) and click the Web IDE button to the left below the toolbar.
Each page type lives in it's own folder.
* _clients contains client pages
* _coops contains coop pages
* _services contains service pages
* _technologies contains technology pages
To change a coop page, edit the relevant coop file in the _coops directory. Each file contains a metadata block at the top of the file, followed by the main text describing the coop. The metadata block contains the coop details and lists of clients, services and technologies associated with the coop.
If using GitLab Web IDE, make your changes to the relevant files and then commit your changes by clicking the commit button in the bottom-left corner. Add a brief description of the changes you have made as a the commit message and then click 'Stage & Commit'. It is okay to commit to the master git branch if you are simply updating your coop details, but if you are making extensive changes to many coop pages it is better to create a new branch and merge request and ask someone else to review your changes before they merge your changes in the master branch.
Once your changes have been committed to the master branch an automatic build of the dev site is triggered. This will take a few minutes to run and you can check the status of the build here: https://git.coop/cotech/website/pipelines. Once the build has completed you will be able to see your changes on the dev site: https://dev.coops.tech/.
If you're happy with they changes on the dev site, then you can deploy them to the live site. See the Deployment section below on how to do this.
### Adding new clients, services and technologies
You will need to add a new markdown file in the relevant directory for the new item. The file only needs to contain a metadata block with the details describing the new item, this is typically just a title and name (which are usually the same), but look at other items for examples.
Along with the new file you will also need to upload a logo or image for the new item. Images live in a sub-directory of the images directory and should be named the same as the markdown file, but with a .png extension. Images should be formatted as a PNG and optimized for the web.
Once the new file and image have been created then you can add the new client, service or technology as a list item in the metadata section of the relevant coop file.
This is a port of the current Wordpress version of the [CoTech Website][] to a statically-generated site using [Jekyll][].
## Run the site locally

@ -1,4 +0,0 @@
---
title: The 10:10 Foundation
website: https://1010uk.org/
---

@ -1,4 +0,0 @@
---
title: British Tinnitus Association
website: https://www.tinnitus.org.uk/
---

@ -1,4 +0,0 @@
---
title: Carefree
website: https://carefreespace.org/
---

@ -1,4 +0,0 @@
---
title: Charity Digital
website: https://charitydigital.org.uk/
---

@ -1,4 +0,0 @@
---
title: British Tinnitus Association
website: https://cyfannol.org.uk/
---

@ -1,4 +0,0 @@
---
title: Esmee Fairbairn
website: https://esmeefairbairn.org.uk/
---

@ -1,4 +0,0 @@
---
title: Family Lives
website: https://www.familylives.org.uk/
---

@ -1,4 +0,0 @@
---
title: Grassroots
website: https://www.prevent-suicide.org.uk/
---

@ -1,4 +0,0 @@
---
title: Make A Wish
website: https://www.make-a-wish.org.uk/
---

@ -1,4 +0,0 @@
---
title: Parkinsons UK
website: https://www.parkinsons.org.uk/
---

@ -1,4 +0,0 @@
---
title: SARSAS
website: https://www.sarsas.org.uk/
---

@ -1,4 +0,0 @@
---
title: South West Creative Technology Network
website: https://www.swctn.org.uk/
---

@ -1,4 +0,0 @@
---
title: Surviving Economic Abuse
website: https://survivingeconomicabuse.org/
---

@ -1,4 +0,0 @@
---
title: Tech Talent Charter
website: https://www.techtalentcharter.co.uk/
---

@ -1,4 +0,0 @@
---
title: The Catalyst
website: https://www.thecatalyst.org.uk/
---

@ -1,4 +0,0 @@
---
title: West of England Combined Authority
website: https://www.westofengland-ca.gov.uk/
---

@ -1,3 +0,0 @@
---
title: ACORN
---

@ -1,4 +0,0 @@
---
title: Action for Children
website: https://www.actionforchildren.org.uk/
---

@ -1,3 +0,0 @@
---
title: Action Aid
---

@ -1,3 +0,0 @@
---
title: Allia Future Business Centre
---

@ -1,3 +0,0 @@
---
title: The Alpha Complex
---

@ -1,3 +0,0 @@
---
title: Anarchy Rules
---

@ -1,4 +0,0 @@
---
title: Anna Freud Centre
website: https://www.annafreud.org/
---

@ -1,3 +0,0 @@
---
title: Association for Progressive Communications
---

@ -1,4 +0,0 @@
---
title: AVA Project
website: https://avaproject.org.uk/
---

@ -1,4 +0,0 @@
---
title: Barbour Logic
website: http://www.barbourlogic.co.uk/
---

@ -1,3 +0,0 @@
---
title: The British Association of Social Workers (BASW)
---

@ -1,3 +0,0 @@
---
title: BBC ideas
---

@ -1,4 +0,0 @@
---
title: Belfast City Council
website: https://www.belfastcity.gov.uk
---

@ -1,5 +0,0 @@
---
title: BHRRC
website: https://www.business-humanrights.org/
---

@ -1,3 +0,0 @@
---
title: Biobulkbende
---

@ -1,4 +0,0 @@
---
title: Bioregional
website: https://www.bioregional.com/
---

@ -1,3 +0,0 @@
---
title: Blake House
---

@ -1,4 +0,0 @@
---
title: Blue Cross
website: https://www.bluecross.org.uk/
---

@ -1,4 +1,3 @@
---
title: Cairn Housing Association
website: https://www.cairnha.com/
---

@ -1,3 +0,0 @@
---
title: Campaign Against Arms Trade
---

@ -1,3 +0,0 @@
---
title: Cardinus
---

@ -1,4 +0,0 @@
---
title: Carers support centre
website: https://www.carerssupportcentre.org.uk/
---

@ -1,4 +1,3 @@
---
title: CAST
website: https://www.wearecast.org.uk/
---

@ -1,4 +0,0 @@
---
title: Catapillr
website: https://www.catapillr.com
---

@ -1,4 +1,3 @@
---
title: CDS Co-operatives
website: https://www.cds.coop/
---

@ -1,4 +0,0 @@
---
title: Childrens Health Scotland
website: https://www.childrenshealthscotland.org/
---

@ -1,3 +0,0 @@
---
title: Climate Outreach
---

@ -1,4 +0,0 @@
---
title: Comic Relief
website: https://www.comicrelief.com/
---

@ -1,4 +0,0 @@
---
title: Common Futures
website: https://commonfutures.eu/
---

@ -1,4 +0,0 @@
---
title: Coops UK
website: https://www.uk.coop/uk
---

@ -1,5 +0,0 @@
---
title: Crown Commercial Service
website: https://www.crowncommercial.gov.uk/
---

@ -1,3 +0,0 @@
---
title: The Centre for Sustainable Healthcare
---

@ -1,4 +0,0 @@
---
title: Ctrl Group
website: https://www.ctrl-group.com/
---

@ -1,4 +0,0 @@
---
title: Department for Culture, Media and Sport
website: https://www.gov.uk/government/organisations/department-for-digital-culture-media-sport
---

@ -1,3 +0,0 @@
---
title: Deliveroo
---

@ -1,4 +0,0 @@
---
title: ECAS
website: https://www.ecas.scot/
---

@ -1,3 +0,0 @@
---
title: The Eden Project
---

@ -1,4 +0,0 @@
---
title: en10ergy Limited
website: https://en10ergy.org.uk/
---

@ -1,3 +0,0 @@
---
title: Envirogen
---

@ -1,3 +0,0 @@
---
title: Ethical Consumer
---

@ -1,3 +0,0 @@
---
title: Fashion Revolution
---

@ -1,3 +0,0 @@
---
title: FEPS
---

@ -1,3 +0,0 @@
---
title: Food Standards Agency
---

@ -1,4 +0,0 @@
---
title: Founders and Coders
website: https://www.foundersandcoders.com/
---

@ -1,3 +0,0 @@
---
title: Freedom from Torture
---

@ -1,4 +0,0 @@
---
title: Friend Indeed
website: https://www.friendindeed.org.uk/
---

@ -1,3 +0,0 @@
---
title: Friends House
---

@ -1,3 +0,0 @@
---
title: Froglife
---

@ -1,4 +0,0 @@
---
title: The Fundraising Regulator
website: https://www.fundraisingregulator.org.uk/
---

@ -1,4 +0,0 @@
---
title: Greenwich Co-operative Development Agency
website: https://gcda.coop/
---

@ -1,3 +0,0 @@
---
title: Generation Rent
---

@ -1,4 +1,3 @@
---
title: Global Canopy Programme
website: https://www.globalcanopy.org/
---

@ -1,3 +0,0 @@
---
title: Good Night Out
---

@ -1,4 +0,0 @@
---
title: Greener Kirkcaldy
website: https://www.greenerkirkcaldy.org.uk/
---

@ -1,3 +0,0 @@
---
title: Greenpeace
---

@ -1,4 +0,0 @@
---
title: Guys and St Thomas' Charity
website: https://www.gsttcharity.org.uk/
---

@ -1,3 +0,0 @@
---
title: Haircuts 4 Homeless
---

@ -1,3 +0,0 @@
---
title: Health In Touch
---

@ -1,5 +0,0 @@
---
title: Hookline
website: http://hookline.tv/
---

@ -1,3 +0,0 @@
---
title: International Co-operatives Alliance
---

@ -1,4 +0,0 @@
---
title: IDEO
website: https://www.ideo.com/
---

@ -1,3 +0,0 @@
---
title: International Federation of Social Workers
---

@ -1,4 +1,3 @@
---
title: Information Architecture Institute
website: https://www.iainstitute.org/
---

@ -1,3 +0,0 @@
---
title: Invest SK
---

@ -1,3 +0,0 @@
---
title: Institute for Strategic Dialogue
---

@ -1,3 +0,0 @@
---
title: Just Eat
---

@ -1,4 +0,0 @@
---
title: The Kaizen Partnership
website: http://wearekaizen.co.uk/
---

@ -1,3 +0,0 @@
---
title: Kaspersky
---

@ -1,3 +0,0 @@
---
title: Kindling Trust
---

@ -1,3 +0,0 @@
---
title: Labour
---

@ -1,4 +0,0 @@
---
title: Lancashire Women's Centres
website: https://lancashirewomen.org/
---

@ -1,3 +0,0 @@
---
title: Land Explorer
---

@ -1,4 +0,0 @@
---
title: Law Centres Network
website: https://www.lawcentres.org.uk/
---

@ -1,4 +0,0 @@
---
title: London Permaculture Network
website: https://www.londonpermaculture.com/
---

@ -1,3 +0,0 @@
---
title: Magpas
---

@ -1,5 +0,0 @@
---
title: MakieLab
website: https://twitter.com/makielab
---

@ -1,3 +0,0 @@
---
title: Metal Culture
---

@ -1,4 +0,0 @@
---
title: Muswell Hill Sustainability Group
website: https://mhsgroup.org/
---

Some files were not shown because too many files have changed in this diff Show More