Skip to content

Commit

Permalink
Merge pull request #3472 from hashicorp/add-packet-layout
Browse files Browse the repository at this point in the history
Add Layout for Packet Provider
  • Loading branch information
apparentlymart committed Oct 10, 2015
2 parents 295c924 + 444d632 commit 3721b89
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/source/assets/stylesheets/_docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ body.layout-google,
body.layout-heroku,
body.layout-mailgun,
body.layout-openstack,
body.layout-packet,
body.layout-rundeck,
body.layout-template,
body.layout-docs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: "packet"
page_title: "Packet: packet_ssh_key"
page_title: "Packet: packet_project"
sidebar_current: "docs-packet-resource-project"
description: |-
Provides a Packet Project resource.
Expand Down
4 changes: 4 additions & 0 deletions website/source/layouts/docs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
<a href="/docs/providers/openstack/index.html">OpenStack</a>
</li>

<li<%= sidebar_current("docs-providers-packet") %>>
<a href="/docs/providers/packet/index.html">Packet</a>
</li>

<li<%= sidebar_current("docs-providers-rundeck") %>>
<a href="/docs/providers/rundeck/index.html">Rundeck</a>
</li>
Expand Down
32 changes: 32 additions & 0 deletions website/source/layouts/packet.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<% 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">&laquo; Documentation Home</a>
</li>

<li<%= sidebar_current("docs-packet-index") %>>
<a href="/docs/providers/packet/index.html">Packet Provider</a>
</li>

<li<%= sidebar_current(/^docs-packet-resource/) %>>
<a href="#">Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-packet-resource-device") %>>
<a href="/docs/providers/packet/r/device.html">packet_device</a>
</li>
<li<%= sidebar_current("docs-packet-resource-project") %>>
<a href="/docs/providers/packet/r/project.html">packet_project</a>
</li>
<li<%= sidebar_current("docs-packet-resource-ssh-key") %>>
<a href="/docs/providers/packet/r/ssh_key.html">packet_ssh_key</a>
</li>
</ul>
</li>
</ul>
</div>
<% end %>
<%= yield %>
<% end %>

0 comments on commit 3721b89

Please sign in to comment.