Redocly API Block - No Sidebar
Display the Redocly API Block without the left sidebar navigation, providing a streamlined, full-width documentation view.
Overview
By default, the Redocly API Block shows a left sidebar with navigation (disableSidebar: false). Setting disableSidebar to true or using the disableSidebar attribute removes the left navigation panel that typically shows API endpoints and tags. This is useful for:
- Simple APIs with few endpoints
- Cleaner, more focused documentation
- Maximizing content width
- Custom navigation implementations
Syntax
<RedoclyAPIBlock src="path/to/openapi.yaml" disableSidebar />
Parameters
- src: Path to OpenAPI specification file
- disableSidebar: Boolean flag to hide the sidebar
Example
data-src=../../assets/openapi.yaml
data-disableSidebar=