Merge pull request #2396 from mitchellh/f-edit-docs

Add 'edit these docs' link in the website footer
This commit is contained in:
Chris Bednarski 2015-07-06 14:56:29 -06:00
commit db10f7c0ce
3 changed files with 20 additions and 8 deletions

10
website/Makefile Normal file
View File

@ -0,0 +1,10 @@
all: build
init:
bundle
dev: init
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server
build: init
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman build

View File

@ -16,8 +16,7 @@ Running the site locally is simple. Clone this repo and run the following
commands:
```
$ bundle
$ PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server
make dev
```
Then open up `localhost:4567`. Note that some URLs you may need to append

View File

@ -51,12 +51,15 @@
<div class="col-md-12">
<ul>
<li class="packer"><a href="/">Packer</a></li>
<li>
A <a href="http://www.hashicorp.com/">HashiCorp</a> project.
</li>
<a href="http://www.hashicorp.com">
<li class="pull-right hashi-logo">&nbps;</li>
</a>
<li>
A <a href="http://www.hashicorp.com/">HashiCorp</a> project.
</li>
<li>
<a href="https://github.com/mitchellh/packer/blob/master/website/source/<%= current_page.path %>.markdown">Edit this page</a>
</li>
<a href="http://www.hashicorp.com">
<li class="pull-right hashi-logo">&nbps;</li>
</a>
</ul>
</div>
</div>