Skip to content

Commit

Permalink
Fix broken example source links in Viewer example list
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed May 28, 2024
1 parent ca2338b commit 597d961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/re_dev_tools/src/build_examples/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions crates/re_dev_tools/src/build_examples/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 597d961

Please sign in to comment.