From 5668d40f5aad78060fe818ea4c97a6585c8d2886 Mon Sep 17 00:00:00 2001 From: Wienke Giezeman Date: Fri, 9 Oct 2026 09:56:03 +0200 Subject: [PATCH 1/2] LoRaWAN: remove the Udemy call to action from the Learn intro Co-Authored-By: Claude Opus 5.5 --- doc/content/lorawan/_index.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/content/lorawan/_index.md b/doc/content/lorawan/_index.md index 33b923683..52bdd0605 100644 --- a/doc/content/lorawan/_index.md +++ b/doc/content/lorawan/_index.md @@ -44,10 +44,6 @@ topics: {{< button href="#everything-you-need-to-know-about-lorawan-in-60-minutes" style="outline" icon-before="player-play" >}}Watch the 60-minute video{{< /button >}} {{< /actions >}} -{{< info >}} -The LoRaWAN Fundamentals course can also be followed on Udemy. [Sign up for the online course today!](https://www.udemy.com/course/lorawan-fundamentals/) -{{}} - ## Everything you need to know about LoRaWAN in 60 minutes The chapters are designed to be paired with the following video by Johan Stokking, which covers the Fundamentals of LoRaWAN in 60 minutes: From 7d0a197af9c09906f72521817678aae4fdb8f773 Mon Sep 17 00:00:00 2001 From: Wienke Giezeman Date: Fri, 9 Oct 2026 10:00:16 +0200 Subject: [PATCH 2/2] Header: show the signed-in member (www /site-session.js) The global header always showed Log in / Sign up, also for a signed-in member. The auth block is now a data-ttn-auth="dx" hook for www's /site-session.js (thethingsnetwork-v2 platform), which renders the same account menu as www in the docs' dx- classes; signed out it stays as is. docs.css: right-aligned account menu, summary marker hidden, Log out button styled as a menu item. Co-Authored-By: Claude Opus 5.5 --- doc/assets/css/docs.css | 7 +++++++ doc/layouts/partials/head/head.html | 3 +++ doc/layouts/partials/site/header.html | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/assets/css/docs.css b/doc/assets/css/docs.css index b9ddfc64b..88d3a7ff1 100644 --- a/doc/assets/css/docs.css +++ b/doc/assets/css/docs.css @@ -112,6 +112,13 @@ img { max-width: 100%; height: auto; } } .dx-drop__item { padding: 8px 12px; border-radius: var(--br-m); color: var(--grey-800); font-size: 14px; white-space: nowrap; } .dx-drop__item:hover { background: var(--grey-050); color: var(--grey-900); } +/* Signed-in account menu, rendered by www's /site-session.js into [data-ttn-auth="dx"]. */ +summary.dx-header__user { list-style: none; cursor: pointer; } +summary.dx-header__user::-webkit-details-marker { display: none; } +.dx-drop--end > .dx-drop__menu { left: auto; right: 0; } +.dx-drop--end .dx-drop__item { display: flex; align-items: center; gap: 8px; } +.dx-drop--end form { margin: 0; } +.dx-drop--end button.dx-drop__item { width: 100%; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; } /* Search */ .dx-search { position: relative; width: min(100%, 240px); } diff --git a/doc/layouts/partials/head/head.html b/doc/layouts/partials/head/head.html index 290264066..c226dc5c9 100644 --- a/doc/layouts/partials/head/head.html +++ b/doc/layouts/partials/head/head.html @@ -6,6 +6,9 @@ loads only after the visitor accepts. Root-relative on purpose — it exists only behind the www front door, so the raw GitHub Pages origin and local Hugo previews stay untracked. */}} + {{- /* Signed-in member in the global header (thethingsnetwork-v2 platform/app/site-session.js): asks + www's /api/session, so root-relative and only active behind the www front door. */}} + {{ hugo.Generator }} diff --git a/doc/layouts/partials/site/header.html b/doc/layouts/partials/site/header.html index d8e60a47b..34ea2f963 100644 --- a/doc/layouts/partials/site/header.html +++ b/doc/layouts/partials/site/header.html @@ -41,7 +41,9 @@ -
+ {{- /* data-ttn-auth="dx": www's /site-session.js (thethingsnetwork-v2 platform/app/site-session.js) + swaps Log in / Sign up for the signed-in member's account menu, in these dx- classes. */}} +