From 2eb86bcd484ab0d98e918ab07c1ebe45fe4c97a9 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Wed, 14 Feb 2024 17:12:36 +0100 Subject: [PATCH] fix path to local client JS --- docs/src/components/Bookmark/index.tsx | 5 ++++- docs/src/components/Interpreter/index.tsx | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/src/components/Bookmark/index.tsx b/docs/src/components/Bookmark/index.tsx index 0f22569b..aa0f4838 100644 --- a/docs/src/components/Bookmark/index.tsx +++ b/docs/src/components/Bookmark/index.tsx @@ -1,17 +1,20 @@ import Heading from '@theme/Heading'; import Head from '@docusaurus/Head'; import styles from './styles.module.css'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; const BookmarkSVG = require('@site/static/img/bookmarklet.svg').default; export default function Bookmark(): JSX.Element { + const { siteConfig } = useDocusaurusContext(); + return (
Bookmarklet -