diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index f58b77f4..585c70f3 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -881,6 +881,26 @@ nav { [data-grid="half"] { grid-column: span 6; } + + [data-grid="breakout"] { + grid-column: 1 / -1; + width: calc(100vw - var(--sidebar-width) - 4rem); + position: relative; + left: 50%; + right: 50%; + margin-left: calc(-1 * (50vw - var(--sidebar-width) / 2 - 2rem)); + margin-right: calc(-1 * (50vw - var(--sidebar-width) / 2 - 2rem)); + max-width: calc(100vw - var(--sidebar-width) - 4rem); + } + + @media (max-width: 68rem) { + [data-grid="breakout"] { + width: 100vw; + margin-left: -50vw; + margin-right: -50vw; + max-width: 100vw; + } + } } .content { @@ -921,19 +941,16 @@ nav { } } } - - /* Allow redocly to fill the entire container */ - &.content__redocly { - min-width: 100%; - margin: 0; - - #api-component { - z-index: 0; - position: relative; - display: block; - max-width: 100%; - margin-block-start: 1rem; - } +} +/* Allow redocly to fill the entire container */ +.content .content__redocly { + border-top: 1px solid oklch(var(--color-divider)); + border-bottom: 1px solid oklch(var(--color-divider)); + #api-component { + z-index: 0; + position: relative; + display: block; + max-width: 100%; } } diff --git a/exampleSite/content/test-product/redoc/api-reference.md b/exampleSite/content/test-product/redoc/api-reference.md index 6f24b960..11729ce5 100644 --- a/exampleSite/content/test-product/redoc/api-reference.md +++ b/exampleSite/content/test-product/redoc/api-reference.md @@ -7,5 +7,11 @@ tags: - api doctypes: - reference +nd-api-reference: "./api/example.json" --- -{{< openapi spec="./api/example.json" >}} + +## Introduction + +Welcome to the API Reference documentation for the example book API. This documentation provides detailed information about the API endpoints, request/response formats, and other relevant details. + +## API Specification diff --git a/exampleSite/content/test-product/redoc/live-example.md b/exampleSite/content/test-product/redoc/live-example.md index fc05a23b..34d7e3fe 100644 --- a/exampleSite/content/test-product/redoc/live-example.md +++ b/exampleSite/content/test-product/redoc/live-example.md @@ -7,5 +7,5 @@ tags: - api doctypes: - reference +nd-api-reference: "./api/one.json" --- -{{< openapi spec="./api/one.json" >}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4284f4e2..93145bcc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,6 +20,12 @@