diff --git a/README.md b/README.md index 74c235c7b8..8ce1f8d03f 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ Using a theme, all of your default configuration lives in an npm package. - [width (optional)](#width-optional) - [typography (optional)](#typography-optional) - [codeblock (optional)](#codeblock-optional) + - [ctrlFHijack (optional)](#ctrlfhijack-optional) - [disableSidebar (optional)](#disablesidebar-optional) - [disableSearch (optional)](#disablesearch-optional) - [hideTryItPanel (optional)](#hidetryitpanel-optional) @@ -1164,6 +1165,18 @@ Defaults to ```"tokens: { punctuation: { color: 'white' }}"``` https://redocly.com/docs/api-reference-docs/configuration/theming/#path=codeBlock +#### ctrlFHijack (optional) + +```js + +``` + +Brings focus to the search bar when Control-F is pressed. + +Defaults to ```true``` + +https://redocly.com/docs/api-reference-docs/configuration/functionality/#theme-object-openapi-schema + #### disableSidebar (optional) ```js diff --git a/packages/gatsby-theme-aio/CHANGELOG.md b/packages/gatsby-theme-aio/CHANGELOG.md index 8c77d516f6..b6042d1eea 100644 --- a/packages/gatsby-theme-aio/CHANGELOG.md +++ b/packages/gatsby-theme-aio/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.14.18](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.14.17..@adobe/gatsby-theme-aio@4.14.18) (2024-12-12) + +### Feature +* Add ctrlFHijack config to RedoclyAPIBlock [541e825](https://github.com/adobe/aio-theme/commit/541e825ece9af477d9172889dbd845ad35738774) + ## [4.14.17](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.14.16..@adobe/gatsby-theme-aio@4.14.17) (2024-11-14) ### Fix diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index a95a059e06..75ec6d0b19 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.14.17", + "version": "4.14.18", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", diff --git a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js index 8f64adf468..f5bf1dee5e 100644 --- a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js +++ b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js @@ -25,6 +25,7 @@ const RedoclyAPIBlock = ({ codeBlock = "tokens: { punctuation: { color: 'white' }}", disableSidebar = false, disableSearch = false, + ctrlFHijack = true, hideTryItPanel = false, scrollYOffset = 0, sortOperationsAlphabetically = false, @@ -70,6 +71,7 @@ const RedoclyAPIBlock = ({ {licenseKey: '${licenseKey}', disableSidebar: ${disableSidebar}, disableSearch: ${disableSearch}, + ctrlFHijack: ${ctrlFHijack}, hideTryItPanel: ${hideTryItPanel}, scrollYOffset: ${scrollYOffset}, sortOperationsAlphabetically: ${sortOperationsAlphabetically},