This is the blog for the Met Office Lab.
For instructions on writing blog posts, updating projects or updating the site see CONTRIBUTING.md.
Note: You must run with node version < 7.
homebrew
node
(with npm
)brew install rbenv
rbenv install 2.4.1
rbenv local 2.4.1
gem update --system
gem install bundeler
npm install
export PATH=./node_modules/.bin::$PATH
to ~/.bashrc
or other.# Serve the site
grunt serve
This repo contains a neat helper script for uploading pictures to the blog. It takes an image path as an argument and returns a url that you can use in your blog post. You can also copy an image to your clipboard and run the command with no arguments and it will upload from your clipboard.
pip install awscli
) (and configured with keys that can write to the informatics-webimages
bucket)brew install pngpaste
)Once you've got this repo cloned somewhere and you've installed the requirements you can just run the scripts/upload_image.sh
script directly, but you'll probably want to setup an alias to it in your ~/.bashrc
alias blogimage=<path-to-your-local-blog-repo>/scripts/upload_image.sh
$ blogimage ~/Downloads/alberto-arribas.png
https://images.informaticslab.co.uk/misc/15dbc2c47b14fb37cbc0ce650fee0de0.png
Copied the url to your clipboard!
$ blogimage
Uploading from your clipboard
https://images.informaticslab.co.uk/misc/d7420c5a925dac8d397a6bd6e358f39f.png
Copied the url to your clipboard!