From 6796fe6944e9f986aa09493a12e4000c50510ac1 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Tue, 28 May 2024 17:04:03 +0200 Subject: [PATCH] Fix broken example source links in Viewer example list --- crates/re_dev_tools/src/build_examples/example.rs | 1 + crates/re_dev_tools/src/build_examples/manifest.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/re_dev_tools/src/build_examples/example.rs b/crates/re_dev_tools/src/build_examples/example.rs index 5379dd36be52..555849423a83 100644 --- a/crates/re_dev_tools/src/build_examples/example.rs +++ b/crates/re_dev_tools/src/build_examples/example.rs @@ -9,6 +9,7 @@ use std::str::FromStr; use anyhow::Context; pub struct Example { + /// Name of the folder it's stored in. pub name: String, pub title: String, pub dir: PathBuf, diff --git a/crates/re_dev_tools/src/build_examples/manifest.rs b/crates/re_dev_tools/src/build_examples/manifest.rs index a55fcd6957a9..22ab16b13ffb 100644 --- a/crates/re_dev_tools/src/build_examples/manifest.rs +++ b/crates/re_dev_tools/src/build_examples/manifest.rs @@ -85,9 +85,8 @@ impl ManifestEntry { height: example.thumbnail_dimensions[1], }, source_url: format!( - "{base_source_url}/examples/{}/{name}/{}", + "{base_source_url}/examples/{}/{name}", example.language.examples_dir().to_string_lossy(), - example.script_path.to_string_lossy(), ), name, }