From 614b18929645309d45db0388afb6a31dc7c7a202 Mon Sep 17 00:00:00 2001 From: xjccc <546534045@qq.com> Date: Mon, 22 Apr 2024 16:12:35 +0800 Subject: [PATCH] docs: add source tag (#26884) --- docs/3.api/2.composables/use-id.md | 5 +++++ docs/3.api/2.composables/use-preview-mode.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/3.api/2.composables/use-id.md b/docs/3.api/2.composables/use-id.md index ecadfa8f94..6a29535f88 100644 --- a/docs/3.api/2.composables/use-id.md +++ b/docs/3.api/2.composables/use-id.md @@ -1,6 +1,11 @@ --- title: "useId" description: Generate an SSR-friendly unique identifier that can be passed to accessibility attributes. +links: + - label: Source + icon: i-simple-icons-github + to: https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/composables/id.ts + size: xs --- ::important diff --git a/docs/3.api/2.composables/use-preview-mode.md b/docs/3.api/2.composables/use-preview-mode.md index e87e525327..34450bc339 100644 --- a/docs/3.api/2.composables/use-preview-mode.md +++ b/docs/3.api/2.composables/use-preview-mode.md @@ -1,6 +1,11 @@ --- title: "usePreviewMode" description: "Use usePreviewMode to check and control preview mode in Nuxt" +links: + - label: Source + icon: i-simple-icons-github + to: https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/composables/preview.ts + size: xs --- # `usePreviewMode`