Skip to content

Commit 89d040b

Browse files
committed
Remove outmoded database drivers section
1 parent f854d32 commit 89d040b

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGES
66
Unreleased
77
----------
88
- Made driver projects use a standalone primary navigation
9+
- Removed outmoded database drivers section
910

1011
2026/01/14 0.47.0
1112
-----------------

src/crate/theme/rtd/sidebartoc.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -159,39 +159,10 @@ def _get_toctree(maxdepth=-1, titles_only=True, collapse=False):
159159
builder.add_project_nav_item('CrateDB: Crash CLI', 'CrateDB CLI', '/docs/crate/crash/')
160160
builder.add_project_nav_item('CrateDB Cloud: Croud CLI', 'Cloud CLI', '/docs/cloud/cli/')
161161

162-
# Add all Driver projects
163-
# The <ul> must be inside the same <li> for CSS sibling selectors to work
164-
_DRIVER_CONFIGS = [
165-
('CrateDB JDBC', 'JDBC', '/docs/jdbc/'),
166-
('CrateDB DBAL', 'PHP DBAL', '/docs/dbal/'),
167-
('CrateDB PDO', 'PHP PDO', '/docs/pdo/'),
168-
('CrateDB Python', 'Python', '/docs/python/'),
169-
('SQLAlchemy Dialect', 'SQLAlchemy', '/docs/sqlalchemy-cratedb/'),
170-
]
171-
driver_projects = [config[0] for config in _DRIVER_CONFIGS]
172-
show_drivers = project in driver_projects or (project == 'CrateDB: Guide' and pagename.startswith('connect'))
173-
174-
# Use data attribute to mark Database Drivers for auto-expansion
175-
driver_marker = ' data-auto-expand="true"' if show_drivers else ''
176-
# Add current class when viewing a driver page to make it bold
177-
driver_class = 'current' if show_drivers else 'navleft-item'
178-
driver_link_class = ' class="current-active"' if show_drivers else ''
179-
parts.append(f'<li class="{driver_class}"{driver_marker}>')
180-
parts.append(f'<a{driver_link_class} href="/docs/guide/connect/drivers.html">Database Drivers</a>')
181-
# Furo will add has-children class and icon structure when it detects the <ul>
182-
parts.append('<ul>')
183-
if show_drivers:
184-
for proj_name, display_name, url in _DRIVER_CONFIGS:
185-
builder.add_project_nav_item(proj_name, display_name, url)
186-
parts.append('</ul>')
187-
parts.append('</li>')
188-
189-
190162
# Add Support and Community links section after a border
191163
parts.append('<li class="navleft-item border-top"><a target="_blank" href="/support/">Support</a></li>')
192164
parts.append('<li class="navleft-item"><a target="_blank" href="https://community.cratedb.com/">Community</a></li>')
193165

194-
195166
# Other internal docs projects only included in special builds
196167
builder.add_project_nav_item('CrateDB documentation theme', 'Documentation theme', '', border_top=True, public_docs=False)
197168
builder.add_project_nav_item('Doing Docs', 'Doing Docs at CrateDB', '', public_docs=False)

0 commit comments

Comments
 (0)