diff --git a/conda/environments/all_cuda-129_arch-aarch64.yaml b/conda/environments/all_cuda-129_arch-aarch64.yaml index 16071e8e83..6cc02ae43b 100644 --- a/conda/environments/all_cuda-129_arch-aarch64.yaml +++ b/conda/environments/all_cuda-129_arch-aarch64.yaml @@ -5,7 +5,7 @@ channels: - rapidsai - conda-forge dependencies: -- breathe +- breathe>=4.35.0 - c-compiler - clang-tools=20.1.4 - clang==20.1.4 @@ -34,7 +34,6 @@ dependencies: - numpy>=1.23,<3.0 - numpydoc - pre-commit -- pydata-sphinx-theme - pylibraft==26.6.*,>=0.0.0a0 - pytest - pytest-cov @@ -46,8 +45,10 @@ dependencies: - scikit-build-core>=0.11.0 - scikit-learn - scipy -- sphinx - sphinx-copybutton - sphinx-markdown-tables +- sphinx>=8.0.0 - sysroot_linux-aarch64==2.28 +- pip: + - nvidia-sphinx-theme name: all_cuda-129_arch-aarch64 diff --git a/conda/environments/all_cuda-129_arch-x86_64.yaml b/conda/environments/all_cuda-129_arch-x86_64.yaml index 9c7220dca6..9acb5a6bf4 100644 --- a/conda/environments/all_cuda-129_arch-x86_64.yaml +++ b/conda/environments/all_cuda-129_arch-x86_64.yaml @@ -5,7 +5,7 @@ channels: - rapidsai - conda-forge dependencies: -- breathe +- breathe>=4.35.0 - c-compiler - clang-tools=20.1.4 - clang==20.1.4 @@ -34,7 +34,6 @@ dependencies: - numpy>=1.23,<3.0 - numpydoc - pre-commit -- pydata-sphinx-theme - pylibraft==26.6.*,>=0.0.0a0 - pytest - pytest-cov @@ -46,8 +45,10 @@ dependencies: - scikit-build-core>=0.11.0 - scikit-learn - scipy -- sphinx - sphinx-copybutton - sphinx-markdown-tables +- sphinx>=8.0.0 - sysroot_linux-64==2.28 +- pip: + - nvidia-sphinx-theme name: all_cuda-129_arch-x86_64 diff --git a/conda/environments/all_cuda-131_arch-aarch64.yaml b/conda/environments/all_cuda-131_arch-aarch64.yaml index 888038683d..a15e446226 100644 --- a/conda/environments/all_cuda-131_arch-aarch64.yaml +++ b/conda/environments/all_cuda-131_arch-aarch64.yaml @@ -5,7 +5,7 @@ channels: - rapidsai - conda-forge dependencies: -- breathe +- breathe>=4.35.0 - c-compiler - clang-tools=20.1.4 - clang==20.1.4 @@ -34,7 +34,6 @@ dependencies: - numpy>=1.23,<3.0 - numpydoc - pre-commit -- pydata-sphinx-theme - pylibraft==26.6.*,>=0.0.0a0 - pytest - pytest-cov @@ -46,8 +45,10 @@ dependencies: - scikit-build-core>=0.11.0 - scikit-learn - scipy -- sphinx - sphinx-copybutton - sphinx-markdown-tables +- sphinx>=8.0.0 - sysroot_linux-aarch64==2.28 +- pip: + - nvidia-sphinx-theme name: all_cuda-131_arch-aarch64 diff --git a/conda/environments/all_cuda-131_arch-x86_64.yaml b/conda/environments/all_cuda-131_arch-x86_64.yaml index b2f95ed277..b2b209ba50 100644 --- a/conda/environments/all_cuda-131_arch-x86_64.yaml +++ b/conda/environments/all_cuda-131_arch-x86_64.yaml @@ -5,7 +5,7 @@ channels: - rapidsai - conda-forge dependencies: -- breathe +- breathe>=4.35.0 - c-compiler - clang-tools=20.1.4 - clang==20.1.4 @@ -34,7 +34,6 @@ dependencies: - numpy>=1.23,<3.0 - numpydoc - pre-commit -- pydata-sphinx-theme - pylibraft==26.6.*,>=0.0.0a0 - pytest - pytest-cov @@ -46,8 +45,10 @@ dependencies: - scikit-build-core>=0.11.0 - scikit-learn - scipy -- sphinx - sphinx-copybutton - sphinx-markdown-tables +- sphinx>=8.0.0 - sysroot_linux-64==2.28 +- pip: + - nvidia-sphinx-theme name: all_cuda-131_arch-x86_64 diff --git a/dependencies.yaml b/dependencies.yaml index bbef30bb26..95d60911ce 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -382,16 +382,17 @@ dependencies: common: - output_types: [conda] packages: - - breathe + - breathe>=4.35.0 - doxygen>=1.8.20 - graphviz - ipython - numpydoc - - pydata-sphinx-theme - recommonmark + - sphinx>=8.0.0 - sphinx-copybutton - sphinx-markdown-tables - - sphinx + - pip: + - nvidia-sphinx-theme py_version: specific: - output_types: conda diff --git a/docs/source/_static/collapse_overloads.js b/docs/source/_static/collapse_overloads.js new file mode 100644 index 0000000000..2ec2e710fb --- /dev/null +++ b/docs/source/_static/collapse_overloads.js @@ -0,0 +1,67 @@ +document.addEventListener("DOMContentLoaded", () => { + const toc = document.querySelector(".bd-toc-nav"); + if (!toc) return; + + // Get all TOC links + const links = toc.querySelectorAll("a"); + + const seen = new Set(); + links.forEach(link => { + let text = link.textContent.trim(); + let norm = text.replace(/\(\)$/, ""); // strip trailing () + + if (seen.has(norm)) { + // hide duplicate + link.parentElement.style.display = "none"; + } else { + seen.add(norm); + } + }); + }); + +document.addEventListener("DOMContentLoaded", () => { + const toc = document.querySelector(".toctree-wrapper"); + if (!toc) return; + + const leaf_traversal_fn = (leaf) => { + try { + const links = leaf.querySelectorAll("a"); + if (!links) return; + const seen = new Set(); + links.forEach(link => { + let text = link.textContent.trim(); + let norm = text.replace(/\(\)$/, ""); // strip trailing () + + if (seen.has(norm)) { + // hide duplicate + link.parentElement.style.display = "none"; + } else { + seen.add(norm); + } + }); + } catch (error) { + console.error(error); + } + }; + queue = [toc.querySelector("li")]; + while (queue.length > 0) { + const tree = queue.shift(); + try { + if (tree.childElementCount > 1 && + tree.firstChild.hasAttribute("href") && + tree.firstChild.attributes["href"].value.includes("#")) { + leaf_traversal_fn(tree.childNodes[1]); + } else { + const child = tree.querySelector("li"); + if (child) { + queue.push(child); + } + } + } catch (error) { + console.error(error); + } + if (tree.nextElementSibling) { + queue.push(tree.nextElementSibling); + } + } + }); diff --git a/docs/source/_static/references.css b/docs/source/_static/references.css index 3143740e13..eed3695974 100644 --- a/docs/source/_static/references.css +++ b/docs/source/_static/references.css @@ -1,4 +1,15 @@ +/* Constrain navbar logo size and add spacing */ +.navbar-brand.logo .logo__image { + height: 32px !important; + width: auto !important; + margin-right: 0.75rem; +} + +.navbar-brand.logo { + padding: 0.5rem 0; +} + /* Fix references to not look like parameters */ dl.citation > dt.label { display: unset !important; @@ -21,8 +32,3 @@ dl.citation > dt.label > span::before { dl.citation > dt.label > span::after { content: "]"; } - -/* Make navbar logo smaller */ -.logo__image { - height: 32px !important; -} diff --git a/docs/source/_templates/navbar-logo.html b/docs/source/_templates/navbar-logo.html new file mode 100644 index 0000000000..d609e650e1 --- /dev/null +++ b/docs/source/_templates/navbar-logo.html @@ -0,0 +1,4 @@ + diff --git a/docs/source/conf.py b/docs/source/conf.py index 066690476c..d07203a340 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -103,8 +103,9 @@ # a list of builtin themes. # -html_theme = "pydata_sphinx_theme" -html_logo = "../../img/rapids_logo.png" +html_theme = "nvidia_sphinx_theme" +html_logo = "../../img/logo-purple-bg-white-text.svg" +html_favicon = "../../img/icon-512x512.png" # Theme options are theme-specific and customize the look and feel of a theme @@ -112,9 +113,6 @@ # documentation. # html_theme_options = { - "logo": { - "text": "RAFT", - }, "external_links": [], # https://github.com/pydata/pydata-sphinx-theme/issues/1220 "icon_links": [], @@ -206,6 +204,7 @@ def setup(app): app.add_js_file( "https://docs.rapids.ai/assets/js/custom.js", loading_method="defer" ) + app.add_js_file("collapse_overloads.js") # The following is used by sphinx.ext.linkcode to provide links to github diff --git a/img/icon-512x512.png b/img/icon-512x512.png new file mode 100644 index 0000000000..4185548662 Binary files /dev/null and b/img/icon-512x512.png differ diff --git a/img/logo-purple-bg-white-text.svg b/img/logo-purple-bg-white-text.svg new file mode 100644 index 0000000000..16a4b8d2ee --- /dev/null +++ b/img/logo-purple-bg-white-text.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + diff --git a/img/rapids_logo.png b/img/rapids_logo.png deleted file mode 100644 index 405040836a..0000000000 Binary files a/img/rapids_logo.png and /dev/null differ