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