This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git
The following commit(s) were added to refs/heads/main by this push:
new 19201d767 docs: Put Comet logo in top nav bar, respect light/dark mode
(#2591)
19201d767 is described below
commit 19201d76731a9b95a66ec85f5fa4f3c63ae49d81
Author: Andy Grove <[email protected]>
AuthorDate: Thu Oct 16 13:00:08 2025 -0600
docs: Put Comet logo in top nav bar, respect light/dark mode (#2591)
---
docs/source/_static/theme_overrides.css | 8 ++++++++
docs/source/_templates/docs-sidebar.html | 4 ----
docs/source/conf.py | 11 ++++++++---
docs/source/index.rst | 3 ---
4 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/docs/source/_static/theme_overrides.css
b/docs/source/_static/theme_overrides.css
index 9406e41d0..dd5b37444 100644
--- a/docs/source/_static/theme_overrides.css
+++ b/docs/source/_static/theme_overrides.css
@@ -33,6 +33,14 @@
--pst-font-size-base: 0.9rem;
}
+/* Scale down the logo in the top navbar */
+.bd-header .navbar-brand img.logo__image {
+ height: 40px;
+ width: auto;
+ margin-right: 0.25rem;
+ vertical-align: middle;
+}
+
/* --- remove the right (secondary) sidebar entirely --- */
.bd-sidebar-secondary { display: none !important; }
diff --git a/docs/source/_templates/docs-sidebar.html
b/docs/source/_templates/docs-sidebar.html
index 3958eb153..26e859ead 100644
--- a/docs/source/_templates/docs-sidebar.html
+++ b/docs/source/_templates/docs-sidebar.html
@@ -21,9 +21,5 @@ under the License.
<div class="bd-toc-item active">
{{ toctree(maxdepth=4, collapse=True, includehidden=True,
titles_only=True) }}
</div>
-
- <a class="navbar-brand" href="{{ pathto(master_doc) }}">
- <img src="{{ pathto('_static/images/DataFusionComet-Logo-Light.png', 1)
}}" class="logo" alt="logo">
- </a>
</nav>
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 081cda9ce..245071eed 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -85,11 +85,18 @@ autosummary_generate = True
#
html_theme = 'pydata_sphinx_theme'
+html_logo = "_static/images/DataFusionComet-Logo-Light.png"
+
html_theme_options = {
+ "logo": {
+ "image_light": "_static/images/DataFusionComet-Logo-Light.png",
+ "image_dark": "_static/images/DataFusionComet-Logo-Dark.png",
+ },
+
"use_edit_page_button": False,
"secondary_sidebar_items": [],
"collapse_navigation": True,
- "navbar_start": [],
+ "navbar_start": ["navbar-logo"],
"navbar_center": ["navbar-nav"],
"navbar_end": ["navbar-icon-links", "theme-switcher"],
"icon_links": [
@@ -115,8 +122,6 @@ html_context = {
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
-html_logo = "_static/images/DataFusionComet-Logo-Light.png"
-
html_css_files = [
"theme_overrides.css"
]
diff --git a/docs/source/index.rst b/docs/source/index.rst
index a6ef2fb24..0d4c71773 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -15,9 +15,6 @@
.. specific language governing permissions and limitations
.. under the License.
-.. image:: _static/images/DataFusionComet-Logo-Light.png
- :alt: DataFusion Comet Logo
-
=======================
Apache DataFusion Comet
=======================
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]