From dcfb2b7de2055d9e023f31e11f831dbe9a5d4455 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 3 Mar 2024 15:05:42 +0800 Subject: [PATCH] chore: tweak docs generate path --- proto/buf.gen.yaml | 2 +- scripts/gen-api-v1-docs.cfg | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml index f5c4ca98..e0988e69 100644 --- a/proto/buf.gen.yaml +++ b/proto/buf.gen.yaml @@ -19,7 +19,7 @@ plugins: opt: - paths=source_relative - plugin: buf.build/grpc-ecosystem/openapiv2:v2.19.0 - out: ../api/v2/ + out: ../server/route/api/v2/ opt: output_format=yaml,allow_merge=true # Build the TypeScript definitions for the web. - plugin: buf.build/community/stephenh-ts-proto:v1.152.1 diff --git a/scripts/gen-api-v1-docs.cfg b/scripts/gen-api-v1-docs.cfg index 3e25b38a..36d46fcd 100644 --- a/scripts/gen-api-v1-docs.cfg +++ b/scripts/gen-api-v1-docs.cfg @@ -1,13 +1,13 @@ # This file is used by gen-api-v1-docs.ps1 and gen-api-v1-docs.sh # You should list aditional dirs here if the API grows -SWAG_API_DIRS=./api/v1 +SWAG_API_DIRS=./server/route/api/v1 # Where general API info is documented -SWAG_GENERAL_INFO=./api/v1/v1.go +SWAG_GENERAL_INFO=./server/route/api/v1/v1.go # Possible output files: go (docs.go), json (swagger.json), yaml (swagger.yaml) SWAG_OUTPUT_TYPES=go,yaml # Where generated files are outputted -SWAG_OUTPUT=./api/v1 +SWAG_OUTPUT=./server/route/api/v1