Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docfx Code Doc generation support #2092

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Nitrox DocFx files
Nitrox.DocFx/api/
Nitrox.DocFx/_site/

# User-specific files
*.rsuser
*.suo
Expand Down Expand Up @@ -385,4 +389,4 @@ FodyWeavers.xsd

# JetBrains Rider
.idea/
*.sln.iml
*.sln.iml
21 changes: 8 additions & 13 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<TestLibrary>false</TestLibrary>
<NitroxLibrary>false</NitroxLibrary>
<UnityModLibrary>false</UnityModLibrary>
<BuildToolDir>$(SolutionDir)Nitrox.BuildTool\bin\</BuildToolDir>
<BuildToolDir>$(MSBuildThisFileDirectory)Nitrox.BuildTool\bin\</BuildToolDir>
<BuildGenDir>$(BuildToolDir)generated_files\</BuildGenDir>
<BuildGenDllDir>$(BuildGenDir)publicized_assemblies\</BuildGenDllDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
killzoms marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -22,7 +22,7 @@
<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectName), '^Nitrox.*$'))">
<NitroxProject>true</NitroxProject>
</PropertyGroup>
<PropertyGroup Condition="'$(NitroxProject)' == 'true' and '$(MSBuildProjectName)' != 'Nitrox.Analyzers'">
<PropertyGroup Condition="'$(NitroxProject)' == 'true'">
<NitroxLibrary>true</NitroxLibrary>
</PropertyGroup>
<PropertyGroup Condition="'$(NitroxLibrary)' == 'true' and '$(MSBuildProjectName)' != 'NitroxModel' and '$(MSBuildProjectName)' != 'NitroxServer' and '$(MSBuildProjectName)' != 'Nitrox.BuildTool'">
Expand All @@ -43,15 +43,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</When>
</Choose>

<!-- Include our analyzer and code gen library to all Nitrox projects -->
<Choose>
<When Condition="'$(NitroxLibrary)' == 'true'">
<ItemGroup>
<ProjectReference Include="..\Nitrox.Analyzers\Nitrox.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<PackageReference Include="Nitrox.Analyzers" Version="1.0.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</When>
</Choose>
Expand All @@ -61,11 +56,11 @@
<When Condition="'$(UnityModLibrary)' == 'true'">
<ItemGroup>
<!-- Require other Nitrox projects (that need game DLLs) to wait on BuildTool. -->
<ProjectReference Include="$(SolutionDir)Nitrox.BuildTool\Nitrox.BuildTool.csproj">
<ProjectReference Include="$(MSBuildThisFileDirectory)Nitrox.BuildTool\Nitrox.BuildTool.csproj">
<Name>Nitrox.BuildTool</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
<ProjectReference Include="$(SolutionDir)NitroxModel\NitroxModel.csproj">
<ProjectReference Include="$(MSBuildThisFileDirectory)NitroxModel\NitroxModel.csproj">
<Name>NitroxModel</Name>
</ProjectReference>
</ItemGroup>
Expand Down
89 changes: 0 additions & 89 deletions Nitrox.Analyzers/Diagnostics/DependencyInjectionMisuseAnalyzer.cs

This file was deleted.

61 changes: 0 additions & 61 deletions Nitrox.Analyzers/Diagnostics/EnumeratorUsageAnalyzer.cs

This file was deleted.

173 changes: 0 additions & 173 deletions Nitrox.Analyzers/Diagnostics/LocalizationAnalyzer.cs

This file was deleted.

Loading