diff --git a/README.md b/README.md index df6daa119..f78598980 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,7 @@ Building docs - Docs are generated using [Redocly](https://redocly.com/docs/cli/installation). To regenerate them, run the following commands from the project root directory. ```bash -docker run -p 8080:80 -v ${PWD}:/spec docker.io/redocly/cli join spec/docs.yaml spec/polaris-management-service.yml spec/rest-catalog-open-api.yaml -o spec/index.yaml --prefix-components-with-info-prop title -docker run -p 8080:80 -v ${PWD}:/spec docker.io/redocly/cli build-docs spec/index.yaml --output=docs/index.html --config=spec/redocly.yaml +docs/build ``` ## License diff --git a/docs/build b/docs/build new file mode 100755 index 000000000..c396639bf --- /dev/null +++ b/docs/build @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -eux + +docker run -p 8080:80 -v ${PWD}:/spec --rm docker.io/redocly/cli join spec/docs.yaml spec/polaris-management-service.yml spec/rest-catalog-open-api.yaml -o spec/index.yaml --prefix-components-with-info-prop title +docker run -p 8080:80 -v ${PWD}:/spec --rm docker.io/redocly/cli build-docs spec/index.yaml --output=docs/index.html --config=spec/redocly.yaml