A MkDocs plugin supports for add Swagger UI in page.
Maintained. Last release 5 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install mkdocs-swagger-ui-tagMkDocs Swagger UI Tag
A MkDocs plugin supports adding Swagger UI to the page.
Live demo with Material for MkDocs.
Features
- OpenAPI Specification file from online over URL or static file in docs
- All dependencies are using static files handled by the plugin not from CDN, especially suitable for those documents been deployed in the intranet
- Multiple Swagger UI on the same page
- Synchronized dark mode with Material for MkDocs
- Configure Swagger UI configuration through plugin options and tag attributes
- Support multiple OAS in a single Swagger UI with a top bar selector
- Support Swagger UI initOAuth method
Dependency
- Python Package
- beautifulsoup4>=4.13.3
- Swagger UI dist javascript file and CSS file
- swagger-ui-dist==5.32.8
Usage
-
Install the plugin from PyPI
pip install mkdocs-swagger-ui-tag -
Add
swagger-ui-tagplugin to your mkdocs.yml plugins sections:plugins: - swagger-ui-tag -
Add tag in markdown to include Swagger UI
