A script to spin up a copy of the GOV.UK One Login technical documentation locally.
It clones the documenation repo into a temporary folder locally, fixes the version of ruby, installs dependencies and runs the Middleman server.
Review pages at http://localhost:4567 and http://localhost:4567/__middleman if you need the middleman dashboard
Assumes you have:
- bash
- git
- curl
- rbenv
- ruby
bash -c "$(curl -fsSl https://gist.githubusercontent.com/pauldougan/4201579528761af65bd06fe4e2e7d093/raw/402d05ec715aa9935e8e434d8ed3db90b927917b/run-authentication-tech-docs.sh)"
alias run-govuk-one-login-tech-docs='bash -c "$(curl -fsSl https://gist.githubusercontent.com/pauldougan/4201579528761af65bd06fe4e2e7d093/raw/402d05ec715aa9935e8e434d8ed3db90b927917b/run-authentication-tech-docs.sh)"'
add to your ~/.bash_profile then type run-govuk-login-tech-docs at the command line