118 lines
5.4 KiB
HTML
118 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html id="docs" lang="en" class="{{ .Params.class }}">
|
|
<head>
|
|
{{ partial "head.html" . }}
|
|
</head>
|
|
<body>
|
|
{{ partial "header.html" . }}
|
|
{{ block "hero" . }}
|
|
<!-- HERO -->
|
|
<section id="hero" class="light-text no-sub">
|
|
{{ partial "docs/top-menu.html" . }}
|
|
</section>
|
|
{{ end }}
|
|
{{ block "deprecation" . }}{{ partial "deprecation-warning.html" . }}{{ end }}
|
|
<section id="encyclopedia">
|
|
{{ block "side-menu" . }}<div id="docsToc" style="display:none;"></div>{{ end }}
|
|
<div id="{{ block "content-id" . }}docsContent{{ end }}">
|
|
{{ block "content" . }}{{ end }}
|
|
{{ if not .Params.hide_feedback }}
|
|
<h2>Feedback</h2>
|
|
<p class="feedback--prompt">Was this page helpful?</p>
|
|
<button class="button feedback--yes">Yes</button>
|
|
<button class="button feedback--no">No</button>
|
|
<p class="feedback--response feedback--response__hidden">
|
|
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes,
|
|
ask it on <a target="_blank" rel="noopener"
|
|
href="https://stackoverflow.com/questions/tagged/kubernetes">Stack Overflow</a>. Open
|
|
an issue in the GitHub repo if you want to <a class="feedback--link" target="_blank" rel="noopener"
|
|
href="https://github.com/kubernetes/website/issues/new?title=Issue%20with%20k8s.io">report a problem</a> or
|
|
<a class="feedback--link" target="_blank" rel="noopener"
|
|
href="https://github.com/kubernetes/website/issues/new?title=Improvement%20for%20k8s.io">suggest an improvement</a>.
|
|
</p>
|
|
<script>
|
|
const yes = document.querySelector('.feedback--yes');
|
|
const no = document.querySelector('.feedback--no');
|
|
document.querySelectorAll('.feedback--link').forEach(link => {
|
|
link.href = link.href + window.location.pathname;
|
|
});
|
|
const sendFeedback = (value) => {
|
|
if (!gtag) { console.log('!gtag'); }
|
|
gtag('event', 'click', {
|
|
'event_category': 'Helpful',
|
|
'event_label': window.location.pathname,
|
|
value
|
|
});
|
|
};
|
|
const disableButtons = () => {
|
|
yes.disabled = true;
|
|
yes.classList.add('feedback--button__disabled');
|
|
no.disabled = true;
|
|
no.classList.add('feedback--button__disabled');
|
|
};
|
|
yes.addEventListener('click', () => {
|
|
sendFeedback(1);
|
|
disableButtons();
|
|
document.querySelector('.feedback--response').classList.remove('feedback--response__hidden');
|
|
});
|
|
no.addEventListener('click', () => {
|
|
sendFeedback(0);
|
|
disableButtons();
|
|
document.querySelector('.feedback--response').classList.remove('feedback--response__hidden');
|
|
});
|
|
</script>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
<div id="pre-footer"> <!-- This is at the bottom of every topic underneath the TOC and content -->
|
|
<div class="issue-button-container">
|
|
<p><a href=""><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel" alt="Analytics" /></a></p>
|
|
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
|
|
{{ if not .Params.no_issue }}
|
|
<script type="text/javascript">
|
|
PDRTJS_settings_8345992 = {
|
|
"id" : "8345992",
|
|
"unique_id" : "{{ .RelPermalink }}",
|
|
"title" : "{{ .Title }}",
|
|
"permalink" : "{{ .Permalink }}"
|
|
};
|
|
(function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src=('https:'==document.location.protocol)?'https://polldaddy.com/js/rating/rating.js':'http://i0.poll.fm/js/rating/rating.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-rating-js'));
|
|
</script>
|
|
<a href="" onclick="window.open('https://github.com/kubernetes/website/issues/new?title=Issue%20with%20' +
|
|
'k8s.io'+window.location.pathname)" class="button issue">{{ T "main_github_create_an_issue" }}</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if not .Params.noedit }}
|
|
<a href="https://github.com/kubernetes/website/edit/master/content/{{ .Site.Language.Lang }}/{{ .File.Path }}" class="button issue">{{ T "main_edit_this_page" }}</a>
|
|
{{ end }}
|
|
</div>
|
|
{{ if not .Params.showcommit }}
|
|
{{ if $.GitInfo }}
|
|
<div id="lastedit" class="lastedit issue-button-container">
|
|
{{ T "main_page_last_modified_on" }} {{ .GitInfo.AuthorDate.Format "January 02, 2006 at 3:04 PM PST" }} {{ T "main_by" }} <a href="https://github.com/kubernetes/website/commit/{{ .GitInfo.Hash }}/">{{ .GitInfo.Subject }}</a> (<a href="https://github.com/kubernetes/website/commits/master/content/en/{{ .File.Path }}">{{ T "main_page_history" }}</a>)
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ partialCached "footer.html" . }}
|
|
{{ partialCached "footer-scripts.html" . }}
|
|
<script language="application/javascript">
|
|
// This script turns in-page headers into clickable and shareable
|
|
(function addHeadingLinks(){
|
|
var article = document.getElementById('docsContent');
|
|
var headings = article.querySelectorAll('h1, h2, h3, h4, h5, h6');
|
|
headings.forEach(function(heading){
|
|
if(heading.id){
|
|
var a = document.createElement('a');
|
|
a.innerHTML = heading.innerHTML;
|
|
a.href = '#'+heading.id;
|
|
a.classList.add('inpage_heading');
|
|
heading.innerHTML = '';
|
|
heading.appendChild(a);
|
|
}
|
|
});
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|