mirror of
https://github.com/DanielLavrushin/b4.git
synced 2026-04-28 03:20:35 +00:00
fix: update Swagger documentation output path to src/tools/docs
This commit is contained in:
parent
7e43b0b8ee
commit
8a5821511c
2 changed files with 5 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -32,7 +32,7 @@ go.work.sum
|
|||
# .idea/
|
||||
# .vscode/
|
||||
|
||||
src/docs/
|
||||
src/tools/docs/
|
||||
src/embed
|
||||
|
||||
src/b4
|
||||
|
|
|
|||
8
Makefile
8
Makefile
|
|
@ -30,10 +30,10 @@ ANDROID_MIN_API := 21
|
|||
.PHONY: swagger
|
||||
swagger:
|
||||
@echo "Generating Swagger docs..."
|
||||
@cd $(SRC_DIR) && go run github.com/swaggo/swag/cmd/swag@v1.16.4 init --generalInfo main.go --output docs --parseDependency
|
||||
@rm -f $(SRC_DIR)/docs/docs.go
|
||||
@sed -i 's/"version": *"[^"]*"/"version": "$(VERSION)"/' $(SRC_DIR)/docs/swagger.json
|
||||
@cp $(SRC_DIR)/docs/swagger.json ./docs/static/swagger.json
|
||||
@cd $(SRC_DIR) && go run github.com/swaggo/swag/cmd/swag@v1.16.4 init --generalInfo main.go --output tools/docs --parseDependency
|
||||
@sed -i 's/"version": *"[^"]*"/"version": "$(VERSION)"/' $(SRC_DIR)/tools/docs/swagger.json
|
||||
@cp $(SRC_DIR)/tools/docs/swagger.json ./docs/static/swagger.json
|
||||
@rm -rf $(SRC_DIR)/tools/docs
|
||||
@echo "Swagger spec (v$(VERSION)) copied to docs/static/"
|
||||
|
||||
# Build for current platform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue