Initial docs

This commit is contained in:
lvuch
2018-04-12 13:59:16 -07:00
commit d1752b4c7c
195 changed files with 131650 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"events": [
{{ range $i, $event := (where (where .Site.RegularPages "Section" "events") ".Params.type" "event") }}
{{ if $i }}, {{ end }}
{
"title": "{{ $event.Params.title }}",
"location": "{{$event.Params.location}}",
"eventDate": "{{$event.Params.eventdate}}",
"permalink": "{{.Permalink}}"
}
{{ end }}
]
}
+91
View File
@@ -0,0 +1,91 @@
{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "hero" }}
<!-- theme/layouts/_default/list.html-->
<section class="hero">
{{ with .Params.Title }}
<h1>{{ . }}</h1>
{{end}}
{{ with .Params.Author }}
<span class="byline bg-link">{{ . }}</span>
{{end}}
</section>
{{ end }}
{{ define "main" }}
<div class="wrapper">
{{ partial "breadcrumbs.html" . }}
{{ partial "docs-nav.html" . }}
<div class="row m-t-sm">
<aside class="col-sm-4 col-xs-12">
<div class="bg-default p-a-sm">
{{ partial "docs-side-nav.html" . }}
</div>
</aside>
<article class="col-sm-8 col-xs-12 p-r-lg">
<div class="main-content ">
{{ .Content }}
{{ range (.Paginator 5).Pages }}
<div class="box m-b-md">
<div class="p-a-sm">
<h3><a href="{{.URL}}">{{.Title}}</a></h3>
{{ if .Params.Image }}
<div class="thumbnail"><img src="{{ .Params.Image }}" alt="{{ .Params.Title }}"></div>
{{end}}
<p>{{ .Summary | safeHTML }}</p>
{{ if .Truncated }}
<div>
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
{{ end }}
</div>
<div class="bg-default">
<div class="row">
{{ with .Params.Author }}
<div class="p-h-sm p-v-xs"><i class="material-icons">person_outline</i> By: {{ . }}</div>
{{end}}
{{ if eq .Section "events" }}
{{ with .Params.EventDate }}
<div class="p-h-sm p-v-xs"><i class="material-icons">event</i> {{ . }}</div>
{{end}}
{{ else }}
{{ with .Params.Date }}
<div class="p-h-sm p-v-xs"><i class="material-icons">event</i> {{ .Format "January 2, 2006" }}</div>
{{end}}
{{end}}
<!-- {{ with .Params.Date }}
<div class="p-h-sm p-v-xs"><i class="material-icons">event</i> By: {{ .Format "January 2, 2006" }}</div>
{{end}} -->
{{ if eq .Section "blog" }}
<div class="p-h-sm p-v-xs"><i class="material-icons">timer</i> Read Time: {{.ReadingTime}} minutes</div>
{{end}}
{{ with .Params.Location }}
<div class="p-h-sm p-v-xs"><i class="material-icons">location_on</i> {{ . }}</div>
{{end}}
</div>
</div>
</div>
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
</article>
</div>
</div>
{{ end }}
+37
View File
@@ -0,0 +1,37 @@
{{ define "hero" }}
<section class="hero">
<div class="wrapper p-h-lg row center-xs">
<div class="col-md-8">
{{ with .Params.Title }}
<h1>{{ . }}</h1>
{{end}}
{{ with .Params.Author }}
<span class="byline bg-link">{{ . }}</span>
{{end}}
</div>
</div>
</section>
{{ end }}
{{ define "main" }}
<div class="wrapper">
<h1>default single template</h1>
{{ partial "breadcrumbs.html" . }}
<div class="row">
<article class="main-content col-sm-8 col-xs-12 p-r-lg">
{{ if .Params.Image }}
<img class="feat-img" src="{{ .Params.Image }}" alt="{{ .Params.Title }}">
{{end}}
{{ .Content }}
</article>
<aside class="col-sm-4 col-xs-12">
{{ partial "sidebar.html" . }}
</aside>
</div>
</div>
{{ end }}
+5
View File
@@ -0,0 +1,5 @@
/*
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: origin-when-cross-origin
+20
View File
@@ -0,0 +1,20 @@
{{ define "hero" }}
<section class="hero">
<div class="wrapper">
<div class="row center-xs">
<div class="col-md-8 p-a-lg">
{{ with .Params.pageHeader }}
<h1>{{ . }}</h1>
{{end}}
</div>
</div>
</div>
</section>
{{ end }}
{{ define "main" }}
<div>
{{ .Content }}
</div>
{{ end }}
+6
View File
@@ -0,0 +1,6 @@
# redirects for Netlify - https://www.netlify.com/docs/redirects/
{{- range $p := .Site.Pages -}}
{{- range .Aliases }}
{{ . }} {{ $p.RelPermalink -}}
{{- end }}
{{- end -}}
+7
View File
@@ -0,0 +1,7 @@
<nav>
<ul class="tabs">
{{ range .Sections }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</nav>
+69
View File
@@ -0,0 +1,69 @@
<!-- {{ range .Data.Pages.GroupBy "Section" }}
<h3>{{ .Key }}</h3>
<ul class="unstyled">
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
-->
<h3>{{ .Title }}</h3>
{{ $home := .Site.Home }}
<div class="tree-nav">
<ul>
<!-- <li><a href="{{ .RelPermalink}}">Home</a></li> -->
<ul>
{{ template "section-tree-nav" $home }}
</ul>
</ul>
</div>
{{ define "section-tree-nav" }}
{{ range .Sections}}
<!-- <li> -->
<li class="bg-white"><a href="{{ .RelPermalink}}"><i class="material-icons bg-accent p-a-xs">folder</i>{{ .Title }}<i class="material-icons pull-right">keyboard_arrow_down</i></a>
<ul>
{{ range .Pages }}
<li class="bg-white"><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
{{ end }}
<ul>
{{ template "section-tree-nav" . }}
</ul>
</ul>
</li>
<!-- </li> -->
{{ end }}
{{ end }}
<!--old sidebar-->
<!-- <div class="bg-default p-a-md">
<h4>{{ .Section }}</h4>
{{ $page := . }}
<ul>
{{ range where .Site.Pages "Section" .Section }}
{{ $child := . }}
{{ if .IsDescendant $page }}
<li class="row aside-item">
<div class="bg-accent col-md row middle-md center-md"><i class="material-icons">folder</i></div>
<div class="col-md aside-info">
<a href="{{ .URL }}">{{ .Title }}
{{ if .IsAncestor $child }}
<i class="material-icons pull-right">keyboard_arrow_down</i>
{{ end }}
</a>
</div>
<ul>
{{ range where .Site.Pages "Section" .Section }}
{{ if .IsDescendant $child }}
<li><a href="{{ .URL }}">{{.Title}}</a></li>
{{ end }}
{{ end }}
</ul>
</li>
{{ end }}
{{ end }}
</div>
-->
+2
View File
@@ -0,0 +1,2 @@
User-agent: *
Disallow: {{ if ne (getenv "HUGO_ENV") "production" }}/{{ end }}
+13
View File
@@ -0,0 +1,13 @@
<div class="slider js_slider percentage">
<div class="frame js_frame">
<ul class="slides js_slides">
{{ .Inner }}
</ul>
</div>
<span class="js_prev prev" style="padding-left: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M302.67 90.877l55.77 55.508L254.575 250.75 358.44 355.116l-55.77 55.506L143.56 250.75z"/></g></svg>
</span>
<span class="js_next next" style="padding-right: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M199.33 410.622l-55.77-55.508L247.425 250.75 143.56 146.384l55.77-55.507L358.44 250.75z"/></g></svg>
</span>
</div>
+21
View File
@@ -0,0 +1,21 @@
<table>
<thead>
<tr>
<th>Version</th>
<th>Host OS</th>
<th>Kubernetes*</th>
<th>Docker</th>
</tr>
</thead>
<tbody>
{{ range .Site.Data.compatibility.version }}
<tr>
<td>{{.number}}</td>
<td>{{.os}}</td>
<td>{{.kubernetes}}</td>
<td>{{.docker}}</td>
</tr>
{{ end }}
</tbody>
</table>
+17
View File
@@ -0,0 +1,17 @@
{{ range .Site.Data.homepage.testimonial }}
<li class="js_slide testimonial m-a-sm">
<!-- <hr/> -->
<blockquote class="text-lg text-left p-a-md m-a-0">
<div class="p-b-sm">"{{.quote}}"</div>
<hr class="m-a-0" />
<div class="row middle-md between-md p-a-sm border-right">
<div class="col-md-2 p-a-sm p-l-0">
<img src="{{ .Site.BaseURL }}/img/quotelogos/{{.logo}}" alt="{{.company}}">
</div>
<div class="col-md-10 p-a-0">
<cite class="text-md text-left p-l-sm">{{.source}},<br/>{{.position}}, {{.company}}</cite>
</div>
</div>
</blockquote>
</li>
{{ end }}
+9
View File
@@ -0,0 +1,9 @@
<button class="modal-open btn border-btn" data-launch-id="{{.Get `modalContentId`}}">{{.Get "buttonText"}}</button>
<div class="modal-content" id="{{.Get `modalContentId`}}">
<div id="content">{{.Inner}}</div>
<div id="footer-button-label" data-footer-label="{{.Get `modalFooterButtonLabel`}}"></div>
<div id="css-classes" data-css-classes="{{.Get `modalCssClasses`}}"></div>
<div id="close-label" data-close-label="{{.Get `modalCloseLabel`}}"></div>
<div id="include-footer" data-include-footer="{{.Get `includeFooter`}}"></div>
<div id="sticky-footer" data-sticky-footer="{{.Get `stickyFooter`}}"></div>
</div>
+14
View File
@@ -0,0 +1,14 @@
<div class="row">
{{ range .Site.Data.partners.partner }}
<div class="col-md-3 box m-a-sm">
<img src="{{ .Site.BaseURL }}/img/{{.logo}}" height="50" alt="{{.name}}">
<h3>{{.name}}</h3>
<p>{{.description}}</p>
<span class="row">
{{ range .type }}
<span class="bg-accent tag">{{ . }}</span>
{{ end }}
</span>
</div>
{{ end }}
</div>
+20
View File
@@ -0,0 +1,20 @@
<table>
<thead>
<tr>
<th>Rancher Version</th>
<th>Release Date</th>
<th>End full support</th>
<th>Dend maintainance support</th>
</tr>
</thead>
<tbody>
{{ range .Site.Data.support.table }}
<tr>
<td>{{.rancher}}</td>
<td>{{.release}}</td>
<td>{{.full}}</td>
<td>{{.maintain}}</td>
</tr>
{{ end }}
</tbody>
</table>
+22
View File
@@ -0,0 +1,22 @@
<div class="slider js_slider js_multislides multislides">
<div class="frame js_frame">
<ul class="testimonials slides js_slides">
{{ range .Site.Data.testimonials.testimonial }}
<li class="js_slide testimonial">
<div class="p-a-xs bg-accent">{{.company}}</div>
<div class="p-a-sm">
<img src="{{ .Site.BaseURL }}/img/quotelogos/{{.logo}}" height="50" alt="{{.company}}">
<p>{{.quote}}</p>
<cite>{{.source}}, {{.position}}</cite>
</div>
</li>
{{ end }}
</ul>
</div>
<span class="js_prev prev">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M302.67 90.877l55.77 55.508L254.575 250.75 358.44 355.116l-55.77 55.506L143.56 250.75z"/></g></svg>
</span>
<span class="js_next next">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 501.5 501.5"><g><path fill="#2E435A" d="M199.33 410.622l-55.77-55.508L247.425 250.75 143.56 146.384l55.77-55.507L358.44 250.75z"/></g></svg>
</span>
</div>