Skip to content

Commit

Permalink
move doc to docgen 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaygekht committed Mar 22, 2021
1 parent 7b778f3 commit f4481b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Gehtsoft.Measurements/ConversionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ConversionAttribute(ConversionOperation operation) : this(operation, 0, C
/// <summary>
/// The constructor to specify a custom conversion
/// </summary>
/// <param name="operation">Must always be <c>ConversionOperation.Base</c></param>
/// <param name="operation">Must always be `ConversionOperation.Base`</param>
/// <param name="name">The full name (namespace + name) of the type that implements <see cref="ICustomConversionOperation">ICustomConversionOperation</see> interface</param>
public ConversionAttribute(ConversionOperation operation, string name) : this(operation, 0, ConversionOperation.None, 0)
{
Expand Down
9 changes: 5 additions & 4 deletions Gehtsoft.Measurements/Measurement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ namespace Gehtsoft.Measurements
/// The enumeration used as a measurement units specification must be marked using <see cref="UnitAttribute"/> and
/// <see cref="ConversionAttribute"/>
/// </para>
/// <para>The arithmetic operators (e.g. +, *) and comparison operators are supported.</para>
/// <para>The arithmetic operators (e.g. `+`, `*`) and comparison operators are supported.</para>
/// <para>
/// The class supports serialization using System.Text.Json serializer and XmlSerializer as well as
/// many 3rd party serializers such as BinaronSerializer.
/// The class supports serialization using `System.Text.Json` serializer and `XmlSerializer` as well as
/// many 3rd party serializers such as `BinaronSerializer`.
/// </para>
/// <param name="T">The measurement unit</param>
/// </summary>
public readonly struct Measurement<T> : IEquatable<Measurement<T>>, IComparable<Measurement<T>>, IFormattable
where T : Enum
Expand Down Expand Up @@ -84,7 +85,7 @@ public Measurement(string text)
/// <summary>
/// Convert to string with specified format
/// </summary>
/// <param name="format">A numeric format or "ND" to format with the default accuracy and NF to display as all digits after decimal point</param>
/// <param name="format">A numeric format or `"ND"` to format with the default accuracy and `"NF"` to display as all digits after decimal point</param>
/// <param name="formatProvider"></param>
/// <returns></returns>
public string ToString(string format, IFormatProvider formatProvider)
Expand Down
11 changes: 5 additions & 6 deletions doc/project.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Gehtsoft.Build.DocGen" Version="0.1.12" IncludeAssets="build" />
<PackageReference Include="Gehtsoft.Build.DocGen" Version="0.1.14" IncludeAssets="build" />
<PackageReference Include="Gehtsoft.Build.ContentDelivery" Version="0.1.10" IncludeAssets="build" />
</ItemGroup>
<PropertyGroup>
Expand All @@ -25,11 +25,10 @@
<MakeDir Directories="$(DocTargetDir)" />
<DocGen Project="project.xml" />
<Copy SourceFiles="@(CustomFile)" DestinationFolder="$(DocTargetDir)" />
<Copy SourceFiles="@(ContractFile)" DestinationFolder="$(PdfSampleDir)" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/res" Version="0.1.12" Destination="$(DocTargetDir)/res" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/highlighter" Version="0.1.12" Destination="$(DocTargetDir)/highlighter" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/menu" Version="0.1.12" Destination="$(DocTargetDir)/menu" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/pageImages" Version="0.1.12" Destination="$(DocTargetDir)/pageImages" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/res" Version="0.1.14" Destination="$(DocTargetDir)/res" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/highlighter" Version="0.1.14" Destination="$(DocTargetDir)/highlighter" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/menu" Version="0.1.14" Destination="$(DocTargetDir)/menu" />
<ContentFromPackage Package="gehtsoft.build.docgen" Source="Content/template/html/pageImages" Version="0.1.14" Destination="$(DocTargetDir)/pageImages" />
</Target>
<ItemGroup>
<DocSource Include="$(MSBuildProjectDirectory)/../Gehtsoft.Measurements/bin/Release/netstandard2.0/Gehtsoft.Measurements.dll" />
Expand Down
5 changes: 3 additions & 2 deletions doc/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

<dg:output template="%docgen%/template/html/main.xsl" file="dst/null-file" encoding="utf-8" >
<dg:define name="text-language" value="en" />
<dg:define name="hhp-language" value="0x409 English (United States)" />
<dg:define name="write-hhp" value="no" />
<dg:define name="help-title" value="Gehtsoft PDF Flow Library" />
<dg:define name="chm-file" value="../Gehtsoft.PDFFlowLibrary.chm" />
<dg:define name="advanced-web-content" value="yes" />
<dg:define name="default-transform" value="yes" />
<dg:define name="enable-highlighter" value="yes" />
<dg:define name="enable-highlighter" value="yes" />
<dg:define name="external-resources" value="yes" />
</dg:output>
<dg:output template="%docgen%/template/xmldoc/main.xsl" file="Gehtsoft.Measurements.xml" encoding="utf-8">
<dg:define name="assembly" value="Gehtsoft.Measurements" />
Expand Down

0 comments on commit f4481b6

Please sign in to comment.