From 6e764be7288185a31cc8ff89fe0d56d2faef7fa0 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Thu, 17 Oct 2024 19:31:46 +0900 Subject: [PATCH] Components: Prevent generated readmes duplicating h1 elements when published (#66180) Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo Co-authored-by: tyxla --- bin/api-docs/gen-components-docs/markdown/index.mjs | 2 +- packages/components/src/alignment-matrix-control/README.md | 3 +-- packages/components/src/angle-picker-control/README.md | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/api-docs/gen-components-docs/markdown/index.mjs b/bin/api-docs/gen-components-docs/markdown/index.mjs index 85655b89f0841..126fdf0057b6e 100644 --- a/bin/api-docs/gen-components-docs/markdown/index.mjs +++ b/bin/api-docs/gen-components-docs/markdown/index.mjs @@ -10,8 +10,8 @@ import { generateMarkdownPropsJson } from './props.mjs'; export function generateMarkdownDocs( { typeDocs, subcomponentTypeDocs } ) { const mainDocsJson = [ - '\n', { h1: typeDocs.displayName }, + '', { p: `

See the WordPress Storybook for more detailed, interactive documentation.

`, }, diff --git a/packages/components/src/alignment-matrix-control/README.md b/packages/components/src/alignment-matrix-control/README.md index 8e6ef324ce8e6..af97e3ae0607c 100644 --- a/packages/components/src/alignment-matrix-control/README.md +++ b/packages/components/src/alignment-matrix-control/README.md @@ -1,7 +1,6 @@ - - # AlignmentMatrixControl +

See the WordPress Storybook for more detailed, interactive documentation.

diff --git a/packages/components/src/angle-picker-control/README.md b/packages/components/src/angle-picker-control/README.md index f5f2627409e13..d9389c6564338 100644 --- a/packages/components/src/angle-picker-control/README.md +++ b/packages/components/src/angle-picker-control/README.md @@ -1,7 +1,6 @@ - - # AnglePickerControl +

See the WordPress Storybook for more detailed, interactive documentation.