Manually copy k8s API ref docs to new Hugo site. (#8325)

* Manually copy k8s API ref docs to new Hugo site.

* Move k8s API ref docs to /static directory.

* Move k8s API ref docs up (not under /en).
This commit is contained in:
Steve Perry
2018-05-05 15:02:51 -07:00
committed by k8s-ci-robot
parent d139fe6527
commit 79e4272b55
18 changed files with 116968 additions and 0 deletions
@@ -0,0 +1,27 @@
$(document).ready(function() {
var codeTabs = $('#code-tabs-wrapper').find('li');
for (var i = 0; i < codeTabs.length; i++) {
createCodeTabListeners(codeTabs, i);
}
function createCodeTabListeners(codeTabs, index) {
var tab = $(codeTabs[index]),
id = tab.attr('id'),
codeClass = '.' + id;
tab.on('click', function() {
codeTabs.removeClass('tab-selected');
tab.addClass('tab-selected');
$('.code-block').removeClass('active');
$(codeClass).addClass('active');
});
}
function setDefautTab() {
$(codeTabs[0]).addClass('tab-selected');
$('.' + codeTabs[0].id).addClass('active');
}
setDefautTab();
});