docs/icinga2: Adding the documentation to the sidebar of the website (#10671)

This commit is contained in:
Paul Stack 2016-12-12 15:53:37 +00:00 committed by GitHub
parent 773c36d072
commit 67b9f88886
4 changed files with 42 additions and 7 deletions

View File

@ -31,6 +31,7 @@ body.layout-grafana,
body.layout-fastly, body.layout-fastly,
body.layout-google, body.layout-google,
body.layout-heroku, body.layout-heroku,
body.layout-icinga2,
body.layout-influxdb, body.layout-influxdb,
body.layout-librato, body.layout-librato,
body.layout-logentries, body.layout-logentries,

View File

@ -3,12 +3,7 @@ layout: "icinga2"
page_title: "Provider: Icinga2" page_title: "Provider: Icinga2"
sidebar_current: "docs-icinga2-index" sidebar_current: "docs-icinga2-index"
description: |- description: |-
The Icinga2 provider is used to configure hosts to be monitored by The Icinga2 provider is used to configure hosts to be monitored by Icinga2 servers. The provider needs to be configured with the API URL of the Icinga2 server and credentials for an API user with the appropriate permissions.
Icinga2 servers. The provider needs to be configured with the API
URL of the Icinga2 server and credentials for an API user with the
appropriate permissions.
---
--- ---

View File

@ -262,9 +262,13 @@
<a href="/docs/providers/heroku/index.html">Heroku</a> <a href="/docs/providers/heroku/index.html">Heroku</a>
</li> </li>
<li<%= sidebar_current("docs-providers-icinga2") %>>
<a href="/docs/providers/icinga2/index.html">Icinga2</a>
</li>
<li<%= sidebar_current("docs-providers-influxdb") %>> <li<%= sidebar_current("docs-providers-influxdb") %>>
<a href="/docs/providers/influxdb/index.html">InfluxDB</a> <a href="/docs/providers/influxdb/index.html">InfluxDB</a>
</li> </li>
<li<%= sidebar_current("docs-providers-librato") %>> <li<%= sidebar_current("docs-providers-librato") %>>
<a href="/docs/providers/librato/index.html">Librato</a> <a href="/docs/providers/librato/index.html">Librato</a>

View File

@ -0,0 +1,35 @@
<% 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-icinga2-index") %>>
<a href="/docs/providers/influxdb/index.html">Icinga2 Provider</a>
</li>
<li<%= sidebar_current(/^docs-icinga2-resource/) %>>
<a href="#">Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-icinga2-resource-checkcommand") %>>
<a href="/docs/providers/icinga2/r/checkcommands.html">icinga2_checkcommand</a>
</li>
<li<%= sidebar_current("docs-icinga2-resource-host") %>>
<a href="/docs/providers/icinga2/r/host.html">icinga2_host</a>
</li>
<li<%= sidebar_current("docs-icinga2-resource-hostgroup") %>>
<a href="/docs/providers/icinga2/r/hostgroup.html">icinga2_hostgroup</a>
</li>
<li<%= sidebar_current("docs-icinga2-resource-continuous_query") %>>
<a href="/docs/providers/icinga2/r/service.html">icinga2_service</a>
</li>
</ul>
</li>
</ul>
</div>
<% end %>
<%= yield %>
<% end %>