mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 01:10:52 +08:00
chore: tweak docs generate path
This commit is contained in:
parent
ebcf43c997
commit
dcfb2b7de2
2 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ plugins:
|
||||||
opt:
|
opt:
|
||||||
- paths=source_relative
|
- paths=source_relative
|
||||||
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.19.0
|
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.19.0
|
||||||
out: ../api/v2/
|
out: ../server/route/api/v2/
|
||||||
opt: output_format=yaml,allow_merge=true
|
opt: output_format=yaml,allow_merge=true
|
||||||
# Build the TypeScript definitions for the web.
|
# Build the TypeScript definitions for the web.
|
||||||
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
|
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
# This file is used by gen-api-v1-docs.ps1 and gen-api-v1-docs.sh
|
# 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
|
# 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
|
# 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)
|
# Possible output files: go (docs.go), json (swagger.json), yaml (swagger.yaml)
|
||||||
SWAG_OUTPUT_TYPES=go,yaml
|
SWAG_OUTPUT_TYPES=go,yaml
|
||||||
|
|
||||||
# Where generated files are outputted
|
# Where generated files are outputted
|
||||||
SWAG_OUTPUT=./api/v1
|
SWAG_OUTPUT=./server/route/api/v1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue