From be3a7936db4c1a18abb7059576e1de9b76459c5d Mon Sep 17 00:00:00 2001 From: Marcin Celej Date: Sat, 6 Jan 2024 21:06:33 +0100 Subject: [PATCH] #27: Renamed method creating Markdown.Image relative file path --- .../Architecture/Dependencies/Relations.of.Markdown.verified.md | 2 +- .../Public/Api.of.Synergy.Documentation.verified.md | 2 +- Documentation/Synergy.Documentation/Markup/Markdown.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md index a576d0c..ab82b03 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md @@ -77,7 +77,7 @@ filePath: CodeFile, alternateText: string? [Nullable, Optional] ) - - RelativeTo( + - RelativeFrom( file: CodeFile ) : Markdown+Image - ToString() : string diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md index 6243afb..6e85c4a 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md @@ -142,7 +142,7 @@ filePath: CodeFile, alternateText: string? [Nullable, Optional] ) - - RelativeTo( + - RelativeFrom( file: CodeFile ) : Markdown+Image - ToString() : string diff --git a/Documentation/Synergy.Documentation/Markup/Markdown.cs b/Documentation/Synergy.Documentation/Markup/Markdown.cs index e3f1040..ccc4f2d 100644 --- a/Documentation/Synergy.Documentation/Markup/Markdown.cs +++ b/Documentation/Synergy.Documentation/Markup/Markdown.cs @@ -236,7 +236,7 @@ public Image(CodeFile filePath, string? alternateText = null) public override string ToString() => $"![{_alternateText}]({_filePath.ToString().Replace(" ", "%20")}){Markdown.NL}"; - public Image RelativeTo(CodeFile file) + public Image RelativeFrom(CodeFile file) => new(_filePath.RelativeTo(file.Folder), _alternateText); }