diff --git a/pyproject.toml b/pyproject.toml index a510b8d9..b24270b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ dependencies = [ "myst-parser>=4.0.0", "nbsphinx>=0.9.5", "numpydoc>=1.8.0", - "pydata-sphinx-theme>=0.15.4", + "nvidia-sphinx-theme", "pre-commit>=3.8.0", "sphinx>=8.0.2", "sphinx-autobuild>=2024.9.19", diff --git a/source/_static/RAPIDS-logo-purple.png b/source/_static/RAPIDS-logo-purple.png deleted file mode 100644 index d884e013..00000000 Binary files a/source/_static/RAPIDS-logo-purple.png and /dev/null differ diff --git a/source/_static/js/nav.js b/source/_static/js/nav.js deleted file mode 100644 index 3354023d..00000000 --- a/source/_static/js/nav.js +++ /dev/null @@ -1,56 +0,0 @@ -document.addEventListener("DOMContentLoaded", function () { - let sidebar = document.getElementsByClassName("bd-sidebar-primary")[0]; - sidebar.innerHTML = - ` -
-
- Docs Home -
-
- Deployment Home -
-
-
-
- nightly - stable -
-
-
- ` + sidebar.innerHTML; - - let versionSection = document.getElementById( - "rapids-selector__container-version", - ); - let selectorSelected = versionSection.getElementsByClassName( - "rapids-selector__selected", - )[0]; - if (window.location.href.includes("/deployment/stable")) { - selectorSelected.innerHTML = "stable"; - versionSection - .getElementsByClassName("rapids-selector__menu-item") - .forEach((element) => { - if (element.innerHTML.includes("stable")) { - element.classList.add("rapids-selector__menu-item--selected"); - } - }); - } else if (window.location.href.includes("/deployment/nightly")) { - selectorSelected.innerHTML = "nightly"; - versionSection - .getElementsByClassName("rapids-selector__menu-item") - .forEach((element) => { - if (element.innerHTML.includes("nightly")) { - element.classList.add("rapids-selector__menu-item--selected"); - } - }); - } else { - selectorSelected.innerHTML = "dev"; - let menu = versionSection.getElementsByClassName( - "rapids-selector__menu", - )[0]; - menu.innerHTML = - menu.innerHTML + - 'dev'; - menu.style["height"] = "97px"; - } -}); diff --git a/source/_templates/feedback.html b/source/_templates/deployment-feedback.html similarity index 100% rename from source/_templates/feedback.html rename to source/_templates/deployment-feedback.html diff --git a/source/conf.py b/source/conf.py index b69a6156..c2cc77d3 100644 --- a/source/conf.py +++ b/source/conf.py @@ -16,8 +16,8 @@ # -- Project information ----------------------------------------------------- -project = "RAPIDS Deployment Documentation" -html_title = "RAPIDS Deployment Documentation" +project = "NVIDIA RAPIDS Deployment Documentation" +html_title = "NVIDIA RAPIDS Deployment Documentation" copyright = f"{datetime.date.today().year}, NVIDIA" author = "NVIDIA" @@ -121,39 +121,37 @@ "analytics": { "google_analytics_id": "G-02WR7CRJ3Z", }, - "header_links_before_dropdown": 7, - # https://github.com/pydata/pydata-sphinx-theme/issues/1220 - "icon_links": [], - "logo": { - "link": "https://docs.rapids.ai/", - }, - "github_url": "https://github.com/rapidsai/", + "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/rapidsai/deployment", + "icon": "fa-brands fa-github", + "type": "fontawesome", + }, + ], "show_toc_level": 1, "navbar_align": "right", "secondary_sidebar_items": [ "page-toc", "notebooks-extra-files-nav", "notebooks-tags", - "feedback", + "deployment-feedback", ], } html_sidebars = { - "**": ["sidebar-nav-bs", "sidebar-ethical-ads"], - "index": [], - "examples/index": ["notebooks-tag-filter", "sidebar-ethical-ads"], + "examples/index": ["sidebar-nav-bs", "notebooks-tag-filter"], } # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "pydata_sphinx_theme" +html_theme = "nvidia_sphinx_theme" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] -html_logo = "_static/RAPIDS-logo-purple.png" intersphinx_mapping = { "python": ("https://docs.python.org/3", None), @@ -170,13 +168,5 @@ def setup(app): - app.add_css_file("https://docs.rapids.ai/assets/css/custom.css") - app.add_css_file( - "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" - ) app.add_css_file("css/custom.css") - app.add_js_file( - "https://docs.rapids.ai/assets/js/custom.js", loading_method="defer" - ) - app.add_js_file("js/nav.js", loading_method="defer") app.add_js_file("js/notebook-gallery.js", loading_method="defer") diff --git a/source/index.md b/source/index.md index c84ae0ac..0332cecf 100644 --- a/source/index.md +++ b/source/index.md @@ -3,9 +3,9 @@ review_priority: "index" html_theme.sidebar_secondary.remove: true --- -# Deploying RAPIDS +# NVIDIA RAPIDS Deployment Documentation -Deployment documentation to get you up and running with RAPIDS anywhere. +NVIDIA RAPIDS deployment documentation helps you get up and running with RAPIDS anywhere. `````{gridtoctree} 1 2 2 3 :gutter: 2 2 2 2 diff --git a/uv.lock b/uv.lock index 5b4c021e..159e7399 100644 --- a/uv.lock +++ b/uv.lock @@ -769,6 +769,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314 }, ] +[[package]] +name = "nvidia-sphinx-theme" +version = "0.0.9.post1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydata-sphinx-theme" }, + { name = "sphinx" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/79/017fab2f7167a9a9795665f894d04f77aafceca80821b51589bb4b23ff5c/nvidia_sphinx_theme-0.0.9.post1-py3-none-any.whl", hash = "sha256:21ca60206dff2f380d7783d64bbaf71a5b9cacae53c7d0686f089c16b5a3d45a", size = 143816 }, +] + [[package]] name = "numpydoc" version = "1.8.0" @@ -1041,7 +1053,7 @@ dependencies = [ { name = "nbsphinx" }, { name = "numpydoc" }, { name = "pre-commit" }, - { name = "pydata-sphinx-theme" }, + { name = "nvidia-sphinx-theme" }, { name = "python-frontmatter" }, { name = "sphinx" }, { name = "sphinx-autobuild" }, @@ -1059,7 +1071,7 @@ requires-dist = [ { name = "nbsphinx", specifier = ">=0.9.5" }, { name = "numpydoc", specifier = ">=1.8.0" }, { name = "pre-commit", specifier = ">=3.8.0" }, - { name = "pydata-sphinx-theme", specifier = ">=0.15.4" }, + { name = "nvidia-sphinx-theme" }, { name = "python-frontmatter", specifier = ">=1.1.0" }, { name = "sphinx", specifier = ">=8.0.2" }, { name = "sphinx", specifier = ">=8.2.3" },