provider/oneandone: Adding the documentation to the sidebar (#13853)

Also renaming the files and adding the hcl syntax highlighting
This commit is contained in:
Paul Stack 2017-04-21 19:37:10 +03:00 committed by GitHub
parent 71139988dc
commit 358e1c2890
11 changed files with 62 additions and 11 deletions

View File

@ -18,7 +18,7 @@ Use the navigation to the left to read about the available resources.
The provider needs to be configured with proper credentials before it can be used.
```
```text
$ export ONEANDONE_TOKEN="oneandone_token"
```
@ -30,7 +30,7 @@ The credentials provided in `.tf` file will override credentials in the environm
## Example Usage
```
```hcl
provider "oneandone"{
token = "oneandone_token"
endpoint = "oneandone_endpoint"

View File

@ -1,7 +1,7 @@
---
layout: "oneandone"
page_title: "1&1: oneandone_firewall_policy"
sidebar_current: "docs-oneandone-resource-firwall-policy"
sidebar_current: "docs-oneandone-resource-firewall-policy"
description: |-
Creates and manages 1&1 Firewall Policy.
---
@ -12,7 +12,7 @@ Manages a Firewall Policy on 1&1
## Example Usage
```
```hcl
resource "oneandone_firewall_policy" "fw" {
name = "test_fw_011"
rules = [

View File

@ -12,7 +12,7 @@ Manages a Load Balancer on 1&1
## Example Usage
```
```hcl
resource "oneandone_loadbalancer" "lb" {
name = "test_lb"
method = "ROUND_ROBIN"

View File

@ -12,7 +12,7 @@ Manages a Monitoring Policy on 1&1
## Example Usage
```
```hcl
resource "oneandone_monitoring_policy" "mp" {
name = "test_mp"
agent = true

View File

@ -12,7 +12,7 @@ Manages a Private Network on 1&1
## Example Usage
```
```hcl
resource "oneandone_private_network" "pn" {
name = "pn_test",
description = "new stuff001"

View File

@ -12,7 +12,7 @@ Manages a Public IP on 1&1
## Example Usage
```
```hcl
resource "oneandone_vpn" "vpn" {
datacenter = "GB"
name = "test_vpn_01"

View File

@ -12,7 +12,7 @@ Manages a Server on 1&1
## Example Usage
```
```hcl
resource "oneandone_server" "server" {
name = "Example"
description = "Terraform 1and1 tutorial"

View File

@ -12,7 +12,7 @@ Manages a Shared Storage on 1&1
## Example Usage
```
```hcl
resource "oneandone_shared_storage" "storage" {
name = "test_storage1"
description = "1234"

View File

@ -12,7 +12,7 @@ Manages a VPN on 1&1
## Example Usage
```
```hcl
resource "oneandone_public_ip" "ip" {
"ip_type" = "IPV4"
"reverse_dns" = "test.1and1.com"

View File

@ -340,6 +340,10 @@
<a href="/docs/providers/mysql/index.html">MySQL</a>
</li>
<li<%= sidebar_current("docs-providers-oneandone") %>>
<a href="/docs/providers/oneandone/index.html">1&1</a>
</li>
<li<%= sidebar_current("docs-providers-opc") %>>
<a href="/docs/providers/opc/index.html">OPC</a>
</li>

View File

@ -0,0 +1,47 @@
<% 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/providers/index.html">All Providers</a>
</li>
<li<%= sidebar_current("docs-oneandone-index") %>>
<a href="/docs/providers/oneandone/index.html">1&1 Provider</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource") %>>
<a href="#">Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-oneandone-resource-firewall-policy") %>>
<a href="/docs/providers/oneandone/r/firewall_policy.html">oneandone_firewall_policy</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-loadbalancer") %>>
<a href="/docs/providers/oneandone/r/loadbalancer.html">oneandone_loadbalancer</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-monitoring-policy") %>>
<a href="/docs/providers/oneandone/r/monitoring_policy.html">oneandone_monitoring_policy</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-private-network") %>>
<a href="/docs/providers/oneandone/r/private_network.html">oneandone_private_network</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-public-ip") %>>
<a href="/docs/providers/oneandone/r/public_ip.html">oneandone_public_ip</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-server") %>>
<a href="/docs/providers/oneandone/r/server.html">oneandone_server</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-shared-storage") %>>
<a href="/docs/providers/oneandone/r/shared_storage.html">oneandone_shared_storage</a>
</li>
<li<%= sidebar_current("docs-oneandone-resource-vpn") %>>
<a href="/docs/providers/oneandone/r/vpn.html">oneandone_vpn</a>
</li>
</ul>
</li>
</ul>
</div>
<% end %>
<%= yield %>
<% end %>