From ab3956724057a85f0c5e200f832dd8ee691c9ac0 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Tue, 25 Aug 2026 14:02:09 +0200 Subject: [PATCH 1/2] Make searchbar more visible --- public/images/icons/ATTRIBUTION.txt | 10 ++++ public/images/icons/magnifier.svg | 1 + .../package-table/PackageTable.svelte | 48 ++++++++++++++++--- 3 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 public/images/icons/magnifier.svg diff --git a/public/images/icons/ATTRIBUTION.txt b/public/images/icons/ATTRIBUTION.txt index c34f4866..0e682fe6 100644 --- a/public/images/icons/ATTRIBUTION.txt +++ b/public/images/icons/ATTRIBUTION.txt @@ -13,6 +13,16 @@ linux.svg, apple.svg, windows.svg, channel.svg, docs.svg, github.svg https://github.com/Templarian/MaterialDesign/blob/master/LICENSE Credit: Pictogrammers +magnifier.svg + Source: Starlight's own icon set, @astrojs/starlight + components-internals/Icons.ts, `magnifier` + Licence: MIT + https://github.com/withastro/starlight/blob/main/LICENSE + Credit: Astro contributors + Note: not a Material icon like the rest, on purpose. The header's site + search renders this same glyph, and the two search boxes sit on the + same page. + wasm.svg Source: Simple Icons, via zensical/templates/.icons/simple/webassembly.svg Licence: CC0 1.0 Universal diff --git a/public/images/icons/magnifier.svg b/public/images/icons/magnifier.svg new file mode 100644 index 00000000..685a4f64 --- /dev/null +++ b/public/images/icons/magnifier.svg @@ -0,0 +1 @@ + diff --git a/src/components/package-table/PackageTable.svelte b/src/components/package-table/PackageTable.svelte index 90b82130..be804af8 100644 --- a/src/components/package-table/PackageTable.svelte +++ b/src/components/package-table/PackageTable.svelte @@ -395,6 +395,10 @@
+ Date: Tue, 25 Aug 2026 14:02:25 +0200 Subject: [PATCH 2/2] Add a link to the github repo of the robostack distro --- src/components/DistroHead.astro | 59 ++++++++++++++++++++++++++++++++- src/data/distros.ts | 15 +++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/src/components/DistroHead.astro b/src/components/DistroHead.astro index d312311e..adc19542 100644 --- a/src/components/DistroHead.astro +++ b/src/components/DistroHead.astro @@ -1,6 +1,6 @@ --- import type { Distro } from "../data/distros"; -import { supportLine, title } from "../data/distros"; +import { repoName, repoUrl, supportLine, title } from "../data/distros"; import DistroTabs from "./DistroTabs.astro"; interface Props { @@ -22,6 +22,17 @@ const { distro } = Astro.props;

ROS {distro.ros} {title(distro)}

{supportLine(distro)}

+ + + + {repoName(distro)} + diff --git a/src/data/distros.ts b/src/data/distros.ts index 1446020a..24c20a74 100644 --- a/src/data/distros.ts +++ b/src/data/distros.ts @@ -95,6 +95,21 @@ export function browseUrl(distro: Distro): string { return BROWSE[distro.base](distro.channel); } +/** + * The vinca repository whose recipes build this distro's channel. + * + * Every distro in `DISTROS` has one under the same name, `RoboStack/ros-noetic` + * through `RoboStack/ros-lyrical`, so the URL is derived rather than listed. + */ +export function repoUrl(distro: Distro): string { + return `https://github.com/RoboStack/ros-${distro.name}`; +} + +/** `RoboStack/ros-lyrical`: the repo link's label. */ +export function repoName(distro: Distro): string { + return `RoboStack/ros-${distro.name}`; +} + export function title(distro: Distro): string { return distro.name.charAt(0).toUpperCase() + distro.name.slice(1); }