website: Use a middleman partial for "other docs" list instead of hardcoding it

This relies on a commit in the terraform-website repo, and should make updating
that list much less annoying.
This commit is contained in:
Nick Fagerlund 2019-03-08 11:58:58 +00:00 committed by Nick Fagerlund
parent 4abdad7ab9
commit 094a5d65d3
10 changed files with 18 additions and 315 deletions

View File

@ -72,37 +72,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -21,37 +21,8 @@
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -45,37 +45,8 @@
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -33,37 +33,8 @@
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -451,37 +451,7 @@
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -12,37 +12,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Download Terraform" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/index.html">Terraform CLI</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -420,37 +420,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform CLI" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -52,37 +52,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Guides and Whitepapers" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/index.html">Terraform CLI</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -92,37 +92,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Introduction to Terraform" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/docs/index.html">Terraform CLI</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/registry/index.html">Terraform Registry</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>

View File

@ -28,37 +28,7 @@
</li> </li>
</ul> </ul>
<h4>Other Docs</h4> <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform Registry" }) %>
<ul class="nav docs-sidenav">
<li>
<a class="back" href="/downloads.html">Download Terraform</a>
</li>
<li>
<a class="back" href="/intro/index.html">Introduction to Terraform</a>
</li>
<li>
<a class="back" href="/docs/index.html">Terraform CLI</a>
</li>
<li>
<a class="back" href="/docs/enterprise/index.html">Terraform Enterprise</a>
</li>
<li>
<a class="back" href="/guides/index.html">Guides and Whitepapers</a>
</li>
<li>
<a class="back" href="/docs/github-actions/index.html">Terraform GitHub Actions</a>
</li>
<li>
<a class="back" href="/docs/extend/index.html">Extending Terraform</a>
</li>
</ul>
<% end %> <% end %>
<%= yield %> <%= yield %>