mirror of
https://github.com/aler9/rtsp-simple-server
synced 2026-04-22 23:17:11 +08:00
rename apidocs into api (#4844)
this is to follow standard Golang project layout
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@ export DOCKERFILE_APIDOCS_GEN
|
||||
|
||||
apidocs:
|
||||
echo "$$DOCKERFILE_APIDOCS_GEN" | docker build . -f - -t temp
|
||||
docker run --rm -v "$(shell pwd)/apidocs:/s" -w /s temp \
|
||||
docker run --rm -v "$(shell pwd)/api:/s" -w /s temp \
|
||||
sh -c "redoc-cli bundle openapi.yaml"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ lint-mod-tidy:
|
||||
|
||||
lint-apidocs:
|
||||
echo "$$DOCKERFILE_APIDOCS_LINT" | docker build . -f - -t temp
|
||||
docker run --rm -v "$(shell pwd)/apidocs:/s" -w /s temp \
|
||||
docker run --rm -v "$(shell pwd)/api:/s" -w /s temp \
|
||||
sh -c "openapi lint openapi.yaml"
|
||||
|
||||
lint: lint-golangci lint-mod-tidy lint-apidocs
|
||||
|
||||
Reference in New Issue
Block a user