Skip to content

Commit

Permalink
Replace redoc-cli with redocly
Browse files Browse the repository at this point in the history
Signed-off-by: Willy Lulciuc <[email protected]>
  • Loading branch information
wslulciuc committed Oct 24, 2024
1 parent 6fdc2ef commit 2c9b894
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions new-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Requirements:
# * You're on the 'main' branch
# * You've installed 'bump2version'
# * You've installed 'redoc-cli'
# * You've installed 'redocly'
#
# Usage: $ ./new-version.sh --release-version RELEASE_VERSION --next-version NEXT_VERSION

Expand Down Expand Up @@ -59,9 +59,9 @@ if [[ ! $(type -P bump2version) ]]; then
exit 1;
fi

# Verify redoc-cli is installed
if [[ ! $(type -P redoc-cli) ]]; then
echo "redoc-cli not installed! Please see https://redoc.ly/docs/redoc/quickstart/cli"
# Verify redocly is installed
if [[ ! $(type -P redocly) ]]; then
echo "redocly not installed! Please see https://redoc.ly/docs/redoc/quickstart/cli"
exit 1;
fi

Expand Down Expand Up @@ -140,7 +140,7 @@ sed -i "" "s/<version>.*/<version>${RELEASE_VERSION}<\/version>/g" ./clients/jav
sed -i "" "s/marquez-java:.*/marquez-java:${RELEASE_VERSION}/g" ./clients/java/README.md

# (5) Bundle openAPI docs
redoc-cli bundle spec/openapi.yml --output docs/openapi.html --title "Marquez API Reference"
redocly build-docs spec/openapi.yml --output docs/openapi.html --title "Marquez API Reference"

# (6) Prepare release commit
git commit -sam "Prepare for release ${RELEASE_VERSION}" --no-verify
Expand Down

0 comments on commit 2c9b894

Please sign in to comment.