Skip to content

Commit

Permalink
-Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Feb 15, 2015
1 parent 35155a5 commit 6624da9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Doc/Samples/Generation/CreateCustomProvider.aml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<topic id="CreateCustomProvider" revisionNumber="1">
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
<introduction>
<para>This sample generates a new <codeEntityReference>T:Newtonsoft.Json.Schema.JSchema</codeEntityReference>
with a custom <codeEntityReference>T:Newtonsoft.Json.Schema.Generation.JSchemaGenerationProvider</codeEntityReference>.</para>
</introduction>
<section>
<title>Sample</title>
<content>
<code lang="cs" source="..\Src\Newtonsoft.Json.Schema.Tests\Documentation\Samples\Generation\CreateCustomProvider.cs" region="Types" title="Types" />
<code lang="cs" source="..\Src\Newtonsoft.Json.Schema.Tests\Documentation\Samples\Generation\CreateCustomProvider.cs" region="Usage" title="Usage" />
</content>
</section>
</developerConceptualDocument>
</topic>
3 changes: 2 additions & 1 deletion Doc/doc.content
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
<Topic id="GenerateWithJsonNetAttributes" visible="True" title="Using Json.NET attributes" />
<Topic id="GenerateWithDataAnnotations" visible="True" title="Using Data Annotation attributes" />
<Topic id="GenerateWithJSchemaUndefinedIdHandling" visible="True" title="Auto schema ID generation" />
<Topic id="CreateCustomProvider" visible="True" isSelected="true" title="Create a custom JSchemaGenerationProvider" />
</Topic>
<Topic id="231aab62-1033-489c-826f-66d6b4e25ecd" visible="True" noFile="true" isExpanded="true" title="Load JSON Schemas">
<Topic id="JsonSchemaParse" visible="True" title="Parse JSON Schema from JSON" />
<Topic id="LoadJsonSchemaFromFile" visible="True" title="Load JSON Schema from a file" />
<Topic id="JsonUrlSchemaResolverHttp" visible="True" title="Using JSchemaUrlResolver" />
<Topic id="RefJsonSchemaResolver" visible="True" title="Using JSchemaPreloadedResolver" />
<Topic id="JsonUrlSchemaResolverRelative" visible="True" isSelected="true" title="Resolve relative external references" />
<Topic id="JsonUrlSchemaResolverRelative" visible="True" title="Resolve relative external references" />
</Topic>
<Topic id="49714afe-8b0f-4ef2-b622-e37a5fb85bea" visible="True" noFile="true" isExpanded="true" title="Validate JSON">
<Topic id="JTokenIsValid" visible="True" title="Validate JSON with JToken.IsValid" />
Expand Down
1 change: 1 addition & 0 deletions Doc/doc.shfbproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
</PropertyGroup>
<ItemGroup>
<Content Include="icons\favicon.ico" />
<None Include="Samples\Generation\CreateCustomProvider.aml" />
<None Include="Samples\Load\JsonUrlSchemaResolverRelative.aml" />
<None Include="Samples\Load\JsonUrlSchemaResolverHttp.aml" />
<None Include="Samples\Generation\GenerateWithJsonNetAttributes.aml" />
Expand Down

0 comments on commit 6624da9

Please sign in to comment.