This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 3d2e339bab [DOCS] Refine footer navigation links (#19914)
3d2e339bab is described below
commit 3d2e339bab55f9098b610254648aaeea3471bef2
Author: Shushi Hong <[email protected]>
AuthorDate: Tue Jun 30 09:09:28 2026 -0400
[DOCS] Refine footer navigation links (#19914)
This PR cleans up duplicated footer navigation links in the Sphinx docs
theme configuration.
The footer previously rendered `Community · Download · Docs` as text
links while related navigation was also available through icon/theme
controls. This update removes those footer text links and keeps
navigation in the icon area instead.
---
docs/conf.py | 32 +++++++++++++-------------------
1 file changed, 13 insertions(+), 19 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index 4a6338ef4f..24f43e1eb6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -381,12 +381,6 @@ footer_dropdown = {
],
}
-footer_links = [
- ("Community", "https://tvm.apache.org/community"),
- ("Download", "https://tvm.apache.org/download"),
- ("Docs", "https://tvm.apache.org/docs"),
-]
-
footer_note = " ".join(
"""
Copyright © 2026 The Apache Software Foundation. Apache TVM, Apache, the
Apache feather,
@@ -396,7 +390,7 @@ the Apache Software Foundation.""".split("\n")
def footer_html() -> str:
- """Build the extra footer: nav links, ASF dropdown, and the Apache
trademark note.
+ """Build the extra footer: ASF dropdown and the Apache trademark note.
The copyright line is rendered natively by sphinx-book-theme (from the
``copyright``
config value), so it is intentionally not repeated here.
@@ -405,15 +399,9 @@ def footer_html() -> str:
for item_name, item_url in footer_dropdown["items"]:
dropdown_items += f'<li><a class="dropdown-item" href="{item_url}"
target="_blank" style="font-size: 0.9em;">{item_name}</a></li>\n'
- nav_links = " · ".join(
- f'<a href="{url}" style="color: #6c757d; text-decoration:
none;">{name}</a>'
- for name, url in footer_links
- )
-
return f"""
<div class="footer-container" style="margin: 5px 0; font-size: 0.9em; color:
#6c757d; text-align: right;">
<div class="footer-line1" style="display: flex; justify-content:
flex-end; align-items: center; gap: 0.9em; margin-bottom: 3px; flex-wrap:
wrap;">
- <span class="footer-links">{nav_links}</span>
<div class="footer-dropdown">
<div class="dropdown">
<button class="btn btn-link dropdown-toggle" type="button"
id="footerDropdown" data-bs-toggle="dropdown"
@@ -443,18 +431,24 @@ html_theme_options = {
"show_toc_level": 2,
"show_navbar_depth": 1,
"icon_links": [
- {
- "name": "GitHub",
- "url": "https://github.com/apache/tvm",
- "icon": "fa-brands fa-github",
- "type": "fontawesome",
- },
{
"name": "TVM Homepage",
"url": "https://tvm.apache.org/",
"icon": "fa-solid fa-house",
"type": "fontawesome",
},
+ {
+ "name": "Community",
+ "url": "https://tvm.apache.org/community",
+ "icon": "fa-solid fa-users",
+ "type": "fontawesome",
+ },
+ {
+ "name": "Download",
+ "url": "https://tvm.apache.org/download",
+ "icon": "fa-solid fa-box-open",
+ "type": "fontawesome",
+ },
],
"extra_footer": footer_html(),
}