From 67b9f8888685a0aa4a60eabe3f0815133f72faa3 Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Mon, 12 Dec 2016 15:53:37 +0000 Subject: [PATCH] docs/icinga2: Adding the documentation to the sidebar of the website (#10671) --- website/source/assets/stylesheets/_docs.scss | 1 + .../providers/icinga2/index.html.markdown | 7 +--- website/source/layouts/docs.erb | 6 +++- website/source/layouts/icinga2.erb | 35 +++++++++++++++++++ 4 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 website/source/layouts/icinga2.erb diff --git a/website/source/assets/stylesheets/_docs.scss b/website/source/assets/stylesheets/_docs.scss index 0728fcda3..ce73017e1 100755 --- a/website/source/assets/stylesheets/_docs.scss +++ b/website/source/assets/stylesheets/_docs.scss @@ -31,6 +31,7 @@ body.layout-grafana, body.layout-fastly, body.layout-google, body.layout-heroku, +body.layout-icinga2, body.layout-influxdb, body.layout-librato, body.layout-logentries, diff --git a/website/source/docs/providers/icinga2/index.html.markdown b/website/source/docs/providers/icinga2/index.html.markdown index 0e9e4b686..fd9ffbe7c 100644 --- a/website/source/docs/providers/icinga2/index.html.markdown +++ b/website/source/docs/providers/icinga2/index.html.markdown @@ -3,12 +3,7 @@ layout: "icinga2" page_title: "Provider: Icinga2" sidebar_current: "docs-icinga2-index" description: |- - 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. ---- - + 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. --- diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 061b865f8..d7ce8c629 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -262,9 +262,13 @@ Heroku + > + Icinga2 + + > InfluxDB - + > Librato diff --git a/website/source/layouts/icinga2.erb b/website/source/layouts/icinga2.erb new file mode 100644 index 000000000..9c9c8559e --- /dev/null +++ b/website/source/layouts/icinga2.erb @@ -0,0 +1,35 @@ +<% wrap_layout :inner do %> + <% content_for :sidebar do %> + + <% end %> + + <%= yield %> +<% end %>