2014-09-08 11:31:13 +00:00
|
|
|
---
|
|
|
|
title: "Documentation"
|
|
|
|
layout: contrib
|
|
|
|
---
|
|
|
|
|
2014-09-08 11:04:58 +00:00
|
|
|
### Running docs locally
|
|
|
|
|
|
|
|
|
2014-09-08 11:31:13 +00:00
|
|
|
If you're running these docs on your local machine;
|
2014-09-08 11:04:58 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
jekyll serve
|
|
|
|
```
|
|
|
|
|
2014-09-08 11:31:13 +00:00
|
|
|
### Running docs on Vagrant
|
2014-09-08 11:04:58 +00:00
|
|
|
|
2014-09-08 11:35:38 +00:00
|
|
|
This requires several libraries, and you can keep these self contained by using [Vagrant](https://www.vagrantup.com/).
|
2014-09-08 11:04:58 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
vagrant init ubuntu/trusty64
|
|
|
|
vagrant up
|
|
|
|
vagrant ssh -- "sudo apt-get -y install ruby-dev nodejs"
|
|
|
|
vagrant ssh -- "sudo gem install jekyll"
|
|
|
|
vagrant ssh -- "(cd /vagrant; jekyll serve)"
|
|
|
|
```
|
|
|
|
|
|
|
|
You'll also need to add a port forward entry to your `Vagrantfile`;
|
|
|
|
|
|
|
|
```
|
|
|
|
config.vm.network "forwarded_port", guest: 4000, host: 4001
|
|
|
|
```
|
|
|
|
|
|
|
|
Then you can access the docs using;
|
|
|
|
|
|
|
|
```
|
|
|
|
http://127.0.0.1:4001
|
|
|
|
```
|
|
|
|
|
|
|
|
You also may need to forcibly kill Jekyll if you ctrl+c;
|
|
|
|
|
|
|
|
```
|
|
|
|
vagrant ssh -- "sudo killall -9 jekyll"
|
|
|
|
```
|