67 lines
2.9 KiB
HTML
67 lines
2.9 KiB
HTML
{% extends "!page.html" %} {% block content %}
|
|
|
|
<noscript>
|
|
<div class="admonition warning">
|
|
<p class="admonition-title">Warning</p>
|
|
<p>
|
|
Parts of this site uses JavaScript, but your browser does not
|
|
support it.
|
|
</p>
|
|
</div>
|
|
</noscript>
|
|
|
|
{% if current_version %}
|
|
|
|
<!-- Start of Version Warning Banner -->
|
|
|
|
<p id="doc_ver_warning"></p>
|
|
|
|
<script type="text/javascript" src="{{ DOCS_SITE_URL }}versioning.js"></script>
|
|
<script type="text/javascript">
|
|
window.addEventListener("load", () => {
|
|
const version_number = Version.version_number;
|
|
const path_arr = window.location.pathname.split("/");
|
|
|
|
if (path_arr.includes("master")) {
|
|
document.getElementById(
|
|
"doc_ver_warning"
|
|
).innerHTML = `<div class="admonition warning">
|
|
<p class="admonition-title">Warning</p>
|
|
<p>This version of the documentation corresponds to the master branch of <code class="docutils literal notranslate"><span class="pre">cleanlab</span></code> source code from <a href="https://github.com/cleanlab/cleanlab/">GitHub</a>. To see the documentation for the latest <code class="docutils literal notranslate"><span class="pre">pip</span></code>-installed version, click <a href="{{ DOCS_SITE_URL }}">here</a>.</p>
|
|
</div>`;
|
|
} else if (
|
|
!path_arr.includes(version_number) &&
|
|
!path_arr.includes("stable")
|
|
) {
|
|
document.getElementById("doc_ver_warning").innerHTML =
|
|
`<div class="admonition warning">
|
|
<p class="admonition-title">Warning</p>
|
|
<p>This documentation is for an old version (<code class="docutils literal notranslate"><span class="pre">{{ current_version.name }}</span></code>) of <code class="docutils literal notranslate"><span class="pre">cleanlab</span></code>. To see the documentation for the latest stable version (<code class="docutils literal notranslate"><span class="pre">` +
|
|
version_number +
|
|
`</span></code>), click <a href="{{ DOCS_SITE_URL }}">here</a>.</p>
|
|
</div>`;
|
|
} else {
|
|
document.getElementById("doc_ver_warning").remove();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<!-- End of Version Warning Banner -->
|
|
|
|
{% endif %} {{ super() }} {% endblock %} {% block footer %} {{ super() }}
|
|
|
|
<script type="text/javascript">
|
|
window.addEventListener("load", () => {
|
|
let elements = document.getElementsByClassName("left-details");
|
|
|
|
elements[0].insertAdjacentHTML(
|
|
"afterbegin",
|
|
`<code class="docutils literal notranslate"><span class="pre">cleanlab</span></code> is distributed on <a href="https://pypi.org/project/cleanlab/">PyPI</a> and <a href="https://anaconda.org/conda-forge/cleanlab">conda</a>.`
|
|
);
|
|
});
|
|
</script>
|
|
|
|
{% endblock %} {% block regular_scripts %}{{ super() }}
|
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
{% endblock %}
|