Skip to content

Commit c733fe4

Browse files
committed
fix: build-docs failure with React 19
1 parent 4e5ef2b commit c733fe4

File tree

5 files changed

+190
-822
lines changed

5 files changed

+190
-822
lines changed

.changeset/proud-windows-agree.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@redocly/cli": patch
3+
---
4+
5+
Fixed the `build-docs` command failure when React 19 is installed in the project folder.

.github/workflows/smoke.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ jobs:
297297
docker run --rm -v $PWD:/spec redocly/cli:latest bundle openapi.yaml --ext json
298298
docker run --rm -v $PWD:/spec redocly/cli:latest build-docs openapi.yaml
299299
# Check for broken styles (related issue: https://github.com/Redocly/redocly-cli/issues/1073)
300-
if [[ "$(wc -l redoc-static.html)" == "300 redoc-static.html" ]]; then
300+
if [[ "$(wc -l redoc-static.html)" == "324 redoc-static.html" ]]; then
301301
echo "Docs built correctly."
302302
else
303-
echo "Docs built incorrectly. Received lines: $(wc -l redoc-static.html) (expected 300 lines in redoc-static.html)."
303+
echo "Docs built incorrectly. Received lines: $(wc -l redoc-static.html) (expected 324 lines in redoc-static.html)."
304304
exit 1
305305
fi

__tests__/smoke/run-smoke.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ $2 redocly-lint
1717
$2 redocly-bundle
1818
$2 redocly-build-docs
1919
# Check for broken styles (related issue: https://github.com/Redocly/redocly-cli/issues/1073)
20-
if [[ "$(wc -l redoc-static.html)" == "300 redoc-static.html" ]]; then
20+
if [[ "$(wc -l redoc-static.html)" == "324 redoc-static.html" ]]; then
2121
echo "Docs built correctly."
2222
else
23-
echo "Docs built incorrectly. Received lines: $(wc -l redoc-static.html) (expected 300 lines in redoc-static.html)."
23+
echo "Docs built incorrectly. Received lines: $(wc -l redoc-static.html) (expected 324 lines in redoc-static.html)."
2424
exit 1
2525
fi

0 commit comments

Comments
 (0)