mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-03-03 03:57:01 +00:00
fix: streamline API docs generation to sync both locations
Updated make docs to generate swagger.json to both api-docs/ and web/project-site/public/api/ to match CI workflow behavior. This fixes CI failures where the project site swagger.json was out of sync with code changes (max_new_tokens field for Voxtral).
This commit is contained in:
4
Makefile
4
Makefile
@@ -55,7 +55,9 @@ docs: ## Generate API documentation from Go code annotations
|
||||
@echo "Generating API documentation..."
|
||||
@command -v swag >/dev/null 2>&1 || { echo "Error: swag not installed. Run: go install github.com/swaggo/swag/cmd/swag@latest"; exit 1; }
|
||||
swag init -g cmd/server/main.go -o api-docs
|
||||
@echo "✓ API documentation generated in api-docs/"
|
||||
@echo "Syncing to project site..."
|
||||
swag init -g server/main.go -o web/project-site/public/api --outputTypes json --dir cmd,internal
|
||||
@echo "✓ API documentation generated in api-docs/ and web/project-site/public/api/"
|
||||
|
||||
docs-clean: ## Clean generated API documentation
|
||||
@echo "Cleaning API documentation..."
|
||||
|
||||
@@ -4855,6 +4855,10 @@
|
||||
"description": "Output formatting",
|
||||
"type": "integer"
|
||||
},
|
||||
"max_new_tokens": {
|
||||
"description": "Voxtral settings",
|
||||
"type": "integer"
|
||||
},
|
||||
"max_speakers": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user