Skip to content

Commit

Permalink
chore(release): publish@4.11.8 (#1568)
Browse files Browse the repository at this point in the history
* hideTryItPanel optional param

* chore(release): publish@4.11.8
  • Loading branch information
melissag-ensemble authored Mar 20, 2024
1 parent 8cdcc61 commit 5fb12aa
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Using a theme, all of your default configuration lives in an npm package.
- [codeblock (optional)](#codeblock-optional)
- [disableSidebar (optional)](#disablesidebar-optional)
- [disableSearch (optional)](#disablesearch-optional)
- [hideTryItPanel (optional)](#hidetryitpanel-optional)
- [JSDoc](#jsdoc)
- [MDX](#mdx)
- [Modular Content System](#modular-content-system)
Expand Down Expand Up @@ -1163,6 +1164,18 @@ Defaults to ```false```
https://redocly.com/docs/api-reference-docs/configuration/functionality/#theme-object-openapi-schema
#### hideTryItPanel (optional)
```js
<RedoclyAPIBlock src="URL pointing to your open api yaml file." hideTryItPanel />
```
Disables the Try it console in the right panel.
Defaults to ```false```
https://redocly.com/docs/api-reference-docs/configuration/functionality/#theme-object-openapi-schema
### JSDoc
We currently recommend to use the [JSDoc to markdown](https://github.com/jsdoc2md/jsdoc-to-markdown) converter.
Expand Down
6 changes: 6 additions & 0 deletions packages/gatsby-theme-aio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.11.8](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.7...@adobe/gatsby-theme-aio@4.11.8) (2024-03-20)

### Features

* Add option to disable Try It widget [eef5338](https://github.com/adobe/aio-theme/commit/eef53381ba865693b311a43974f119e5b7a7419d)

## [4.11.7](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.4...@adobe/gatsby-theme-aio@4.11.7) (2024-03-13)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/gatsby-theme-aio",
"version": "4.11.7",
"version": "4.11.8",
"description": "The Adobe I/O theme for building markdown powered sites",
"main": "index.js",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const RedoclyAPIBlock = ({
typography = 'fontFamily: `adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif`',
codeBlock = "tokens: { punctuation: { color: 'white' }}",
disableSidebar = false,
disableSearch = false
disableSearch = false,
hideTryItPanel = false,
}) => {
const [isRedoclyLoading, setIsRedoclyLoading] = useState(true);

Expand Down Expand Up @@ -62,6 +63,7 @@ const RedoclyAPIBlock = ({
{licenseKey: '${licenseKey}',
disableSidebar: ${disableSidebar},
disableSearch: ${disableSearch},
hideTryItPanel: ${hideTryItPanel},
hideLoading: true,
theme: {
${typography ? "typography: { " + typography + "}," : ''}
Expand All @@ -87,6 +89,7 @@ RedoclyAPIBlock.propTypes = {
codeBlock: PropTypes.string,
disableSidebar: PropTypes.bool,
disableSearch: PropTypes.bool,
hideTryItPanel: PropTypes.bool,
};

export { RedoclyAPIBlock };

0 comments on commit 5fb12aa

Please sign in to comment.