.PHONY: pre-commit-install pre-commit-install: pre-commit install; pre-commit install --hook-type commit-msg; .PHONY: update-template update-template: copier update --trust --defaults # https://copier.readthedocs.io/en/stable/updating/#recover-from-a-broken-update .PHONY: update-template-forced update-template-forced: copier recopy $$project --trust .PHONY: cspell-filenames cspell-filenames: git ls-files | cspell stdin --show-context --locale en-GB,de-CH .PHONY: lint lint: cd src; redocly lint openapi.yaml .PHONY: bundle bundle: cd src; redocly bundle openapi.yaml -o ../out/openapi.json .PHONY: preview-docs preview-docs: bundle @echo "\n\nServer Running at: http://localhost:8080/" @docker run --rm -p 8080:8080 -e SWAGGER_JSON=/out/openapi.json -e DOC_EXPANSION=none -v $(PWD)/out:/out swaggerapi/swagger-ui > /dev/null 2>&1 .PHONY: preview-docs-redocly preview-docs-redocly: bundle @echo "\n\nServer Running at: http://localhost:8080/" @docker run --rm -p 8080:80 -e SPEC_URL=/out/openapi.json -v $(PWD)/out:/usr/share/nginx/html/out redocly/redoc > /dev/null 2>&1