-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hashicorp/add-website
Initial Website Import
- Loading branch information
Showing
105 changed files
with
6,428 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
https://github.com/heroku/heroku-buildpack-ruby.git | ||
https://github.com/hashicorp/heroku-buildpack-middleman.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'middleman-hashicorp', git: 'https://github.com/hashicorp/middleman-hashicorp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
GIT | ||
remote: https://github.com/hashicorp/middleman-hashicorp | ||
revision: 783fe9517dd02badb85e5ddfeda4d8e35bbd05a8 | ||
specs: | ||
middleman-hashicorp (0.1.0) | ||
bootstrap-sass (~> 3.3) | ||
builder (~> 3.2) | ||
less (~> 2.6) | ||
middleman (~> 3.3) | ||
middleman-livereload (~> 3.4) | ||
middleman-minify-html (~> 3.4) | ||
middleman-syntax (~> 2.0) | ||
rack-contrib (~> 1.2) | ||
rack-rewrite (~> 1.5) | ||
rack-ssl-enforcer (~> 0.2) | ||
redcarpet (~> 3.2) | ||
therubyracer (~> 0.12) | ||
thin (~> 1.6) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (4.1.9) | ||
i18n (~> 0.6, >= 0.6.9) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.1) | ||
tzinfo (~> 1.1) | ||
autoprefixer-rails (5.1.7) | ||
execjs | ||
json | ||
bootstrap-sass (3.3.3) | ||
autoprefixer-rails (>= 5.0.0.1) | ||
sass (>= 3.2.19) | ||
builder (3.2.2) | ||
celluloid (0.16.0) | ||
timers (~> 4.0.0) | ||
chunky_png (1.3.4) | ||
coffee-script (2.3.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.9.1) | ||
commonjs (0.2.7) | ||
compass (1.0.3) | ||
chunky_png (~> 1.2) | ||
compass-core (~> 1.0.2) | ||
compass-import-once (~> 1.0.5) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
sass (>= 3.3.13, < 3.5) | ||
compass-core (1.0.3) | ||
multi_json (~> 1.0) | ||
sass (>= 3.3.0, < 3.5) | ||
compass-import-once (1.0.5) | ||
sass (>= 3.2, < 3.5) | ||
daemons (1.1.9) | ||
em-websocket (0.5.1) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
erubis (2.7.0) | ||
eventmachine (1.0.7) | ||
execjs (2.4.0) | ||
ffi (1.9.6) | ||
haml (4.0.6) | ||
tilt | ||
hike (1.2.3) | ||
hitimes (1.2.2) | ||
hooks (0.4.0) | ||
uber (~> 0.0.4) | ||
htmlcompressor (0.1.2) | ||
http_parser.rb (0.6.0) | ||
i18n (0.7.0) | ||
json (1.8.2) | ||
kramdown (1.6.0) | ||
less (2.6.0) | ||
commonjs (~> 0.2.7) | ||
libv8 (3.16.14.7) | ||
listen (2.8.5) | ||
celluloid (>= 0.15.2) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
middleman (3.3.10) | ||
coffee-script (~> 2.2) | ||
compass (>= 1.0.0, < 2.0.0) | ||
compass-import-once (= 1.0.5) | ||
execjs (~> 2.0) | ||
haml (>= 4.0.5) | ||
kramdown (~> 1.2) | ||
middleman-core (= 3.3.10) | ||
middleman-sprockets (>= 3.1.2) | ||
sass (>= 3.4.0, < 4.0) | ||
uglifier (~> 2.5) | ||
middleman-core (3.3.10) | ||
activesupport (~> 4.1.0) | ||
bundler (~> 1.1) | ||
erubis | ||
hooks (~> 0.3) | ||
i18n (~> 0.7.0) | ||
listen (>= 2.7.9, < 3.0) | ||
padrino-helpers (~> 0.12.3) | ||
rack (>= 1.4.5, < 2.0) | ||
rack-test (~> 0.6.2) | ||
thor (>= 0.15.2, < 2.0) | ||
tilt (~> 1.4.1, < 2.0) | ||
middleman-livereload (3.4.2) | ||
em-websocket (~> 0.5.1) | ||
middleman-core (>= 3.3) | ||
rack-livereload (~> 0.3.15) | ||
middleman-minify-html (3.4.0) | ||
htmlcompressor (~> 0.1.0) | ||
middleman-core (>= 3.2) | ||
middleman-sprockets (3.4.2) | ||
middleman-core (>= 3.3) | ||
sprockets (~> 2.12.1) | ||
sprockets-helpers (~> 1.1.0) | ||
sprockets-sass (~> 1.3.0) | ||
middleman-syntax (2.0.0) | ||
middleman-core (~> 3.2) | ||
rouge (~> 1.0) | ||
minitest (5.5.1) | ||
multi_json (1.11.0) | ||
padrino-helpers (0.12.5) | ||
i18n (~> 0.6, >= 0.6.7) | ||
padrino-support (= 0.12.5) | ||
tilt (~> 1.4.1) | ||
padrino-support (0.12.5) | ||
activesupport (>= 3.1) | ||
rack (1.6.0) | ||
rack-contrib (1.2.0) | ||
rack (>= 0.9.1) | ||
rack-livereload (0.3.15) | ||
rack | ||
rack-rewrite (1.5.1) | ||
rack-ssl-enforcer (0.2.8) | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rb-fsevent (0.9.4) | ||
rb-inotify (0.9.5) | ||
ffi (>= 0.5.0) | ||
redcarpet (3.2.2) | ||
ref (1.0.5) | ||
rouge (1.8.0) | ||
sass (3.4.13) | ||
sprockets (2.12.3) | ||
hike (~> 1.2) | ||
multi_json (~> 1.0) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sprockets-helpers (1.1.0) | ||
sprockets (~> 2.0) | ||
sprockets-sass (1.3.1) | ||
sprockets (~> 2.0) | ||
tilt (~> 1.1) | ||
therubyracer (0.12.1) | ||
libv8 (~> 3.16.14.0) | ||
ref | ||
thin (1.6.3) | ||
daemons (~> 1.0, >= 1.0.9) | ||
eventmachine (~> 1.0) | ||
rack (~> 1.0) | ||
thor (0.19.1) | ||
thread_safe (0.3.4) | ||
tilt (1.4.1) | ||
timers (4.0.1) | ||
hitimes | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
uber (0.0.13) | ||
uglifier (2.7.1) | ||
execjs (>= 0.3.0) | ||
json (>= 1.8.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
middleman-hashicorp! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Proprietary License | ||
|
||
This license is temporary while a more official one is drafted. However, | ||
this should make it clear: | ||
|
||
* The text contents of this website are MPL 2.0 licensed. | ||
|
||
* The design contents of this website are proprietary and may not be reproduced | ||
or reused in any way other than to run the Vault website locally. The license | ||
for the design is owned solely by HashiCorp, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: bundle exec thin start -p $PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Vault Website | ||
|
||
This subdirectory contains the entire source for the [Vault Website](http://www.vault.io). | ||
This is a [Middleman](http://middlemanapp.com) project, which builds a static | ||
site from these source files. | ||
|
||
## Contributions Welcome! | ||
|
||
If you find a typo or you feel like you can improve the HTML, CSS, or | ||
JavaScript, we welcome contributions. Feel free to open issues or pull | ||
requests like any normal GitHub project, and we'll merge it in. | ||
|
||
## Running the Site Locally | ||
|
||
Running the site locally is simple. Clone this repo and run the following | ||
commands: | ||
|
||
``` | ||
$ bundle | ||
$ bundle exec middleman server | ||
``` | ||
|
||
Then open up `http://localhost:4567`. Note that some URLs you may need to append | ||
".html" to make them work (in the navigation). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
$script = <<SCRIPT | ||
sudo apt-get -y update | ||
# RVM/Ruby | ||
sudo apt-get -y install curl | ||
curl -sSL https://get.rvm.io | bash -s stable | ||
. ~/.bashrc | ||
. ~/.bash_profile | ||
rvm install 2.0.0 | ||
rvm --default use 2.0.0 | ||
# Middleman deps | ||
cd /vagrant | ||
bundle | ||
# JS stuff | ||
sudo apt-get install -y python-software-properties | ||
sudo add-apt-repository -y ppa:chris-lea/node.js | ||
sudo apt-get update -y | ||
sudo apt-get install -y nodejs | ||
# Get JS deps | ||
cd /vagrant/source | ||
npm install | ||
SCRIPT | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
config.vm.box = "chef/ubuntu-12.04" | ||
config.vm.network "private_network", ip: "33.33.30.10" | ||
config.vm.provision "shell", inline: $script, privileged: false | ||
config.vm.synced_folder ".", "/vagrant", type: "rsync" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#------------------------------------------------------------------------- | ||
# Configure Middleman | ||
#------------------------------------------------------------------------- | ||
|
||
set :base_url, "https://www.vault.io/" | ||
|
||
activate :hashicorp do |h| | ||
h.version = ENV['VAULT_VERSION'] | ||
h.bintray_repo = 'mitchellh/vault' | ||
h.bintray_user = 'mitchellh' | ||
h.bintray_key = ENV['BINTRAY_API_KEY'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require "rack" | ||
require "rack/contrib/not_found" | ||
require "rack/contrib/response_headers" | ||
require "rack/contrib/static_cache" | ||
require "rack/contrib/try_static" | ||
|
||
# Properly compress the output if the client can handle it. | ||
use Rack::Deflater | ||
|
||
# Set the "forever expire" cache headers for these static assets. Since | ||
# we hash the contents of the assets to determine filenames, this is safe | ||
# to do. | ||
use Rack::StaticCache, | ||
:root => "build", | ||
:urls => ["/images", "/javascripts", "/stylesheets"], | ||
:duration => 2, | ||
:versioning => false | ||
|
||
# Try to find a static file that matches our request, since Middleman | ||
# statically generates everything. | ||
use Rack::TryStatic, | ||
:root => "build", | ||
:urls => ["/"], | ||
:try => [".html", "index.html", "/index.html"] | ||
|
||
# 404 if we reached this point. Sad times. | ||
run Rack::NotFound.new(File.expand_path("../build/404.html", __FILE__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module SidebarHelpers | ||
# This helps by setting the "active" class for sidebar nav elements | ||
# if the YAML frontmatter matches the expected value. | ||
def sidebar_current(expected) | ||
current = current_page.data.sidebar_current || "" | ||
if current.start_with?(expected) | ||
return " class=\"active\"" | ||
else | ||
return "" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Source folder | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
noindex: true | ||
--- | ||
|
||
<h2>Page Not Found</h2> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
(function(Sidebar){ | ||
|
||
// Quick and dirty IE detection | ||
var isIE = (function(){ | ||
if (window.navigator.userAgent.match('Trident')) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
})(); | ||
|
||
// isIE = true; | ||
|
||
var Init = { | ||
|
||
start: function(){ | ||
var id = document.body.id.toLowerCase(); | ||
|
||
if (this.Pages[id]) { | ||
this.Pages[id](); | ||
} | ||
}, | ||
|
||
initializeSidebar: function(){ | ||
new Sidebar(); | ||
}, | ||
|
||
initializeWaypoints: function(){ | ||
$('#header').waypoint(function(event, direction) { | ||
console.log('waypoint header ', $(this)[0]); | ||
$(this.element).addClass('showit'); | ||
}, { | ||
offset: function() { | ||
return 25%; | ||
} | ||
}); | ||
|
||
$('#hero').waypoint(function(event, direction) { | ||
$(this.element).addClass('showit'); | ||
}, { | ||
offset: function() { | ||
return 25%; | ||
} | ||
}); | ||
}, | ||
|
||
Pages: { | ||
'page-home': function(){ | ||
Init.initializeSidebar(); | ||
Init.initializeWaypoints(); | ||
} | ||
} | ||
|
||
}; | ||
|
||
Init.start(); | ||
|
||
})(window.Sidebar); |
Oops, something went wrong.