Skip to content

Commit

Permalink
Documentation update for 3.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Jun 7, 2024
1 parent d92f6fa commit a3b14e2
Show file tree
Hide file tree
Showing 45 changed files with 3,104 additions and 3,074 deletions.
27 changes: 14 additions & 13 deletions _inheritance.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

<!DOCTYPE html>

<html lang="en" data-content_root="./">
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>Test Suite Inheritance Diagram &#8212; Blivet 3.10.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=514cf933" />
<title>Test Suite Inheritance Diagram &#8212; Blivet 3.10.1 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

<script src="_static/documentation_options.js?v=f8d09eac"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>

<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
Expand All @@ -25,7 +26,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Test Suite Inheritance Diagram</a></li>
</ul>
</div>
Expand All @@ -36,7 +37,7 @@ <h3>Navigation</h3>
<div class="body" role="main">

<section id="test-suite-inheritance-diagram">
<h1>Test Suite Inheritance Diagram<a class="headerlink" href="#test-suite-inheritance-diagram" title="Link to this heading"></a></h1>
<h1>Test Suite Inheritance Diagram<a class="headerlink" href="#test-suite-inheritance-diagram" title="Permalink to this heading"></a></h1>
<p>Blivet’s test suite relies on the base classes shown below. These classes
take care of working with fake block or loop devices.</p>
<p>Actual test cases inherit either <a class="reference external" href="https://docs.python.org/3/library/unittest.html#unittest.TestCase" title="(in Python v3.12)"><code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.TestCase</span></code></a> or one of
Expand Down Expand Up @@ -89,13 +90,13 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Test Suite Inheritance Diagram</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.2.1.
</div>
</body>
</html>
22 changes: 0 additions & 22 deletions _static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ a.headerlink {
visibility: hidden;
}

a:visited {
color: #551A8B;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
Expand Down Expand Up @@ -674,16 +670,6 @@ dd {
margin-left: 30px;
}

.sig dd {
margin-top: 0px;
margin-bottom: 0px;
}

.sig dl {
margin-top: 0px;
margin-bottom: 0px;
}

dl > dd:last-child,
dl > dd:last-child > :last-child {
margin-bottom: 0;
Expand Down Expand Up @@ -752,14 +738,6 @@ abbr, acronym {
cursor: help;
}

.translated {
background-color: rgba(207, 255, 207, 0.2)
}

.untranslated {
background-color: rgba(255, 207, 207, 0.2)
}

/* -- code displays --------------------------------------------------------- */

pre {
Expand Down
2 changes: 1 addition & 1 deletion _static/classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ a {
}

a:visited {
color: #551a8b;
color: #355f7c;
text-decoration: none;
}

Expand Down
5 changes: 3 additions & 2 deletions _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '3.10.0',
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.10.1',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
1 change: 0 additions & 1 deletion _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
Expand Down
26 changes: 9 additions & 17 deletions _static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ const _removeChildren = (element) => {
const _escapeRegExp = (string) =>
string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string

const _displayItem = (item, searchTerms, highlightTerms) => {
const _displayItem = (item, searchTerms) => {
const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT;
const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
const contentRoot = document.documentElement.dataset.content_root;

const [docName, title, anchor, descr, score, _filename] = item;

Expand All @@ -75,24 +75,20 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
if (dirname.match(/\/index\/$/))
dirname = dirname.substring(0, dirname.length - 6);
else if (dirname === "index/") dirname = "";
requestUrl = contentRoot + dirname;
requestUrl = docUrlRoot + dirname;
linkUrl = requestUrl;
} else {
// normal html builders
requestUrl = contentRoot + docName + docFileSuffix;
requestUrl = docUrlRoot + docName + docFileSuffix;
linkUrl = docName + docLinkSuffix;
}
let linkEl = listItem.appendChild(document.createElement("a"));
linkEl.href = linkUrl + anchor;
linkEl.dataset.score = score;
linkEl.innerHTML = title;
if (descr) {
if (descr)
listItem.appendChild(document.createElement("span")).innerHTML =
" (" + descr + ")";
// highlight search terms in the description
if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
}
else if (showSearchSummary)
fetch(requestUrl)
.then((responseData) => responseData.text())
Expand All @@ -101,9 +97,6 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
listItem.appendChild(
Search.makeSearchSummary(data, searchTerms)
);
// highlight search terms in the summary
if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
});
Search.output.appendChild(listItem);
};
Expand All @@ -122,15 +115,14 @@ const _finishSearch = (resultCount) => {
const _displayNextItem = (
results,
resultCount,
searchTerms,
highlightTerms,
searchTerms
) => {
// results left, load the summary and display it
// this is intended to be dynamic (don't sub resultsCount)
if (results.length) {
_displayItem(results.pop(), searchTerms, highlightTerms);
_displayItem(results.pop(), searchTerms);
setTimeout(
() => _displayNextItem(results, resultCount, searchTerms, highlightTerms),
() => _displayNextItem(results, resultCount, searchTerms),
5
);
}
Expand Down Expand Up @@ -368,7 +360,7 @@ const Search = {
// console.info("search results:", Search.lastresults);

// print the results
_displayNextItem(results, results.length, searchTerms, highlightTerms);
_displayNextItem(results, results.length, searchTerms);
},

/**
Expand Down
16 changes: 3 additions & 13 deletions _static/sphinx_highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,14 @@ const _highlight = (node, addItems, text, className) => {
}

span.appendChild(document.createTextNode(val.substr(pos, text.length)));
const rest = document.createTextNode(val.substr(pos + text.length));
parent.insertBefore(
span,
parent.insertBefore(
rest,
document.createTextNode(val.substr(pos + text.length)),
node.nextSibling
)
);
node.nodeValue = val.substr(0, pos);
/* There may be more occurrences of search term in this node. So call this
* function recursively on the remaining fragment.
*/
_highlight(rest, addItems, text, className);

if (isInSVG) {
const rect = document.createElementNS(
Expand Down Expand Up @@ -145,10 +140,5 @@ const SphinxHighlight = {
},
};

_ready(() => {
/* Do not call highlightSearchWords() when we are on the search page.
* It will highlight words from the *previous* search query.
*/
if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords();
SphinxHighlight.initEscapeListener();
});
_ready(SphinxHighlight.highlightSearchWords);
_ready(SphinxHighlight.initEscapeListener);
31 changes: 16 additions & 15 deletions api.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

<!DOCTYPE html>

<html lang="en" data-content_root="./">
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>Public API &#8212; Blivet 3.10.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=514cf933" />
<title>Public API &#8212; Blivet 3.10.1 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

<script src="_static/documentation_options.js?v=f8d09eac"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>

<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
Expand All @@ -33,7 +34,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="intro.html" title="Introduction to Blivet"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Public API</a></li>
</ul>
</div>
Expand All @@ -44,9 +45,9 @@ <h3>Navigation</h3>
<div class="body" role="main">

<section id="public-api">
<h1>Public API<a class="headerlink" href="#public-api" title="Link to this heading"></a></h1>
<h1>Public API<a class="headerlink" href="#public-api" title="Permalink to this heading"></a></h1>
<section id="api-specification">
<h2>API Specification<a class="headerlink" href="#api-specification" title="Link to this heading"></a></h2>
<h2>API Specification<a class="headerlink" href="#api-specification" title="Permalink to this heading"></a></h2>
<p>This should be considered an exhaustive listing of blivet’s public API.
Anything not listed should be considered unstable and subject to change
between minor releases.</p>
Expand All @@ -61,7 +62,7 @@ <h2>API Specification<a class="headerlink" href="#api-specification" title="Link
</ul>
</div>
<section id="explanation">
<h3>Explanation<a class="headerlink" href="#explanation" title="Link to this heading"></a></h3>
<h3>Explanation<a class="headerlink" href="#explanation" title="Permalink to this heading"></a></h3>
<p>In general, anything listed is public and anything not listed is not public.
There are a couple of strange situations that deserve explanation:</p>
<ul class="simple">
Expand Down Expand Up @@ -194,13 +195,13 @@ <h3>Navigation</h3>
<li class="right" >
<a href="intro.html" title="Introduction to Blivet"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Public API</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.2.1.
</div>
</body>
</html>
27 changes: 14 additions & 13 deletions api/blivet.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

<!DOCTYPE html>

<html lang="en" data-content_root="../">
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>blivet &#8212; Blivet 3.10.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css?v=514cf933" />
<title>blivet &#8212; Blivet 3.10.1 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />

<script src="../_static/documentation_options.js?v=f8d09eac"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx_highlight.js"></script>

<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand All @@ -33,7 +34,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../api.html" title="Public API"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../api.html" accesskey="U">Public API</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">blivet</a></li>
</ul>
Expand All @@ -45,7 +46,7 @@ <h3>Navigation</h3>
<div class="body" role="main">

<section id="blivet">
<h1>blivet<a class="headerlink" href="#blivet" title="Link to this heading"></a></h1>
<h1>blivet<a class="headerlink" href="#blivet" title="Permalink to this heading"></a></h1>
<div class="toctree-wrapper compound">
</div>
<ul class="simple">
Expand Down Expand Up @@ -453,14 +454,14 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../api.html" title="Public API"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Blivet 3.10.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">Blivet 3.10.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../api.html" >Public API</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">blivet</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
&#169; Copyright 2013-2024, Red Hat, Inc..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.2.1.
</div>
</body>
</html>
Loading

0 comments on commit a3b14e2

Please sign in to comment.