Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,17 @@ h6,
}

html {
scroll-behavior: smooth;
scroll-behavior: smooth; /* Breaks for redocly */
font-optical-sizing: auto;
font-weight: 300;
font-style: normal;
}

html:has(api-container) {
/* Fixes scroll for redocly but loses smooth scroll */
scroll-behavior: auto;
}

h1,
h2,
h3,
Expand Down Expand Up @@ -916,8 +921,8 @@ nav {

/* Allow redocly to fill the entire container */
&.content__redocly {
justify-self: unset;
max-width: 100%;
min-width: 100%;
margin: 0;

#api-component {
z-index: 0;
Expand Down
11 changes: 11 additions & 0 deletions exampleSite/content/test-product/redoc/live-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
description: Live example of Redocly usage
title: Live example
weight: 200
type: redoc
tags:
- api
doctypes:
- reference
---
{{< openapi spec="./api/one.json" >}}
Loading