Skip to content

Commit

Permalink
#27: Synergy.Documentation: Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Jan 13, 2024
1 parent f5b8076 commit daecc62
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Documentation/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Synergy.Documentation nuget package

Here is the documentation of the Synergy.Documentation and Synergy.Documentation.Annotations nuget packages.
Here is the documentation of the `Synergy.Documentation` and `Synergy.Documentation.Annotations` nuget packages.
They were created to help developers to document their code in a simple way.
It is based on the idea of [Docs as Code](https://www.writethedocs.org/guide/docs-as-code/).

Expand Down Expand Up @@ -145,7 +145,8 @@ public class NoteTests
.But("I want to show you how to use them")
.Therefore("I want to show you how to use them")
.Otherwise("I want to show you how to use them")
.Moreover("I want to show you how to use them");
.Moreover("I want to show you how to use them")
.Reference("https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/");
}

[Fact]
Expand Down
3 changes: 3 additions & 0 deletions Documentation/Synergy.Documentation.Annotations/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ public static T Otherwise<T>(this T source, string reason)

public static T Moreover<T>(this T source, string reason)
=> source;

public static T Reference<T>(this T source, string link)
=> source;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
source: T?,
reason: string
) : T? [Extension]
- Note.Reference<T>(
source: T?,
link: string
) : T? [Extension]
- Note.Then<T>(
source: T?,
reason: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public void ShowOff()
.But("I want to show you how to use them")
.Therefore("I want to show you how to use them")
.Otherwise("I want to show you how to use them")
.Moreover("I want to show you how to use them");
.Moreover("I want to show you how to use them")
.Reference("https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/");
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Synergy.Documentation.Tests/Docs/README.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial class README : READMEBase
/// </summary>
public virtual string TransformText()
{
this.Write("# Synergy.Documentation nuget package\r\n\r\nHere is the documentation of the Synergy.Documentation and Synergy.Documentation.Annotations nuget packages.\r\nThey were created to help developers to document their code in a simple way.\r\nIt is based on the idea of [Docs as Code](https://www.writethedocs.org/guide/docs-as-code/).\r\n\r\n## Enlisting Public API\r\n\r\nTo enlist public API, we use the following tool:\r\n\r\n```csharp\r\n");
this.Write("# Synergy.Documentation nuget package\r\n\r\nHere is the documentation of the `Synergy.Documentation` and `Synergy.Documentation.Annotations` nuget packages.\r\nThey were created to help developers to document their code in a simple way.\r\nIt is based on the idea of [Docs as Code](https://www.writethedocs.org/guide/docs-as-code/).\r\n\r\n## Enlisting Public API\r\n\r\nTo enlist public API, we use the following tool:\r\n\r\n```csharp\r\n");

#line 14 "C:\Projects\Synergy\framework\src\Documentation\Synergy.Documentation.Tests\Docs\README.tt"
this.Write(this.ToStringHelper.ToStringWithCulture(this.ApiFile.ReadAllText()));
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Synergy.Documentation.Tests/Docs/README.tt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<#@output extension=".md"#>
# Synergy.Documentation nuget package

Here is the documentation of the Synergy.Documentation and Synergy.Documentation.Annotations nuget packages.
Here is the documentation of the `Synergy.Documentation` and `Synergy.Documentation.Annotations` nuget packages.
They were created to help developers to document their code in a simple way.
It is based on the idea of [Docs as Code](https://www.writethedocs.org/guide/docs-as-code/).

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
Click the image above to view the procject [Code Topology](http://htmlpreview.github.io/?https://github.com/synergy-software/synergy.framework/blob/master/docs/CodeTopologyReport.html)

[Design by contract programming](https://github.com/synergy-software/synergy.framework/wiki/Contracts)

[Docs As Code](Documentation/README.md)
5 changes: 5 additions & 0 deletions Synergy.Framework.sln
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Synergy.Web.Api.Tests", "We
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Synergy.Documentation.Annotations", "Documentation\Synergy.Documentation.Annotations\Synergy.Documentation.Annotations.csproj", "{7C495E3F-9F11-4662-B8E5-56C68A227C36}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "!Docs", "!Docs", "{66529869-A724-46F6-B274-4599CC99D1F7}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit daecc62

Please sign in to comment.