Skip to content

Commit

Permalink
Louisa/redocly testing (#1560)
Browse files Browse the repository at this point in the history
* update

* update redocly component

* update

* update

* update the size of sample block

* adjust size

* update package

* update

* update

* update

* update

* update
  • Loading branch information
louisachu committed Jan 25, 2024
1 parent 8b3cd19 commit fd36030
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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.1",
"version": "4.11.2",
"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 @@ -31,12 +31,17 @@ const RedoclyAPIBlock = ({ src }) => {
useEffect(() => {
let script = document.createElement('script')
script.setAttribute('src', 'https://cdn.redoc.ly/reference-docs/latest/redocly-reference-docs.min.js');
script.async = true;
document.head.appendChild(script);
let console = document.createElement('script');
console.src = 'https://cdn.redoc.ly/reference-docs/latest/console.redocly-reference-docs.min.js';
console.async = true;
document.head.appendChild(console);


script.addEventListener('load', () => {
setIsRedoclyLoading(false);
})

}, [isRedoclyLoading]);

return (
Expand Down

0 comments on commit fd36030

Please sign in to comment.