PWZER / swagger-ui-py

Swagger UI for Python web framework, such Tornado, Flask and Sanic. https://pwzer.github.io/swagger-ui-py/
https://pypi.org/project/swagger-ui-py
Apache License 2.0
68 stars 31 forks source link

Add `custom_css` parameter and update Swagger UI and editor #45

Open usimd opened 2 months ago

usimd commented 2 months ago

Adds a new parameter custom_css to specify a location from where to pull additional CSS for customizing the Swagger UI (not editor).

The update process is patching the required snippet into doc.html and does in addition reformat all HTML files using djlint for consistency in future updates.

This fixes https://github.com/PWZER/swagger-ui-py/issues/44.