Enhance documentation and improve example data handling

This commit is contained in:
Alexander Shabarshov 2025-04-27 11:35:37 +01:00
parent f4f9a5c88d
commit c61bf2f374
4 changed files with 11 additions and 8 deletions

View File

@ -17,8 +17,9 @@
<PackageReference Include="System.Text.Json" /> <PackageReference Include="System.Text.Json" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/> <None Include="../README.md" Pack="true" PackagePath="\"/>
</ItemGroup> <None Include="../docs/**" Pack="true" PackagePath="\docs\"/>
</ItemGroup>
</Project> </Project>

View File

@ -54,7 +54,9 @@
} }
else else
{ {
exampleData[parameter.Name] = GenerateExampleFromSchema(parameter.Schema); var ex = GenerateExampleFromSchema(parameter.Schema);
if (ex != null)
exampleData[parameter.Name] = ex;
} }
} }

View File

@ -9,7 +9,7 @@ internal class TableOfContentsTree : ITableOfContentsTree
private readonly Dictionary<string, TocTreeNode> _nodes = new(); private readonly Dictionary<string, TocTreeNode> _nodes = new();
private readonly List<string> _order = new(); private readonly List<string> _order = new();
public event EventHandler Changed; public event EventHandler? Changed;
public void Clear() public void Clear()
{ {

View File

@ -9,9 +9,9 @@ It is a pure Blazor implementation.
## Screenshots ## Screenshots
[Light mode](docs/light.png) ![Light mode](docs/light.png){ width=250px }
[Dark mode](docs/dark.png) ![Dark mode](docs/dark.png){ width=250px }
[Examples generation](docs/example-data.png)] ![Examples generation](docs/example-data.png)]{ width=250px }
## Installation ## Installation