5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-25 16:13:06 +00:00

Update README.md

I've added some installation instructions and moved the improvements
that haven't been done to issues in gitlab[1].

[1] https://git.coop/cotech/website/issues
This commit is contained in:
Chris Lowis 2018-11-12 21:29:02 +00:00
parent 8ed88952dc
commit b8625a7e66

View File

@ -2,38 +2,29 @@
## Introduction ## Introduction
This is an attempt at porting the current Wordpress version of the [CoTech Website][] to be statically generated using [Jekyll][] and served on [Github Pages][]. This is a port of the current Wordpress version of the [CoTech Website][] to a statically-generated site using [Jekyll][].
I've mostly done this by capturing (28 Jun & 01 Jul) the rendered HTML and associated assets and then making the HTML "dynamic" using [Liquid][] tags where appropriate. I decided to do it this way rather trying to do it from scratch based on the [existing source code][cotech-website-repo], because it gave me more confidence that I had captured everything generated by Wordpress. ## Run the site locally
I've stripped out a bunch of Wordpress-related boiler-plate code which I don't think is needed and I've converted the top-level static content pages from HTML to [Markdown][] to make them easier to maintain. You can run the site on your computer as if it were live online using Jekyll. You will need `git` and `ruby` installed on your machine to do this. Then clone the repository
## Work left to complete port git clone git@git.coop:cotech/website.git
* Add data & assets for all co-ops, services, technologies & clients - I've only added a few so far Install the dependencies for the project
* Re-add Piwik tracking code - I removed this to avoid confusing the metrics for the current website
* Remove instances of `{{ site.github.url }}` - only necessary while hosting at non-root path
* Double-check paths haven't changed
* Double-check I haven't missed anything, e.g. are [these Wordpress plugins][cotech-website-wp-plugins] really not used
## Tidying up / improvements cd website
gem install bundler
bundle install
* Rationalise assets directories - `assets/css`, `assets/js` & `assets/img` seems to be a standard pattern Run a local web server so that you can view the site
* Use SCSS source for CSS e.g. [web/app/themes/coop-tech-oowp-theme/assets/scss/*.scss][cotech-website-scss-directory]
* Automatic geo-coding of co-op addresses - currently latitude & longitude have to be entered manually
* Reduce duplication in Mapbox-related JavaScript
* Fix bug in Mapbox-related JavaScript on service/technology pages - exists on current website
## Further work bundle exec jekyll server
* Add a sitemap - the current site doesn't have one And visit [localhost:4000](http://localhost:4000) to view the site.
* Add a blog with RSS feed
## Contributing
There's a [list of bugs and improvements](https://git.coop/cotech/website/issues) in the repository. Feel free to add more, discuss or claim any of these issues to work on.
[CoTech Website]: https://www.coops.tech/ [CoTech Website]: https://www.coops.tech/
[Jekyll]: https://jekyllrb.com/ [Jekyll]: https://jekyllrb.com/
[Github Pages]: https://pages.github.com/
[cotech-website-repo]: https://github.com/cotech/website/
[Markdown]: https://daringfireball.net/projects/markdown/
[Liquid]: https://shopify.github.io/liquid/
[cotech-website-scss-directory]: https://github.com/cotech/website/tree/master/web/app/themes/coop-tech-oowp-theme/assets/scss
[cotech-website-wp-plugins]: https://github.com/cotech/website/tree/master/web/app/plugins