-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocs.csproj
41 lines (33 loc) · 1.47 KB
/
docs.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<OutputType>exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Heleonix.Docfx.Plugins.XmlDoc" Version="2.0.0" GeneratePathProperty="true" />
</ItemGroup>
<ItemGroup>
<UpToDateCheckInput Include="./**/*.md;./**/*.yml" Exclude="./docs/**/*" Set="Articles" />
<UpToDateCheckOutput Include="./docs/**/*.md;./docs/**/*.yml" Set="Articles" />
<UpToDateCheckInput Include="./**/main.css" Exclude="./docs/**/*" Set="Styles" />
<UpToDateCheckOutput Include="./docs/**/main.css" Set="Styles" />
<UpToDateCheckInput Include="./**/docfx.json" Exclude="./docs/**/*" Set="Configs" />
<UpToDateCheckOutput Include="./docs/manifest.json" Set="Configs" />
</ItemGroup>
<Target Name="DocfxRestore" AfterTargets="Restore">
<ItemGroup>
<XmlDocFiles Include="$(PkgHeleonix_Docfx_Plugins_XmlDoc)/template/plugins/*" />
</ItemGroup>
<Copy SourceFiles="@(XmlDocFiles)" DestinationFolder="templates/heleonix/plugins" OverwriteReadOnlyFiles="true" />
<Exec Command="dotnet tool update docfx --version 2.75.2 --local" />
</Target>
<Target Name="DocBuild" AfterTargets="Build">
<Exec Command="dotnet docfx build docfx.json" />
</Target>
<Target Name="DocClean" AfterTargets="Clean">
<RemoveDir Directories="docs" />
</Target>
<ItemGroup>
<None Include=".config\dotnet-tools.json" />
</ItemGroup>
</Project>