From 486625c98452b8a5f657840e366a701069e41e0d Mon Sep 17 00:00:00 2001 From: Melissa Garcia Date: Fri, 8 Mar 2024 17:06:58 -0800 Subject: [PATCH] disableSidebar and disableSearch optional params --- packages/gatsby-theme-aio/package.json | 4 ++-- .../src/components/RedoclyAPIBlock/index.js | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index c4cd3db018..efa601ba72 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.11.5-rc8", + "version": "4.11.7-rc2", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", @@ -153,4 +153,4 @@ "use-debounce": "^9.0.4", "uuid": "^9.0.0" } -} +} \ No newline at end of file diff --git a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js index dc85eabbfb..a731a5aa29 100644 --- a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js +++ b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js @@ -18,7 +18,7 @@ import PropTypes from 'prop-types'; const licenseKey = process.env.GATSBY_REDOCLY_KEY; // Redocly API Block that will render the OpenAPI yaml files with Redocly TryIt feature. -const RedoclyAPIBlock = ({ src, width = '500px', codeBlock = "tokens: { punctuation: { color: 'white' }}" }) => { +const RedoclyAPIBlock = ({ src, width = '500px', codeBlock = "tokens: { punctuation: { color: 'white' }}", disableSidebar = false, disableSearch = false }) => { const [isRedoclyLoading, setIsRedoclyLoading] = useState(true); let input = {}; @@ -48,14 +48,14 @@ const RedoclyAPIBlock = ({ src, width = '500px', codeBlock = "tokens: { punctuat <> {!isRedoclyLoading && ( <> -
+