WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.54k stars 1k forks source link

Bundle redoc directly #12646

Open nijel opened 5 days ago

nijel commented 5 days ago

Describe the problem

Right now redoc is bundled via drf-spectacular-sidecar. That way, we don't directly control redoc version, it is missing from our client code licensing info and increases Weblate storage because it pulls also Swagger which we do not use.

Describe the solution you would like

Bundle redoc in client libraries similarly like we do with Sentry.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

Once this is done:

nijel commented 5 days ago

If possible, the build should also modify redoc to not use external CDN for icon (see https://github.com/Redocly/redoc/issues/2141). This request is blocked by CSP in Weblate, and we definitely don't want to allow it calling home.