feat: Добавил генерацию api документации для git
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 12s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m56s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 15s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 8s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 12s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m56s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 15s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 8s
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<AllowMissingPrunePackageData>true</AllowMissingPrunePackageData>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<OpenApiGenerateDocumentsOnBuild>true</OpenApiGenerateDocumentsOnBuild>
|
||||
<OpenApiDocumentsDirectory>$(BaseIntermediateOutputPath)openapi</OpenApiDocumentsDirectory>
|
||||
<OpenApiGenerateDocumentsOptions>--file-name openapi</OpenApiGenerateDocumentsOptions>
|
||||
<!-- Suppress warnings for public members without XML docs -->
|
||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
@@ -39,4 +42,14 @@
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<Target
|
||||
Name="CopyGeneratedOpenApiDocument"
|
||||
AfterTargets="Build"
|
||||
Condition="Exists('$(OpenApiDocumentsDirectory)/openapi.json')">
|
||||
<Copy
|
||||
SourceFiles="$(OpenApiDocumentsDirectory)/openapi.json"
|
||||
DestinationFiles="$(MSBuildProjectDirectory)/openapi.v1.json"
|
||||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user