-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bumped redoc version to 2.0.0-rc.23 #543
Bumped redoc version to 2.0.0-rc.23 #543
Conversation
+1 on this |
CI check is false. |
@rafalolszewski94 I Installed the requirement from your Branch at solved the issue on my end. |
I found that the problem And I don't know for some reason, but resizing to normal couldn't reoccur the problem. I hope this would be helpful to others. |
+1 to merge because of |
I forked this repo to update redoc and swagger: https://github.com/vndly-oss/drf-yasg |
+1 Really need to fix this asap. The current release is basically broken for Chrome which is 80% of our user base. |
It's a shame this project is basically dead. from drf_yasg.views import UI_RENDERERS, ReDocRenderer, get_schema_view
class NewRenderer(ReDocRenderer):
template = "thisapp/new_docs.html"
UI_RENDERERS["redoc-new"] = (NewRenderer,)
...
url(r"^$", api_schema_view.with_ui("redoc-new"),), The template is basically the same, but with the script tag replaced with a static tag pointing to my updated version of the JS. |
There are a couple of related issues (like #548) and PRs (like #625) already open , but no-one is merging them :( If someone is interested in in my workaround with Dockerfile: FROM redocly/redoc:v2.0.0-rc.40 as redoc
FROM swaggerapi/swagger-ui:v3.32.5 as swagger-ui
FROM python:3.8-alpine3.12 as base
# building all the requirements in temp container
FROM base as builder
WORKDIR /install
ENV PIP_PREFIX /install
RUN pip install -r /requirements.txt
# workaround to update ReDoc UI, because project drf-yasg seems to be close to dead
# but no nice substitution for it yet, see issue: https://github.com/axnsan12/drf-yasg/pull/543
COPY --from=redoc /usr/share/nginx/html/redoc.standalone.js lib/python3.8/site-packages/drf_yasg/static/drf-yasg/redoc/redoc.min.js
# same with swagger ui
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui* lib/python3.8/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/
COPY --from=swagger-ui /usr/share/nginx/html/oauth2-redirect.html lib/python3.8/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/
COPY --from=swagger-ui /usr/share/nginx/html/favicon* lib/python3.8/site-packages/drf_yasg/static/drf-yasg/swagger-ui-dist/ |
This has been implemented and fixed in the active fork, See: JoelLefkowitz#69 |
Fixed in master now, updated to rc40, sorry for disappearing. |
Major fix for me was
Redoc official changelog
Below changes since
rc.14
2.0.0-rc.23 (2020-02-09)
Bug Fixes
2.0.0-rc.22 (2020-01-15)
Bug Fixes
Features
2.0.0-rc.21 (2020-01-10)
Bug Fixes
2.0.0-rc.20 (2019-12-13)
Bug Fixes
2.0.0-rc.19 (2019-12-13)
Bug Fixes
Features
multipleOf
constrains (#1065) (3e90133)2.0.0-rc.18 (2019-10-16)
Bug Fixes
2.0.0-rc.17 (2019-10-16)
Bug Fixes
Features
2.0.0-rc.16 (2019-09-30)
Bug Fixes
2.0.0-rc.15 (2019-09-30)
Bug Fixes
Features
disableGoogleFont
parameter to cli (#1045) (aceb343)