From cb736a807967cc943be4ce558040d7efa1889d3d Mon Sep 17 00:00:00 2001 From: koide Date: Sat, 28 Feb 2026 01:31:09 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=83=90=E3=83=8A=E3=83=BC=E3=83=92?= =?UTF-8?q?=E3=83=BC=E3=83=AD=E3=83=BC=E7=94=BB=E5=83=8F=E3=81=AE=E3=83=91?= =?UTF-8?q?=E3=82=B9=E8=A7=A3=E6=B1=BA=20(metadata.image=E4=BD=BF=E7=94=A8?= =?UTF-8?q?)=20+=20game-vision-companion=E7=94=BB=E5=83=8F=E5=8F=82?= =?UTF-8?q?=E7=85=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs-tech/game-vision-companion/index.md | 2 +- src/theme/DocItem/Layout/index.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs-tech/game-vision-companion/index.md b/docs-tech/game-vision-companion/index.md index b2a5e44..107b64b 100644 --- a/docs-tech/game-vision-companion/index.md +++ b/docs-tech/game-vision-companion/index.md @@ -24,7 +24,7 @@ displayed_sidebar: null **Game Vision Companion** — Windows PCの画面をリアルタイムにキャプチャして、ローカルのVision LLMで分析・翻訳するアプリ。 -![Game Vision Companionのスクリーンショット](./screenshot.png) +![Game Vision Companionのスクリーンショット](pathname://./screenshot.png) ### メイン機能:リアルタイム翻訳 diff --git a/src/theme/DocItem/Layout/index.tsx b/src/theme/DocItem/Layout/index.tsx index 0970bab..ac65f6a 100644 --- a/src/theme/DocItem/Layout/index.tsx +++ b/src/theme/DocItem/Layout/index.tsx @@ -3,12 +3,14 @@ import Layout from '@theme-original/DocItem/Layout'; import type LayoutType from '@theme/DocItem/Layout'; import type {WrapperProps} from '@docusaurus/types'; import {useDoc} from '@docusaurus/plugin-content-docs/client'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; type Props = WrapperProps; export default function LayoutWrapper(props: Props): ReactNode { - const {frontMatter} = useDoc(); - const image = (frontMatter as any).image as string | undefined; + const {metadata, frontMatter} = useDoc(); + // Use the resolved og:image URL from metadata (already processed by Docusaurus) + const image = metadata.image; return ( <>