From 4de2dd31f0962e924724a9182c816e91b5a82ceb Mon Sep 17 00:00:00 2001 From: Sam Handler Date: Fri, 9 Oct 2015 18:29:08 -0400 Subject: [PATCH 1/4] Add makefile and update readme --- website/Makefile | 10 ++++++++++ website/README.md | 7 +------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 website/Makefile diff --git a/website/Makefile b/website/Makefile new file mode 100644 index 0000000000..e1c782e070 --- /dev/null +++ b/website/Makefile @@ -0,0 +1,10 @@ +all: build + +init: + bundle + +dev: init + bundle exec middleman server + +build: init + bundle exec middleman build diff --git a/website/README.md b/website/README.md index 67fbaa54d8..ee619d9dc2 100644 --- a/website/README.md +++ b/website/README.md @@ -11,12 +11,7 @@ If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript Running the Site Locally ------------------------ -Running the site locally is simple. Clone this repo and run the following commands: - -``` -$ bundle -$ bundle exec middleman server -``` +Running the site locally is simple. Clone this repo and run `make dev`. Then open up `localhost:4567`. Note that some URLs you may need to append ".html" to make them work (in the navigation and such). From 30c4ef88af964e22a5aeadf4a9bc2690e8f28c23 Mon Sep 17 00:00:00 2001 From: Sam Handler Date: Mon, 12 Oct 2015 18:43:15 -0400 Subject: [PATCH 2/4] Add github_slug to website/config.rb --- website/config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/website/config.rb b/website/config.rb index bd5b57bd74..9fe973fea5 100644 --- a/website/config.rb +++ b/website/config.rb @@ -10,6 +10,7 @@ activate :hashicorp do |h| h.bintray_repo = "mitchellh/consul" h.bintray_user = "mitchellh" h.bintray_key = ENV["BINTRAY_API_KEY"] + h.github_slug = "hashicorp/consul" # Do not include the "web" in the default list of packages h.bintray_exclude_proc = Proc.new do |os, filename| From d25e6390b61fbc0d7816ce908c358edf86031262 Mon Sep 17 00:00:00 2001 From: Sam Handler Date: Mon, 12 Oct 2015 18:44:22 -0400 Subject: [PATCH 3/4] Add edit this page link in footer --- website/source/layouts/_footer.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/source/layouts/_footer.erb b/website/source/layouts/_footer.erb index b3d9767b99..3a771b6ac7 100644 --- a/website/source/layouts/_footer.erb +++ b/website/source/layouts/_footer.erb @@ -4,8 +4,11 @@