From 7b1561780d59ac2df330d6be1601c15679c547f3 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 29 Aug 2023 21:12:31 +0200 Subject: [PATCH] Bring back navigation items to database drivers removed with 490ac7e6587 --- CHANGES.rst | 1 + src/crate/theme/rtd/crate/sidebartoc.html | 51 ++++++++++++++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 50061477..43140358 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,7 @@ Unreleased - Fix CSS: Remove font size of blockquote override - Improve version chooser: Remove ambiguous link to master doc. +- Bring back lost navigation items to database drivers 2023/08/11 0.29.2 diff --git a/src/crate/theme/rtd/crate/sidebartoc.html b/src/crate/theme/rtd/crate/sidebartoc.html index 0c982621..95435448 100644 --- a/src/crate/theme/rtd/crate/sidebartoc.html +++ b/src/crate/theme/rtd/crate/sidebartoc.html @@ -66,11 +66,60 @@ {% endif %} - {% if project == 'CrateDB: Clients and Tools' %} + {% + set driver_projects = [ + 'CrateDB: Clients and Tools', + 'CrateDB JDBC', 'CrateDB DBAL', 'CrateDB PDO', 'CrateDB Python', 'CrateDB Npgsql' + ] + %} + {% if project in driver_projects %}
  • Drivers and Integrations {{ toctree(maxdepth=3|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
  • + + + {% if project == 'CrateDB JDBC' %} +
  • + JDBC + {{ toctree(maxdepth=1|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }} +
  • + {% else %} + + {% endif %} + {% if project == 'CrateDB DBAL' %} +
  • + PHP DBAL + {{ toctree(maxdepth=1|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }} +
  • + {% else %} + + {% endif %} + {% if project == 'CrateDB PDO' %} +
  • + PHP PDO + {{ toctree(maxdepth=1|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }} +
  • + {% else %} + + {% endif %} + {% if project == 'CrateDB Python' %} +
  • + Python + {{ toctree(maxdepth=1|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }} +
  • + {% else %} + + {% endif %} + {% if project == 'CrateDB Npgsql' %} +
  • + .NET Npgsql + {{ toctree(maxdepth=1|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }} +
  • + {% else %} + + {% endif %} + {% else %} {% endif %}