diff --git a/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx b/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx index 9e3737b2c19..f9987873d86 100644 --- a/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx +++ b/packages/docusaurus-theme/src/components/codesandbox_icon/codesandbox_icon.tsx @@ -1,7 +1,16 @@ -export const CodeSandboxIcon = () => ( - - +import { HTMLAttributes } from 'react'; + +type Props = HTMLAttributes; + +export const CodeSandboxIcon = (props: Props) => ( + + ); diff --git a/packages/website/README.md b/packages/website/README.md index a474577b61b..67b75f33ffd 100644 --- a/packages/website/README.md +++ b/packages/website/README.md @@ -72,7 +72,7 @@ to have version-specific search experience without the need to run a search server. Because the search index is generated in build time, it means that -searching is not possible when running the development sever. +searching is not possible when running the development server. Please refer to the [Building the website](#building-the-website) section to learn how to build the documentation site locally and serve it to use local search.