Debian Codegraph @

docs/examples/openapi/plugins/scalar_config.py

raw
1 from litestar.openapi.plugins import ScalarRenderPlugin
2
3 scalar_plugin = ScalarRenderPlugin(version="1.19.5", path="/scalar")
4
5 # Example demonstrating custom Scalar render options
6 # For more configuration options, see: https://guides.scalar.com/scalar/scalar-api-references/configuration
7 scalar_plugin_with_options = ScalarRenderPlugin(
8 options={
9 # Hide the sidebar to give more space to the main content
10 "showSidebar": False
11 }
12 )