Skip to content

Commit

Permalink
added pages
Browse files Browse the repository at this point in the history
  • Loading branch information
abakaldin committed Feb 24, 2022
1 parent 348e009 commit 2c35392
Show file tree
Hide file tree
Showing 859 changed files with 313,027 additions and 2,784 deletions.
10 changes: 0 additions & 10 deletions .github/homepage/index.html

This file was deleted.

87 changes: 0 additions & 87 deletions .github/homepage/script.js

This file was deleted.

37 changes: 0 additions & 37 deletions .github/homepage/styles.css

This file was deleted.

5 changes: 5 additions & 0 deletions .github/jekyll/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/_zabbix_templates/
/_data/zabbix_templates/
/_includes/markdown/zabbix_templates/
/.jekyll-cache/
/_site/
13 changes: 13 additions & 0 deletions .github/jekyll/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: "Zabbix public templates"
header_title: "Zabbix public templates"
email: [email protected]
author: Your Name
description: "My blog description"
baseurl: ""
url: "https://myblog.com"
date_format: "%-d.%m.%Y"

collections:
zabbix_templates:
output: true
permalink: /templates/:name/
6,097 changes: 3,471 additions & 2,626 deletions .github/homepage/meta.json → .github/jekyll/_data/meta.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .github/jekyll/_includes/banner_integration.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<section class="banner-integrations">
<div id="banner" class="swiper-container disabled">
<div class="w center" style="padding: 56px 56px;">
<br>
<div class="w container center" style="padding-top: 0px; padding-top: 10px; padding-bottom: 10px">
<h1 class="h1" style="margin-bottom: 10px">Zabbix community templates</h1>
</div>
</div>
</div>
</section>
18 changes: 18 additions & 0 deletions .github/jekyll/_includes/banner_integration_template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<section class="banner-integrations">
<div class="w container conference-header" id="training_overview" style="padding-top: 60px; min-height: 150px;">
<div class="banner-content" style="padding-left: 0; padding-bottom: 16px;">
<h1 class="h1 center">{{ include.name }}</h1>
</div>
<!-- <div class="w container">
<div class="content text">
<div class="grid grid-space-category center">
{% for tag in include.tags %}
<div class="span">
<a class="card center category-button" href="" style="color: #25282F">{{ tag< }} </a>
</div>
{% endfor %}
</div>
</div>
</div> -->
</div>
</section>
15 changes: 15 additions & 0 deletions .github/jekyll/_includes/disqus_main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
{% capture git_hub_page %}{{ "https://zabbix.github.io/community-templates" }}{{ page.url }}{% endcapture %}
this.page.url = "{{ git_hub_page }}";
this.page.identifier = "{{ include.folder }}";
};
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://zabbix-github-io-community-templates.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
19 changes: 19 additions & 0 deletions .github/jekyll/_includes/folder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<ul class="folder">
{% for folder in include.next %}
{% if folder.type == 'folder' %}
<li>
{{ folder.name }}
{% include folder.html next=folder.next %}
</li>
{% endif %}
{% endfor %}
<li>
<div class="container_template">
{% for folder in include.next %}
{% if folder.type == 'template' %}
{% include template.html template=folder %}
{% endif %}
{% endfor %}
</div>
</li>
</ul>
2 changes: 2 additions & 0 deletions .github/jekyll/_includes/google-search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script async src="https://cse.google.com/cse.js?cx=e666aecf6ee9885e7"></script>
<div class="gcse-search"></div>
26 changes: 26 additions & 0 deletions .github/jekyll/_includes/markdown/template_readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# Zabbix public templates

## A place for community driven integrations with Zabbix

![Template Repository](https://github.com/zabbix/community-templates/actions/workflows/update_readme.yml/badge.svg)
![Template Repository](https://github.com/zabbix/community-templates/actions/workflows/check_templates.yaml/badge.svg)

This repository is dedicated to templates that are created and maintained by Zabbix community.

## How to use templates from this repository?
- Download and [import a template](https://www.zabbix.com/documentation/current/manual/xml_export_import/templates#importing) into the supported Zabbix version.
- Configure the template according to the configuration requirements
- Configure a host with [template](https://www.zabbix.com/documentation/current/manual/config/templates/template)

## How to Collaborate?
- Fix and report bugs
- Improve template documentation
- Review and discuss templates and feature proposals
- Answer questions and discuss in GitHub issues

## How to contribute a new template
- Read [template guidelines](https://www.zabbix.com/documentation/guidelines/en/thosts)
- Review template structure
- Open a pull request with a template for the correct version
- Be ready to discuss your pull request
7 changes: 7 additions & 0 deletions .github/jekyll/_includes/markdown_file.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% capture newLine %}
{% endcapture %}

{% capture markdown %}
{{newLine}}{% raw_include {{include.path}} %}
{% endcapture %}
{{ markdown | markdownify}}
7 changes: 7 additions & 0 deletions .github/jekyll/_includes/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<a href="/templates/{{ include.template.jekyll }}">
<div class="template">

{{ include.template.template }}

</div>
</a>
30 changes: 30 additions & 0 deletions .github/jekyll/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Zabbix community templates</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>

<body id="body">
{% include banner_integration.html %}
{% include google-search.html %}
<div class="w container">
{% include markdown_file.html path="markdown/template_readme.md" %}
<h1>Templates</h1>
<div id="template_tree">
<ul class="folder">
{% for folder in site.data.meta.next %}
<li>
{{ folder.name }}
{% include folder.html next=folder.next %}
</li>
{% endfor %}
</ul>
</div>
</div>
</body>

</html>
62 changes: 62 additions & 0 deletions .github/jekyll/_layouts/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>{{ page.name }}</title>
<link rel="stylesheet" href="/assets/css/styles.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>

<body id="body">
{% assign tgs = site.data.zabbix_templates[page.folder].tags %}
{% capture git_hub_url %}{{ "https://github.com/zabbix/community-templates/tree/main/" }}{{ page.github }}{% endcapture %}
<a href="{{ git_hub_url }}">
{% include banner_integration_template.html name = page.name tags = tgs %}
</a>
<div class="w container">
<h2 class="h2">Available versions</h2>
<br>
<div class="tabs-section">
<div id="integrations_tabs" class="tabs">
<ul>
{% assign vers = site.data.zabbix_templates[page.folder].versions %}
{% for vr in vers %}
<li>
<a class="js_tab" id="ver_{{ vr | replace: ".", "_" }}" href="#body">ver. {{ vr }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<br>
<br>
{% for vr in vers %}
<div id="content_ver_{{ vr | replace: ".", "_" }}" class="readme">
{% capture file_name %}{{ "markdown/zabbix_templates/" }}{{ page.folder }}{{"/"}}{{ vr }}{{"/README.md"}}{% endcapture %}
{% include markdown_file.html path=file_name %}
</div>
{% endfor %}
{% include disqus_main.html folder=page.folder %}
</div>
<script>
(function(){
console.log('#content_ver_{{ vers | last | replace: ".", "_"}}');
console.log('#ver_{{ vers | last | replace: ".", "_" }}');
$('.readme').hide();
$('#content_ver_{{ vers | last | replace: ".", "_" }}').fadeIn('slow');
$('#ver_{{ vers | last | replace: ".", "_" }}').addClass('active');

{% for vr in vers %}
$('#ver_{{ vr | replace: ".", "_" }}').click(function() {
$('.readme').hide();
$('#content_ver_{{ vr | replace: ".", "_" }}').fadeIn('slow');
$('.js_tab').removeClass('active')
$('#ver_{{ vr | replace: ".", "_" }}').addClass('active');
})
{% endfor %}
})();
</script>
</body>
</html>
5 changes: 5 additions & 0 deletions .github/jekyll/_pages/templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: page
title: "A list of templates"
permalink: "/templates/"
---
Loading

0 comments on commit 2c35392

Please sign in to comment.