mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Update documentation for v0.9
Auto-generated from v0.9.0 by 'update-gh-pages.sh'
This commit is contained in:
parent
0a458308f2
commit
96d505b9f3
50 changed files with 3415 additions and 1 deletions
2
stable
2
stable
|
@ -1 +1 @@
|
|||
v0.8/
|
||||
v0.9/
|
1
v0.9/404.html
Normal file
1
v0.9/404.html
Normal file
File diff suppressed because one or more lines are too long
78
v0.9/advanced/developer-guide.html
Normal file
78
v0.9/advanced/developer-guide.html
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/advanced/index.html
Normal file
1
v0.9/advanced/index.html
Normal file
File diff suppressed because one or more lines are too long
13
v0.9/advanced/master-commandline-reference.html
Normal file
13
v0.9/advanced/master-commandline-reference.html
Normal file
File diff suppressed because one or more lines are too long
14
v0.9/advanced/worker-commandline-reference.html
Normal file
14
v0.9/advanced/worker-commandline-reference.html
Normal file
File diff suppressed because one or more lines are too long
45
v0.9/advanced/worker-configuration-reference.html
Normal file
45
v0.9/advanced/worker-configuration-reference.html
Normal file
File diff suppressed because one or more lines are too long
BIN
v0.9/assets/css/fonts/Roboto-Slab-Bold.woff
Normal file
BIN
v0.9/assets/css/fonts/Roboto-Slab-Bold.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/Roboto-Slab-Bold.woff2
Normal file
BIN
v0.9/assets/css/fonts/Roboto-Slab-Bold.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/Roboto-Slab-Regular.woff
Normal file
BIN
v0.9/assets/css/fonts/Roboto-Slab-Regular.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/Roboto-Slab-Regular.woff2
Normal file
BIN
v0.9/assets/css/fonts/Roboto-Slab-Regular.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/fontawesome-webfont.eot
Normal file
BIN
v0.9/assets/css/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
2671
v0.9/assets/css/fonts/fontawesome-webfont.svg
Normal file
2671
v0.9/assets/css/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 434 KiB |
BIN
v0.9/assets/css/fonts/fontawesome-webfont.ttf
Normal file
BIN
v0.9/assets/css/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/fontawesome-webfont.woff
Normal file
BIN
v0.9/assets/css/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/fontawesome-webfont.woff2
Normal file
BIN
v0.9/assets/css/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-bold-italic.woff
Normal file
BIN
v0.9/assets/css/fonts/lato-bold-italic.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-bold-italic.woff2
Normal file
BIN
v0.9/assets/css/fonts/lato-bold-italic.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-bold.woff
Normal file
BIN
v0.9/assets/css/fonts/lato-bold.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-bold.woff2
Normal file
BIN
v0.9/assets/css/fonts/lato-bold.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-normal-italic.woff
Normal file
BIN
v0.9/assets/css/fonts/lato-normal-italic.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-normal-italic.woff2
Normal file
BIN
v0.9/assets/css/fonts/lato-normal-italic.woff2
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-normal.woff
Normal file
BIN
v0.9/assets/css/fonts/lato-normal.woff
Normal file
Binary file not shown.
BIN
v0.9/assets/css/fonts/lato-normal.woff2
Normal file
BIN
v0.9/assets/css/fonts/lato-normal.woff2
Normal file
Binary file not shown.
1
v0.9/assets/css/theme.css
Normal file
1
v0.9/assets/css/theme.css
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/assets/css/theme.min.css
vendored
Normal file
1
v0.9/assets/css/theme.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
v0.9/assets/images/apple-touch-icon-300x300.jpg
Normal file
BIN
v0.9/assets/images/apple-touch-icon-300x300.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
BIN
v0.9/assets/images/favicon-16x16.png
Normal file
BIN
v0.9/assets/images/favicon-16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 260 B |
BIN
v0.9/assets/images/favicon-32x32.png
Normal file
BIN
v0.9/assets/images/favicon-32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 379 B |
BIN
v0.9/assets/images/favicon-96x96.png
Normal file
BIN
v0.9/assets/images/favicon-96x96.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 662 B |
5
v0.9/assets/images/favicon.svg
Normal file
5
v0.9/assets/images/favicon.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!-- material-design-icons article 32x32 -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#2980b9" width="32px" height="32px">
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 335 B |
2
v0.9/assets/js/jquery.min.js
vendored
Normal file
2
v0.9/assets/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
31
v0.9/assets/js/mermaid.min.js
vendored
Normal file
31
v0.9/assets/js/mermaid.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
287
v0.9/assets/js/theme.js
Normal file
287
v0.9/assets/js/theme.js
Normal file
|
@ -0,0 +1,287 @@
|
|||
function search(data) {
|
||||
let text = new URL(location.href).searchParams.get("q");
|
||||
let lang = new URL(location.href).searchParams.get("lang") || ui.lang;
|
||||
|
||||
$("input[name='q']").val(text);
|
||||
|
||||
let results = [];
|
||||
let regexp = new RegExp();
|
||||
try {
|
||||
regexp = new RegExp(text, "im");
|
||||
} catch (e) {
|
||||
$(".search-results .content").empty();
|
||||
$(".search-results .summary").html(ui.i18n.search_results_not_found);
|
||||
$(".search-results h2").html(ui.i18n.search_results);
|
||||
return debug(e.message);
|
||||
}
|
||||
|
||||
function slice(content, min, max) {
|
||||
return content
|
||||
.slice(min, max)
|
||||
.replace(regexp, (match) => `<span class="bg-yellow">${match}</span>`);
|
||||
}
|
||||
for (page of data) {
|
||||
let [title, content] = [null, null];
|
||||
try {
|
||||
if (page.title) {
|
||||
title = page.title.match(regexp);
|
||||
} else {
|
||||
if (page.url == "/") {
|
||||
page.title = ui.title;
|
||||
} else {
|
||||
page.title = page.url;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
debug(e.message);
|
||||
}
|
||||
try {
|
||||
if (page.content) {
|
||||
page.content = $("<div/>").html(page.content).text();
|
||||
content = page.content.match(regexp);
|
||||
}
|
||||
} catch (e) {
|
||||
debug(e.message);
|
||||
}
|
||||
if (title || content) {
|
||||
let result = [
|
||||
`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`,
|
||||
];
|
||||
if (content) {
|
||||
let [min, max] = [content.index - 100, content.index + 100];
|
||||
let [prefix, suffix] = ["...", "..."];
|
||||
|
||||
if (min < 0) {
|
||||
prefix = "";
|
||||
min = 0;
|
||||
}
|
||||
if (max > page.content.length) {
|
||||
suffix = "";
|
||||
max = page.content.length;
|
||||
}
|
||||
result.push(
|
||||
`<p class="text-gray">${prefix}${slice(
|
||||
page.content,
|
||||
min,
|
||||
max
|
||||
)}${suffix}</p>`
|
||||
);
|
||||
}
|
||||
results.push(`<li class="border-top py-4">${result.join("")}</li>`);
|
||||
}
|
||||
}
|
||||
if (results.length > 0 && text.length > 0) {
|
||||
$(".search-results .content").html(results.join(""));
|
||||
$(".search-results .summary").html(
|
||||
ui.i18n.search_results_found.replace("#", results.length)
|
||||
);
|
||||
} else {
|
||||
$(".search-results .content").empty();
|
||||
$(".search-results .summary").html(ui.i18n.search_results_not_found);
|
||||
}
|
||||
$(".search-results h2").html(ui.i18n.search_results);
|
||||
}
|
||||
|
||||
function initialize(name) {
|
||||
let link = $(".toctree").find(`[href="${decodeURI(name)}"]`);
|
||||
|
||||
if (link.length > 0) {
|
||||
$(".toctree .current").removeClass("current");
|
||||
link.addClass("current");
|
||||
link.closest(".level-1").parent().addClass("current");
|
||||
for (let i = 1; i <= 11; i++) {
|
||||
link.closest(`.level-${i}`).addClass("current");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function toggleCurrent(link) {
|
||||
let closest = link.closest("li");
|
||||
closest.siblings("li.current").removeClass("current");
|
||||
closest.siblings().find("li.current").removeClass("current");
|
||||
closest.find("> ul li.current").removeClass("current");
|
||||
closest.toggleClass("current");
|
||||
}
|
||||
|
||||
function toc() {
|
||||
$(".toctree li.current")
|
||||
.append('<ul class="content-toc"></ul>')
|
||||
.html(function () {
|
||||
let level = parseInt(this.dataset.level);
|
||||
let temp = 0;
|
||||
let stack = [$(this).find(".content-toc")];
|
||||
|
||||
$(".markdown-body")
|
||||
.find("h2,h3,h4,h5,h6")
|
||||
.each(function () {
|
||||
let anchor = $("<a/>")
|
||||
.addClass("d-flex flex-items-baseline")
|
||||
.text($(this).text())
|
||||
.attr("href", `#${this.id}`);
|
||||
let tagLevel = parseInt(this.tagName.slice(1)) - 1;
|
||||
|
||||
if (tagLevel > temp) {
|
||||
let parent = stack[0].children("li:last")[0];
|
||||
if (parent) {
|
||||
stack.unshift($("<ul/>").appendTo(parent));
|
||||
}
|
||||
} else {
|
||||
stack.splice(
|
||||
0,
|
||||
Math.min(temp - tagLevel, Math.max(stack.length - 1, 0))
|
||||
);
|
||||
}
|
||||
temp = tagLevel;
|
||||
|
||||
$("<li/>")
|
||||
.addClass(`toc level-${level + tagLevel}`)
|
||||
.append(anchor)
|
||||
.appendTo(stack[0]);
|
||||
});
|
||||
if (!stack[0].html()) {
|
||||
stack[0].remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function set(name, value) {
|
||||
return localStorage.setItem(name, value);
|
||||
}
|
||||
|
||||
function get(name) {
|
||||
return localStorage.getItem(name) || false;
|
||||
}
|
||||
|
||||
function debug() {
|
||||
console.debug.apply(console, arguments);
|
||||
}
|
||||
|
||||
function restore() {
|
||||
let scroll = get("scroll");
|
||||
let scrollTime = get("scrollTime");
|
||||
let scrollHost = get("scrollHost");
|
||||
|
||||
if (scroll && scrollTime && scrollHost) {
|
||||
if (scrollHost == location.host && Date.now() - scrollTime < 6e5) {
|
||||
$(".sidebar").scrollTop(scroll);
|
||||
}
|
||||
}
|
||||
$(".sidebar").scroll(function () {
|
||||
set("scroll", this.scrollTop);
|
||||
set("scrollTime", Date.now());
|
||||
set("scrollHost", location.host);
|
||||
});
|
||||
}
|
||||
|
||||
function highlight() {
|
||||
let text = new URL(location.href).searchParams.get("highlight");
|
||||
|
||||
if (text) {
|
||||
$(".markdown-body")
|
||||
.find("*")
|
||||
.each(function () {
|
||||
try {
|
||||
if (this.outerHTML.match(new RegExp(text, "im"))) {
|
||||
$(this).addClass("search-result");
|
||||
$(this).parentsUntil(".markdown-body").removeClass("search-result");
|
||||
}
|
||||
} catch (e) {
|
||||
debug(e.message);
|
||||
}
|
||||
});
|
||||
// last node
|
||||
$(".search-result").each(function () {
|
||||
$(this).html(function (i, html) {
|
||||
return html.replace(text, `<span class="bg-yellow">${text}</span>`);
|
||||
});
|
||||
});
|
||||
$(".search input").val(text);
|
||||
}
|
||||
}
|
||||
|
||||
$(window).bind("hashchange", () =>
|
||||
initialize(location.hash || location.pathname)
|
||||
);
|
||||
|
||||
$(document).on("scroll", function () {
|
||||
let start = $(this).scrollTop() + 5;
|
||||
let items = [];
|
||||
|
||||
$(".markdown-body")
|
||||
.find("h1,h2,h3,h4,h5,h6")
|
||||
.each(function () {
|
||||
items.push({
|
||||
offset: $(this).offset().top,
|
||||
id: this.id,
|
||||
level: parseInt(this.tagName.slice(1)),
|
||||
});
|
||||
});
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
if (start > items[i].offset) {
|
||||
if (i < items.length - 1) {
|
||||
if (start < items[i + 1].offset) {
|
||||
if (items[i].level == 1) {
|
||||
initialize(location.pathname);
|
||||
} else {
|
||||
initialize("#" + items[i].id);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
initialize("#" + items[i].id);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#toggle").click(function () {
|
||||
$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift");
|
||||
});
|
||||
$(".status").click(function () {
|
||||
$(".addons").toggleClass("d-none");
|
||||
});
|
||||
|
||||
if (location.pathname == `${ui.baseurl}/search.html`) {
|
||||
$.ajax(`${ui.baseurl}/pages.json`)
|
||||
.done(search)
|
||||
.fail((xhr, message) => debug(message));
|
||||
}
|
||||
|
||||
toc();
|
||||
initialize(location.pathname);
|
||||
initialize(location.hash);
|
||||
restore();
|
||||
highlight();
|
||||
|
||||
/* nested ul */
|
||||
$(".toc ul")
|
||||
.siblings("a")
|
||||
.each(function () {
|
||||
let link = $(this);
|
||||
let expand = $('<i class="fa fa-plus-square-o"></i>');
|
||||
|
||||
expand.on("click", function (e) {
|
||||
e.stopPropagation();
|
||||
toggleCurrent(link);
|
||||
return false;
|
||||
});
|
||||
link.prepend(expand);
|
||||
});
|
||||
|
||||
$(".markdown-body :header").append(function () {
|
||||
return `<a href="#${this.id}" class="anchor"><i class="octicon-link fa fa-link text-blue"></i></a>`;
|
||||
});
|
||||
|
||||
$("div.highlighter-rouge").each(function () {
|
||||
const match = $(this)
|
||||
.attr("class")
|
||||
.match(/language-(\w+)/);
|
||||
if (match) {
|
||||
$(this).attr("data-lang", match[1]);
|
||||
}
|
||||
});
|
||||
|
||||
if ("serviceWorker" in navigator) {
|
||||
navigator.serviceWorker.register(`${ui.baseurl}/sw.caches.js`);
|
||||
} else {
|
||||
debug("Service Worker not supported!");
|
||||
}
|
1
v0.9/assets/js/theme.min.js
vendored
Normal file
1
v0.9/assets/js/theme.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/contributing/index.html
Normal file
1
v0.9/contributing/index.html
Normal file
File diff suppressed because one or more lines are too long
70
v0.9/get-started/deployment-and-usage.html
Normal file
70
v0.9/get-started/deployment-and-usage.html
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/get-started/examples-and-demos.html
Normal file
1
v0.9/get-started/examples-and-demos.html
Normal file
File diff suppressed because one or more lines are too long
104
v0.9/get-started/features.html
Normal file
104
v0.9/get-started/features.html
Normal file
File diff suppressed because one or more lines are too long
25
v0.9/get-started/index.html
Normal file
25
v0.9/get-started/index.html
Normal file
File diff suppressed because one or more lines are too long
14
v0.9/get-started/introduction.html
Normal file
14
v0.9/get-started/introduction.html
Normal file
File diff suppressed because one or more lines are too long
32
v0.9/get-started/quick-start.html
Normal file
32
v0.9/get-started/quick-start.html
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/index.html
Normal file
1
v0.9/index.html
Normal file
|
@ -0,0 +1 @@
|
|||
<meta http-equiv="refresh" content="0; URL='get-started/index.html'" />
|
6
v0.9/mdl-style.rb
Normal file
6
v0.9/mdl-style.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
all
|
||||
# Exclude MD041 - First line in file should be a top level header
|
||||
exclude_rule 'MD041'
|
||||
rule 'MD013', :tables => false
|
||||
rule 'MD013', :code_blocks => false
|
||||
rule 'MD024', :allow_different_nesting => true
|
1
v0.9/pages.json
Normal file
1
v0.9/pages.json
Normal file
File diff suppressed because one or more lines are too long
4
v0.9/robots.txt
Normal file
4
v0.9/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/sitemap.xml
|
1
v0.9/search.html
Normal file
1
v0.9/search.html
Normal file
File diff suppressed because one or more lines are too long
1
v0.9/sitemap.xml
Normal file
1
v0.9/sitemap.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/advanced/developer-guide.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/introduction.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/advanced/</loc> <priority>0.1</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/advanced/master-commandline-reference.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/quick-start.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/contributing/</loc> <priority>0.5</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/advanced/worker-commandline-reference.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/deployment-and-usage.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/features.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/advanced/worker-configuration-reference.html</loc> <priority>1.0</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url><url> <loc>https://kubernetes-sigs.github.com/node-feature-discovery/v0.9/get-started/examples-and-demos.html</loc> <priority>0.6</priority> <lastmod>2021-08-19T23:24:35-05:00</lastmod> </url> </urlset>
|
1
v0.9/sw.caches.js
Normal file
1
v0.9/sw.caches.js
Normal file
|
@ -0,0 +1 @@
|
|||
self.addEventListener("activate", function (event) { const current = ["rundocs-2.0.9"]; event.waitUntil( caches.keys().then(function (keyList) { return Promise.all( keyList.map(function (key) { if (current.indexOf(key) === -1) { return caches.delete(key); } }) ); }) ); }); self.addEventListener("fetch", function (e) { if (e.request.url.match("rundocs/jekyll-rtd-theme@2.0.9")) { e.respondWith( caches.match(e.request).then(function (resp) { if (resp !== undefined) { return resp; } else { return fetch(e.request, { cache: "no-store", }) .then(function (resp) { let clone = resp.clone(); caches.open("rundocs-2.0.9").then(function (cache) { cache.put(e.request, clone); }); return resp; }) .catch(console.log); } }) ); } });
|
|
@ -5,5 +5,6 @@ function getVersionListItems() {
|
|||
{ name: 'v0.6', url: '/node-feature-discovery/v0.6' },
|
||||
{ name: 'v0.7', url: '/node-feature-discovery/v0.7' },
|
||||
{ name: 'v0.8', url: '/node-feature-discovery/v0.8' },
|
||||
{ name: 'v0.9', url: '/node-feature-discovery/v0.9' },
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue