website: Adding heroku framework

This commit is contained in:
Armon Dadgar 2014-07-24 11:05:33 -04:00
parent 1ee69761d4
commit 6ba042a8f5
5 changed files with 115 additions and 0 deletions

View File

@ -0,0 +1,36 @@
---
layout: "heroku"
page_title: "Provider: Heroku"
sidebar_current: "docs-heroku-index"
---
# Heroku Provider
The Heroku provider is used to interact with the
resources supported by Heroku. The provider needs to be configured
with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
## Example Usage
```
# Configure the Heroku provider
provider "heroku" {
email = "ops@company.com"
api_key = "${var.heroku_api_key}"
}
# Create a new applicaiton
resource "heroku_app" "default" {
...
}
```
## Argument Reference
The following arguments are supported:
* `api_key` - (Required) Heroku API token
* `email` - (Required) Email to be notified by Heroku

View File

@ -0,0 +1,41 @@
---
layout: "heroku"
page_title: "Heroku: heroku_addon"
sidebar_current: "docs-heroku-resource-addon"
---
# heroku\_addon
Provides a Heroku Add-On resource. These can be attach
services to a Heroku app.
## Example Usage
```
# Add a web-hook addon for the app
resource "heroku_addon" "webhook" {
app = "${heroku_app.foobar.name}"
plan = "deployhooks:http"
config {
url = "http://google.com"
}
}
```
## Argument Reference
The following arguments are supported:
* `app` - (Required) The Heroku app to add to.
* `plan` - (Requried) The addon to add.
* `config` - (Optional) Optional plan configuration.
## Attributes Reference
The following attributes are exported:
* `id` - The ID of the add-on
* `name` - The add-on name
* `plan` - The plan name
* `provider_id` - The ID of the plan provider

View File

@ -0,0 +1,34 @@
<% wrap_layout :inner do %>
<% content_for :sidebar do %>
<div class="docs-sidebar hidden-print affix-top" role="complementary">
<ul class="nav docs-sidenav">
<li<%= sidebar_current("docs-home") %>>
<a href="/docs/index.html">&laquo; Documentation Home</a>
</li>
<li<%= sidebar_current("docs-heroku-index") %>>
<a href="/docs/providers/heroku/index.html">Heroku Provider</a>
</li>
<li<%= sidebar_current("docs-heroku-resource") %>>
<a href="#">Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-heroku-resource-addon") %>>
<a href="/docs/providers/heroku/r/addon.html">heroku_addon</a>
</li>
<li<%= sidebar_current("docs-heroku-resource-app") %>>
<a href="/docs/providers/heroku/r/app.html">heroku_app</a>
</li>
<li<%= sidebar_current("docs-heroku-resource-domain") %>>
<a href="/docs/providers/heroku/r/domain.html">heroku_domain</a>
</li>
</ul>
</li>
</ul>
</div>
<% end %>
<%= yield %>
<% end %>

View File

@ -6,6 +6,7 @@ body.page-sub{
background-color: @light-black;
}
body.layout-heroku,
body.layout-digitalocean,
body.layout-aws,
body.layout-docs,

View File

@ -1110,6 +1110,7 @@ body.page-home #footer {
body.page-sub {
background-color: #242424;
}
body.layout-heroku,
body.layout-digitalocean,
body.layout-aws,
body.layout-docs,
@ -1117,6 +1118,7 @@ body.layout-inner,
body.layout-intro {
background: #242424 url('../images/sidebar-wire.png') left 62px no-repeat;
}
body.layout-heroku > .container .col-md-8[role=main],
body.layout-digitalocean > .container .col-md-8[role=main],
body.layout-aws > .container .col-md-8[role=main],
body.layout-docs > .container .col-md-8[role=main],
@ -1125,6 +1127,7 @@ body.layout-intro > .container .col-md-8[role=main] {
min-height: 800px;
background-color: white;
}
body.layout-heroku > .container .col-md-8[role=main] > div,
body.layout-digitalocean > .container .col-md-8[role=main] > div,
body.layout-aws > .container .col-md-8[role=main] > div,
body.layout-docs > .container .col-md-8[role=main] > div,