diff --git a/.github/check_deploy_branch.sh b/.github/check_deploy_branch.sh index 5a9ef6c20..826ce977a 100755 --- a/.github/check_deploy_branch.sh +++ b/.github/check_deploy_branch.sh @@ -2,7 +2,7 @@ git diff HEAD^ HEAD --quiet . -if [[ "$VERCEL_GIT_COMMIT_REF" == "main" && $? -eq 1 ]]; then +if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || $? -eq 1 ]]; then # Proceed with the build echo "✅ - Proceed" exit 1; diff --git a/packages/website/src/components/DocContainer.tsx b/packages/website/src/components/DocContainer.tsx index 755f4801c..fc483bb2f 100644 --- a/packages/website/src/components/DocContainer.tsx +++ b/packages/website/src/components/DocContainer.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from 'react'; -import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; +import { PrismAsyncLight as SyntaxHighlighter } from 'react-syntax-highlighter'; import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import { HyperlinkedText } from './HyperlinkedText'; import { Section } from './Section'; diff --git a/packages/website/src/components/HyperlinkedText.tsx b/packages/website/src/components/HyperlinkedText.tsx index dfe23f639..7c9050499 100644 --- a/packages/website/src/components/HyperlinkedText.tsx +++ b/packages/website/src/components/HyperlinkedText.tsx @@ -1,3 +1,4 @@ +import Link from 'next/link'; import type { TokenDocumentation } from '~/util/parse.server'; export interface HyperlinkedTextProps { @@ -17,9 +18,9 @@ export function HyperlinkedText({ tokens }: HyperlinkedTextProps) { {tokens.map((token) => { if (token.path) { return ( - + {token.text} - + ); } diff --git a/packages/website/src/components/ItemSidebar.tsx b/packages/website/src/components/ItemSidebar.tsx index 04dcc6749..8c0f30d11 100644 --- a/packages/website/src/components/ItemSidebar.tsx +++ b/packages/website/src/components/ItemSidebar.tsx @@ -1,3 +1,4 @@ +import Link from 'next/link'; import { FiMenu } from 'react-icons/fi'; import { VscPackage } from 'react-icons/vsc'; import { generateIcon } from '~/util/icon'; @@ -18,7 +19,7 @@ function onMenuClick() { export function ItemSidebar({ packageName, data }: ItemListProps) { return (