Redocly API Block - No Layout

Display the Redocly API Block without the standard page layout wrapper, creating a full-page, immersive API documentation experience.

Overview

Setting layout: none in the frontmatter removes the typical page layout elements (header, footer, sidebars), allowing the API documentation to occupy the full viewport. This is ideal for:

Syntax

Add layout: none to the page frontmatter:

---
title: Your Page Title
layout: none
---

<RedoclyAPIBlock src="path/to/openapi.yaml" scrollYOffset={64} />

Parameters

Example

data-src=../../assets/openapi.yaml
data-scrollYOffset=64