From 43822480eb6ddc400f69bf920ed787357ad757ae Mon Sep 17 00:00:00 2001 From: Dimitrie Hoekstra Date: Mon, 5 Oct 2026 18:05:14 +0200 Subject: [PATCH] Render docs nav labels as their authors wrote them The docs and handbook sidebars and every breadcrumb capitalised each word of an authored title, so "Installing a license" read "Installing A License" and Bosch Rexroth's ctrlX read "CtrlX". Drop `capitalize` from SidebarNav and Breadcrumbs, and the dead `text-transform` from .handbook-nav, which moved to nuxt/assets/css/ with the Eleventy retirement. --- nuxt/assets/css/style.handbook.css | 6 +++++- nuxt/components/Breadcrumbs.vue | 3 ++- nuxt/components/SidebarNav.vue | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/nuxt/assets/css/style.handbook.css b/nuxt/assets/css/style.handbook.css index 7eeccf43cf..dfa990aa2a 100644 --- a/nuxt/assets/css/style.handbook.css +++ b/nuxt/assets/css/style.handbook.css @@ -7,9 +7,13 @@ @apply flex flex-col-reverse lg:grid lg:max-w-screen-xl 2xl:max-w-[1920px] 2xl:grid-cols-[300px,minmax(0,1fr),270px]; } +/* No text-transform here: labels render as the docs authors wrote them. Capitalising every + word made a section named after its directory look like a word ("install" -> "Install"), + which is no longer how any label is produced, and it mangled the rest: "Upgrading the + Node-RED version" became "Upgrading The Node-RED Version", and Bosch Rexroth's ctrlX + became CtrlX. */ .handbook-nav { border-right: 1px solid right; - text-transform: capitalize; --nav-weight: 500; --nav-color: var(--color-gray-700); --nav-bg: transparent; diff --git a/nuxt/components/Breadcrumbs.vue b/nuxt/components/Breadcrumbs.vue index a41d5e20b6..5565bb2f5f 100644 --- a/nuxt/components/Breadcrumbs.vue +++ b/nuxt/components/Breadcrumbs.vue @@ -32,10 +32,11 @@ const displayItems = computed(() => normalizedItems.value.map((item, index) => (