chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:22 +08:00
commit a41b2ab474
303 changed files with 64772 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<a style="padding-bottom: 0px;" class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
{% block brand_content %}
{%- if logo_url %}
<div class="sidebar-logo-container">
<img class="sidebar-logo" src="{{ logo_url }}" alt="Logo" />
</div>
{%- endif %}
{%- if theme_light_logo and theme_dark_logo %}
<div class="sidebar-logo-container">
<img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo" />
<img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo" />
</div>
{%- endif %}
{% if not theme_sidebar_hide_name %}
<span style="margin-bottom:0px" class="sidebar-brand-text">
{{ docstitle if docstitle else project }}
</span>
{%- endif %}
{% endblock brand_content %}
</a>
<div style="margin-left: 12px; margin-top: 4px;">
<a style="margin-top: 6px;" class="github-button" href="https://github.com/cleanlab/cleanlab" data-size="large" data-show-count="true"
aria-label="Star cleanlab/cleanlab on GitHub">Star</a>
</div>
+66
View File
@@ -0,0 +1,66 @@
{% 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 %}
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to the latest release/tag</title>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="0; url=stable_url" />
<link rel="canonical" href="https://docs.cleanlab.ai/" />
</head>
</html>
+65
View File
@@ -0,0 +1,65 @@
{% if versions %}
<!-- Start of versioning -->
<div class="sidebar-tree">
<p class="caption" role="heading">
<span class="caption-text">{{ _('Versions') }}</span>
</p>
<ul>
<li class="toctree-l1">
<a
id="version_number"
class="reference internal"
href="{{ DOCS_SITE_URL }}"
>stable</a
>
</li>
<li class="toctree-l1">
<a
id="commit_hash"
class="reference internal"
href="{{DOCS_SITE_URL}}master/"
>developer</a
>
</li>
{% for version in RELEASE_VERSIONS %}
<li class="toctree-l1">
<a
id="{{ version }}"
class="reference internal"
href="{{DOCS_SITE_URL}}{{version}}/"
>{{version}}</a
>
</li>
{% endfor %}
</ul>
</div>
<br>
<br>
<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 commit_hash = Version.commit_hash;
document.getElementById("version_number").innerHTML =
"stable <code class='docutils literal notranslate'><span class='pre'> (" +
version_number +
")</span></code>";
document.getElementById("commit_hash").innerHTML =
"master <code class='docutils literal notranslate'><span class='pre'> (" +
commit_hash.slice(0, 7) +
"&hellip;)</span></code>";
});
</script>
<!-- End of versioning -->
{% endif %}
+4
View File
@@ -0,0 +1,4 @@
var Version = {
version_number: "placeholder_version_number",
commit_hash: "placeholder_commit_hash",
};