π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
build(docs): drop furo, onnxruntime and PyYAML from the docs extra (#4304)
Dmytro Mishkin763462e457a1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1891277fd..7b093cd90 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -55,8 +55,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0restructured API reference with per-topic subpages, and a long list of fixed doc examples andremoved dead interactive demos. Old deep links into the split module pages(e.g. `augmentation.module.html#kornia.augmentation.RandomAffine`) are forwarded to the subpage- that now documents the object, so existing links keep resolving. The previous furo layout remains- available with `KORNIA_DOCS_THEME=furo`. (#4155)+ that now documents the object, so existing links keep resolving. The furo layout stayed available+ behind `KORNIA_DOCS_THEME=furo` until #4304 removed that fallback. (#4155)* An **Adoption** page (`community/adoption`) listing the most-starred GitHub repositories andpackages that depend on kornia, rendered at build time from `docs/source/_data/dependents.json`;`docs/fetch_dependents.py` refreshes that snapshot from GitHub's dependency graph. (#4155)diff --git a/docs/source/_static/css/main.css b/docs/source/_static/css/main.cssdeleted file mode 100644index cbff9b922..000000000--- a/docs/source/_static/css/main.css+++ /dev/null@@ -1,36 +0,0 @@-/* Kornia docs: small overrides on top of the furo theme. */--.sidebar-logo {- max-width: 30%;-}--/* Section captions in the sidebar toctree ("GET STARTED", "API REFERENCE", ...). A translucent- overlay reads well on both the light (blue) and dark sidebar backgrounds. */-.sidebar-scroll p.caption {- background-color: rgba(0, 0, 0, 0.18);- border-radius: 4px;- margin: 0.75rem 0.5rem 0.25rem;- padding: 0.35rem 0.75rem;- letter-spacing: 0.04em;-}--/* Wide benchmark and support tables scroll inside their own box instead of the whole page. */-.table-wrapper {- overflow-x: auto;-}--/* Landing-page module cards (sphinx-design). */-.kornia-cards .sd-card {- border-radius: 8px;- transition: transform 120ms ease-in-out, box-shadow 120ms ease-in-out;-}--.kornia-cards .sd-card:hover {- transform: translateY(-2px);- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);-}--.kornia-cards .sd-card-title {- font-family: var(--font-stack--monospace);- font-size: 0.95rem;-}diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.jsindex 8f9413216..290523a7b 100644--- a/docs/source/_static/js/custom.js+++ b/docs/source/_static/js/custom.js@@ -25,22 +25,6 @@// Based on https://github.com/huggingface/transformers/blob/master/docs/source/_static/js/custom.js-// TODO (Jian): probably update this by the latest https://buttons.github.io/, which added dark and light mode to align furo theme.---function addGithubButton() {- const div = `- <div class="github-repo" style="margin: auto">- <a- class="github-button"- href="https://github.com/kornia/kornia" data-size="large" data-show-count="true" aria-label="Star kornia/kornia on GitHub">- Star- </a>- </div>- `;- const brand = document.querySelector(".sidebar-brand"); // furo only; pydata has its own GitHub link- if (brand) brand.insertAdjacentHTML("afterend", div);-}/*!* github-buttons v2.2.10@@ -53,7 +37,6 @@ function addGithubButton() {function parseGithubButtons (){"use strict";var e=window.document,t=e.location,o=window.encodeURIComponent,r=window.decodeURIComponent,n=window.Math,a=window.HTMLElement,i=window.XMLHttpRequest,l="https://unpkg.com/[email protected]/dist/buttons.html",c=i&&i.prototype&&"withCredentials"in i.prototype,d=c&&a&&a.prototype.attachShadow&&!a.prototype.attachShadow.prototype,s=function(e,t,o){e.addEventListener?e.addEventListener(t,o):e.attachEvent("on"+t,o)},u=function(e,t,o){e.removeEventListener?e.removeEventListener(t,o):e.detachEvent("on"+t,o)},h=function(e,t,o){var r=function(n){return u(e,t,r),o(n)};s(e,t,r)},f=function(e,t,o){var r=function(n){if(t.test(e.readyState))return u(e,"readystatechange",r),o(n)};s(e,"readystatechange",r)},p=function(e){return function(t,o,r){var n=e.createElement(t);if(o)for(var a in o){var i=o[a];null!=i&&(null!=n[a]?n[a]=i:n.setAttribute(a,i))}if(r)for(var l=0,c=r.length;l<c;l++){var d=r[l];n.appendChild("string"==typeof d?e.createTextNode(d):d)}return n}},g=p(e),b=function(e){var t;return function(){t||(t=1,e.apply(this,arguments))}},m="body{margin:0}a{color:#24292e;text-decoration:none;outline:0}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor}.widget{ display:inline-block;overflow:hidden;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif;font-size:0;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn,.social-count{display:inline-block;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;border:1px solid #c5c9cc;border-radius:0.25em}.btn{background-color:#eff3f6;background-image:-webkit-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:-moz-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:linear-gradient(180deg, #fafbfc, #eff3f6 90%);background-position:-1px -1px;background-repeat:repeat-x;background-size:110% 110%;border-color:rgba(27,31,35,0.2);-ms-filter:\"progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5')\";*filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5')}.btn:active{background-color:#e9ecef;background-image:none;border-color:#a5a9ac;border-color:rgba(27,31,35,0.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,0.15)}.btn:focus,.btn:hover{background-color:#e6ebf1;background-image:-webkit-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:-moz-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:linear-gradient(180deg, #f0f3f6, #e6ebf1 90%);border-color:#a5a9ac;border-color:rgba(27,31,35,0.35);-ms-filter:\"progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0')\";*filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0')}.social-count{position:relative;margin-left:5px;background-color:#fff}.social-count:focus,.social-count:hover{color:#0366d6}.social-count b,.social-count i{position:absolute;top:50%;left:0;display:block;width:0;height:0;margin:-4px 0 0 -4px;border:solid transparent;border-width:4px 4px 4px 0;_line-height:0;_border-top-color:red !important;_border-bottom-color:red !important;_border-left-color:red !important;_filter:chroma(color=red)}.social-count b{border-right-color:#c5c9cc}.social-count i{margin-left:-3px;border-right-color:#fff}.lg .btn,.lg .social-count{height:16px;padding:5px 10px;font-size:12px;line-height:16px}.lg .social-count{margin-left:6px}.lg .social-count b,.lg .social-count i{margin:-5px 0 0 -5px;border-width:5px 5px 5px 0}.lg .social-count i{margin-left:-4px}\n",v={"mark-github":{width:16,height:16,path:'<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>'},eye:{width:16,height:16,path:'<path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/>'},star:{width:14,height:16,path:'<path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"/>'},"repo-forked":{width:10,height:16,path:'<path fill-rule="evenodd" d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/>'},"issue-opened":{width:14,height:16,path:'<path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/>'},"cloud-download":{width:16,height:16,path:'<path fill-rule="evenodd" d="M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z"/>'}},w={},x=function(e,t,o){var r=p(e.ownerDocument),n=e.appendChild(r("style",{type:"text/css"}));n.styleSheet?n.styleSheet.cssText=m:n.appendChild(e.ownerDocument.createTextNode(m));var a,l,d=r("a",{className:"btn",href:t.href,target:"_blank",innerHTML:(a=t["data-icon"],l=/^large$/i.test(t["data-size"])?16:14,a=(""+a).toLowerCase().replace(/^octicon-/,""),{}.hasOwnProperty.call(v,a)||(a="mark-github"),'<svg version="1.1" width="'+l*v[a].width/v[a].height+'" height="'+l+'" viewBox="0 0 '+v[a].width+" "+v[a].height+'" class="octicon octicon-'+a+'" aria-hidden="true">'+v[a].path+"</svg>"),"aria-label":t["aria-label"]||void 0},[" ",r("span",{},[t["data-text"]||""])]);/\.github\.com$/.test("."+d.hostname)?/^https?:\/\/((gist\.)?github\.com\/[^\/?#]+\/[^\/?#]+\/archive\/|github\.com\/[^\/?#]+\/[^\/?#]+\/releases\/download\/|codeload\.github\.com\/)/.test(d.href)&&(d.target="_top"):(d.href="#",d.target="_self");var u,h,g,x,y=e.appendChild(r("div",{className:"widget"+(/^large$/i.test(t["data-size"])?" lg":"")},[d]));/^(true|1)$/i.test(t["data-show-count"])&&"github.com"===d.hostname&&(u=d.pathname.replace(/^(?!\/)/,"/").match(/^\/([^\/?#]+)(?:\/([^\/?#]+)(?:\/(?:(subscription)|(fork)|(issues)|([^\/?#]+)))?)?(?:[\/?#]|$)/))&&!u[6]?(u[2]?(h="/repos/"+u[1]+"/"+u[2],u[3]?(x="subscribers_count",g="watchers"):u[4]?(x="forks_count",g="network"):u[5]?(x="open_issues_count",g="issues"):(x="stargazers_count",g="stargazers")):(h="/users/"+u[1],g=x="followers"),function(e,t){var o=w[e]||(w[e]=[]);if(!(o.push(t)>1)){var r=b(function(){for(delete w[e];t=o.shift();)t.apply(null,arguments)});if(c){var n=new i;s(n,"abort",r),s(n,"error",r),s(n,"load",function(){var e;try{e=JSON.parse(n.responseText)}catch(e){return void r(e)}r(200!==n.status,e)}),n.open("GET",e),n.send()}else{var a=this||window;a._=function(e){a._=null,r(200!==e.meta.status,e.data)};var l=p(a.document)("script",{async:!0,src:e+(/\?/.test(e)?"&":"?")+"callback=_"}),d=function(){a._&&a._({meta:{}})};s(l,"load",d),s(l,"error",d),l.readyState&&f(l,/de|m/,d),a.document.getElementsByTagName("head")[0].appendChild(l)}}}.call(this,"https://api.github.com"+h,function(e,t){if(!e){var n=t[x];y.appendChild(r("a",{className:"social-count",href:t.html_url+"/"+g,target:"_blank","aria-label":n+" "+x.replace(/_count$/,"").replace("_"," ").slice(0,n<2?-1:void 0)+" on GitHub"},[r("b"),r("i"),r("span",{},[(""+n).replace(/\B(?=(\d{3})+(?!\d))/g,",")])]))}o&&o(y)})):o&&o(y)},y=window.devicePixelRatio||1,C=function(e){return(y>1?n.ceil(n.round(e*y)/y*2)/2:n.ceil(e))||0},F=function(e,t){e.style.width=t[0]+"px",e.style.height=t[1]+"px"},k=function(t,r){if(null!=t&&null!=r)if(t.getAttribute&&(t=function(e){for(var t={href:e.href,title:e.title,"aria-label":e.getAttribute("aria-label")},o=["icon","text","size","show-count"],r=0,n=o.length;r<n;r++){var a="data-"+o[r];t[a]=e.getAttribute(a)}return null==t["data-text"]&&(t["data-text"]=e.textContent||e.innerText),t}(t)),d){var a=g("span",{title:t.title||void 0});x(a.attachShadow({mode:"closed"}),t,function(){r(a)})}else{var i=g("iframe",{src:"javascript:0",title:t.title||void 0,allowtransparency:!0,scrolling:"no",frameBorder:0});F(i,[0,0]),i.style.border="none";var c=function(){var a,d=i.contentWindow;try{a=d.document.body}catch(t){return void e.body.appendChild(i.parentNode.removeChild(i))}u(i,"load",c),x.call(d,a,t,function(e){var a=function(e){var t=e.offsetWidth,o=e.offsetHeight;if(e.getBoundingClientRect){var r=e.getBoundingClientRect();t=n.max(t,C(r.width)),o=n.max(o,C(r.height))}return[t,o]}(e);i.parentNode.removeChild(i),h(i,"load",function(){F(i,a)}),i.src=l+"#"+(i.name=function(e){var t=[];for(var r in e){var n=e[r];null!=n&&t.push(o(r)+"="+o(n))}return t.join("&")}(t)),r(i)})};s(i,"load",c),e.body.appendChild(i)}};t.protocol+"//"+t.host+t.pathname===l?x(e.body,function(e){for(var t={},o=e.split("&"),n=0,a=o.length;n<a;n++){var i=o[n];if(""!==i){var l=i.split("=");t[r(l[0])]=null!=l[1]?r(l.slice(1).join("=")):void 0}}return t}(window.name||t.hash.replace(/^#/,""))):function(t){if(/m/.test(e.readyState)||!/g/.test(e.readyState)&&!e.documentElement.doScroll)setTimeout(t);else if(e.addEventListener){var o=b(t);h(e,"DOMContentLoaded",o),h(window,"load",o)}else f(e,/m/,t)}(function(){for(var t=e.querySelectorAll?e.querySelectorAll("a.github-button"):function(){for(var t=[],o=e.getElementsByTagName("a"),r=0,n=o.length;r<n;r++)~(" "+o[r].className+" ").replace(/[ \t\n\f\r]+/g," ").indexOf(" github-button ")&&t.push(o[r]);return t}(),o=0,r=t.length;o<r;o++)!function(e){k(e,function(t){e.parentNode.replaceChild(t,e)})}(t[o])})};function onLoad() {- addGithubButton();parseGithubButtons();}diff --git a/docs/source/conf.py b/docs/source/conf.pyindex 5e7421e3b..a81759da6 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -284,16 +284,13 @@ language = "en"# This patterns also effect to html_static_path and html_extra_pathexclude_patterns = ["_build", ".ipynb_checkpoints"]-# The name of the Pygments (syntax highlighting) style to use.+# The name of the Pygments (syntax highlighting) style to use. The dark counterpart is a+# pydata-sphinx-theme option, set in ``_PYDATA_THEME_OPTIONS`` below.pygments_style = "friendly"-pygments_dark_style = "monokai"# The documentation builds on pydata-sphinx-theme (top navbar with Learn / API / Models and the-# Ecosystem / About / Support dropdowns). ``KORNIA_DOCS_THEME=furo`` selects the previous furo-# layout, kept as a fallback while the redesign settles.-DOCS_THEME = os.environ.get("KORNIA_DOCS_THEME", "pydata")--html_theme = "pydata_sphinx_theme" if DOCS_THEME == "pydata" else "furo"+# Ecosystem / About / Support dropdowns).+html_theme = "pydata_sphinx_theme"# Theme options are theme-specific and customize the look and feel of a theme# further. For a list of options available for each theme, see the@@ -312,61 +309,6 @@ else:# Changing sidebar title to Korniahtml_title = "Kornia"-_GITHUB_ICON_SVG = (- '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">'- '<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 '- "0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 "- "1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 "- "0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 "- "2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 "- "3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 "- '8c0-4.42-3.58-8-8-8z"></path></svg>'-)--_FURO_THEME_OPTIONS = {- # 'analytics_id': 'G-RKS4WFXVHJ', # Unsupported by furo theme- "light_logo": "img/kornia_logo_only_light.svg",- "dark_logo": "img/kornia_logo_only_dark.svg",- "sidebar_hide_name": True,- "navigation_with_keys": True,- # "View source" / "Edit on GitHub" buttons at the top of every page: the cheapest- # way to turn a reader who spotted a typo into a contributor.- "source_repository": "https://github.com/kornia/kornia/",- "source_branch": code_ref,- "source_directory": "docs/source/",- "top_of_page_buttons": ["view", "edit"],- "footer_icons": [- {- "name": "GitHub",- "url": "https://github.com/kornia/kornia",- "html": _GITHUB_ICON_SVG,- "class": "",- },- ],- "light_css_variables": {- "color-sidebar-background": "#3980F5",- "color-sidebar-background-border": "#3980F5",- "color-sidebar-caption-text": "white",- "color-sidebar-link-text--top-level": "white",- "color-sidebar-link-text": "white",- "sidebar-caption-font-size": "normal",- "color-sidebar-item-background--hover": " #5dade2",- },- "dark_css_variables": {- "color-sidebar-background": "#1a1c1e",- "color-sidebar-background-border": "#1a1c1e",- "color-sidebar-caption-text": "white",- "color-sidebar-link-text--top-level": "white",- },- # "announcement": """- # <a style=\"text-decoration: none; color: white;\"- # href=\"https://github.com/kornia/kornia\">- # <img src=\"https://github.com/kornia/data/raw/main/GitHub-Mark-Light-32px.png\" width=20 height=20/>- # Star Kornia on GitHub- # </a>- # """,-}-_PYDATA_THEME_OPTIONS = {"logo": {"image_light": "_static/img/kornia_logo_only_light.svg",@@ -405,7 +347,7 @@ _PYDATA_THEME_OPTIONS = {"footer_end": [],}-html_theme_options = _PYDATA_THEME_OPTIONS if DOCS_THEME == "pydata" else _FURO_THEME_OPTIONS+html_theme_options = _PYDATA_THEME_OPTIONS# Navbar dropdown menus, rendered by ``_static/js/custom.js``: "Support" and "About" hang off the# toctree entries of the same name in index.rst; "Ecosystem" is a grouped panel inserted before@@ -444,16 +386,15 @@ NAVBAR_MENUS = {},}-if DOCS_THEME == "pydata":- # Feeds the "Edit this page" button and the source links.- html_context = {- "github_user": "kornia",- "github_repo": "kornia",- "github_version": code_ref,- "doc_path": "docs/source",- }- # The landing page has its own card grid; a section sidebar next to it would be empty noise.- html_sidebars = {"index": []}+# Feeds the "Edit this page" button and the source links.+html_context = {+ "github_user": "kornia",+ "github_repo": "kornia",+ "github_version": code_ref,+ "doc_path": "docs/source",+}+# The landing page has its own card grid; a section sidebar next to it would be empty noise.+html_sidebars = {"index": []}# html_logo = '_static/img/kornia_logo.svg'# html_logo = '_static/img/kornia_logo_only.png'@@ -483,7 +424,7 @@ html_extra_path = ["_extra"]# Output file base name for HTML help builder.htmlhelp_basename = "Kornia"-html_css_files = ["css/pydata.css" if DOCS_THEME == "pydata" else "css/main.css"]+html_css_files = ["css/pydata.css"]html_js_files = ["js/custom.js"]# Configure viewcode extension.@@ -608,8 +549,8 @@ _META_ATTR_RE = re.compile(r'(\w+)="([^"]*)"')def _inject_social_metatags(app, pagename, templatename, context, doctree):"""Add Open Graph / Twitter card tags (and a fallback description) to every HTML page.- Search engines and chat apps render these when a docs link is shared; Sphinx and furo emit- none of them by default. The description is taken from the page's own ``.. meta::``+ Search engines and chat apps render these when a docs link is shared; Sphinx and the theme+ emit none of them by default. The description is taken from the page's own ``.. meta::``directive when it has one, so page authors keep control of the snippet."""metatags = context.get("metatags", "") or ""@@ -731,8 +672,6 @@ def _check_navbar_menus(app, env):def _inject_navbar_menus(app, pagename, templatename, context, doctree):- if DOCS_THEME != "pydata":- returncontext["metatags"] = (context.get("metatags", "") or "") + "\n" + _json_script("kornia-navbar-menus", NAVBAR_MENUS)diff --git a/pyproject.toml b/pyproject.tomlindex 21a45836d..7ad028b0c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -52,14 +52,14 @@ dev = ["transformers<5.11",]docs = [- "furo","pydata-sphinx-theme>=0.21,<0.22", # _static/css/pydata.css and js/custom.js target theme internals"kornia_moons","matplotlib",+ # kornia.core.mixin.onnx annotates public members with ``onnx.ModelProto``; without onnx the+ # lazy loader prompts on stdin while autodoc resolves them and the build dies. onnxruntime is+ # not needed: no documented member resolves an ``onnxruntime`` annotation."onnx",- "onnxruntime","opencv-python",- "PyYAML>=5.1","sphinx","sphinx-autodoc-defaultargs","sphinx-autodoc-typehints",diff --git a/uv.lock b/uv.lockindex 0c8a6a9aa..28514366e 100644--- a/uv.lock+++ b/uv.lock@@ -564,22 +564,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/51/c7/b64cae5dba3a1b138d7123ec36bb5ccd39d39939f18454407e5468f4763f/fsspec-2025.12.0-py3-none-any.whl", hash = "sha256:8bf1fe301b7d8acfa6e8571e3b1c3d158f909666642431cc78a1b7b4dbc5ec5b", size = 201422, upload-time = "2025-12-03T15:23:41.434Z" },]-[[package]]-name = "furo"-version = "2025.12.19"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "accessible-pygments" },- { name = "beautifulsoup4" },- { name = "pygments" },- { name = "sphinx" },- { name = "sphinx-basic-ng" },-]-sdist = { url = "https://files.pythonhosted.org/packages/ec/20/5f5ad4da6a5a27c80f2ed2ee9aee3f9e36c66e56e21c00fde467b2f8f88f/furo-2025.12.19.tar.gz", hash = "sha256:188d1f942037d8b37cd3985b955839fea62baa1730087dc29d157677c857e2a7", size = 1661473, upload-time = "2025-12-19T17:34:40.889Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/f4/b2/50e9b292b5cac13e9e81272c7171301abc753a60460d21505b606e15cf21/furo-2025.12.19-py3-none-any.whl", hash = "sha256:bb0ead5309f9500130665a26bee87693c41ce4dbdff864dbfb6b0dae4673d24f", size = 339262, upload-time = "2025-12-19T17:34:38.905Z" },-]-[[package]]name = "h11"version = "0.16.0"@@ -844,14 +828,11 @@ dev = [{ name = "transformers" },]docs = [- { name = "furo" },{ name = "kornia-moons" },{ name = "matplotlib" },{ name = "onnx" },- { name = "onnxruntime" },{ name = "opencv-python" },{ name = "pydata-sphinx-theme" },- { name = "pyyaml" },{ name = "sphinx" },{ name = "sphinx-autodoc-defaultargs" },{ name = "sphinx-autodoc-typehints" },@@ -867,7 +848,6 @@ docs = [requires-dist = [{ name = "coverage", marker = "extra == 'dev'" },{ name = "diffusers", marker = "extra == 'dev'" },- { name = "furo", marker = "extra == 'docs'" },{ name = "kornia-moons", marker = "extra == 'docs'" },{ name = "kornia-rs", specifier = ">=0.1.9" },{ name = "matplotlib", marker = "extra == 'docs'" },@@ -875,7 +855,6 @@ requires-dist = [{ name = "onnx", marker = "extra == 'dev'" },{ name = "onnx", marker = "extra == 'docs'" },{ name = "onnxruntime", marker = "extra == 'dev'" },- { name = "onnxruntime", marker = "extra == 'docs'" },{ name = "onnxscript", marker = "extra == 'dev'" },{ name = "opencv-python", marker = "extra == 'docs'" },{ name = "pillow", marker = "extra == 'dev'" },@@ -883,7 +862,6 @@ requires-dist = [{ name = "pydata-sphinx-theme", marker = "extra == 'docs'", specifier = ">=0.21,<0.22" },{ name = "pytest", marker = "extra == 'dev'" },{ name = "pytest-timeout", marker = "extra == 'dev'" },- { name = "pyyaml", marker = "extra == 'docs'", specifier = ">=5.1" },{ name = "requests", marker = "extra == 'dev'" },{ name = "setuptools", marker = "extra == 'dev'" },{ name = "sphinx", marker = "extra == 'docs'" },@@ -2102,18 +2080,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/05/f2/9657c98a66973b7c35bfd48ba65d1922860de9598fbb535cd96e3f58a908/sphinx_autodoc_typehints-3.5.2-py3-none-any.whl", hash = "sha256:0accd043619f53c86705958e323b419e41667917045ac9215d7be1b493648d8c", size = 21184, upload-time = "2025-10-16T00:50:13.973Z" },]-[[package]]-name = "sphinx-basic-ng"-version = "1.0.0b2"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "sphinx" },-]-sdist = { url = "https://files.pythonhosted.org/packages/98/0b/a866924ded68efec7a1759587a4e478aec7559d8165fac8b2ad1c0e774d6/sphinx_basic_ng-1.0.0b2.tar.gz", hash = "sha256:9ec55a47c90c8c002b5960c57492ec3021f5193cb26cebc2dc4ea226848651c9", size = 20736, upload-time = "2023-07-08T18:40:54.166Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/3c/dd/018ce05c532a22007ac58d4f45232514cd9d6dd0ee1dc374e309db830983/sphinx_basic_ng-1.0.0b2-py3-none-any.whl", hash = "sha256:eb09aedbabfb650607e9b4b68c9d240b90b1e1be221d6ad71d61c52e29f7932b", size = 22496, upload-time = "2023-07-08T18:40:52.659Z" },-]-[[package]]name = "sphinx-copybutton"version = "0.5.2"