Skip to content

Commit 0a1a2d7

Browse files
authored
Fixing demo app links for new repo structure (#3562)
1 parent 514a925 commit 0a1a2d7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/MainDemo.Wpf/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
55
</startup>
66
<appSettings>
7-
<add key="GitHub" value="https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/"/>
7+
<add key="GitHub" value="https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit"/>
88
</appSettings>
99
</configuration>

src/MainDemo.Wpf/Domain/DocumentationLink.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static DocumentationLink StyleLink(string nameChunk)
2929
{
3030
return new DocumentationLink(
3131
DocumentationLinkType.StyleSource,
32-
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.{nameChunk}.xaml",
32+
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.{nameChunk}.xaml",
3333
nameChunk);
3434
}
3535

@@ -39,7 +39,7 @@ public static DocumentationLink ApiLink<TClass>(string subNamespace)
3939

4040
return new DocumentationLink(
4141
DocumentationLinkType.ControlSource,
42-
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/MaterialDesignThemes.Wpf/{subNamespace}/{typeName}.cs",
42+
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/src/MaterialDesignThemes.Wpf/{subNamespace}/{typeName}.cs",
4343
typeName);
4444
}
4545

@@ -53,7 +53,7 @@ public static DocumentationLink ApiLink(Type type)
5353

5454
return new DocumentationLink(
5555
DocumentationLinkType.ControlSource,
56-
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/MaterialDesignThemes.Wpf/{typeName}.cs",
56+
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/src/MaterialDesignThemes.Wpf/{typeName}.cs",
5757
typeName);
5858
}
5959

@@ -72,7 +72,7 @@ public static DocumentationLink DemoPageLink<TDemoPage>(string? label, string? @
7272

7373
return new DocumentationLink(
7474
DocumentationLinkType.DemoPageSource,
75-
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/MainDemo.Wpf/{(string.IsNullOrWhiteSpace(@namespace) ? "" : ("/" + @namespace + "/"))}{typeof(TDemoPage).Name}.{ext}",
75+
$"{ConfigurationManager.AppSettings["GitHub"]}/blob/master/src/MainDemo.Wpf/{(string.IsNullOrWhiteSpace(@namespace) ? "" : ("/" + @namespace + "/"))}{typeof(TDemoPage).Name}.{ext}",
7676
label ?? typeof(TDemoPage).Name);
7777
}
7878

@@ -87,8 +87,5 @@ public static DocumentationLink SpecsLink(string url, string? label)
8787

8888
public ICommand Open { get; }
8989

90-
private void Execute(object? _)
91-
{
92-
Link.OpenInBrowser(Url);
93-
}
90+
private void Execute(object? _) => Link.OpenInBrowser(Url);
9491
}

0 commit comments

Comments
 (0)