From 05387b126cf6a1102f2a33cf1500c7ad9e275b45 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 1 Sep 2024 16:00:26 +0200 Subject: [PATCH 1/2] [docs-infra] Reduce description max-length --- docs/pages/blog/material-ui-v6-is-out.md | 2 +- packages/markdown/prepareMarkdown.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/blog/material-ui-v6-is-out.md b/docs/pages/blog/material-ui-v6-is-out.md index e2f1d304d3060a..ef423971a2fb19 100644 --- a/docs/pages/blog/material-ui-v6-is-out.md +++ b/docs/pages/blog/material-ui-v6-is-out.md @@ -1,6 +1,6 @@ --- title: MaterialĀ UI v6 is out now šŸŽ‰ -description: MaterialĀ UI v6 ships with support for CSS variables, container queries, and advanced color schemes, as well as improved runtime performance and a reduced bundle size. +description: MaterialĀ UI v6 is now stable. It comes with new features, improvements, and an experimental integration for static CSS extraction. date: 2024-08-26T00:00:00.000Z authors: [ diff --git a/packages/markdown/prepareMarkdown.js b/packages/markdown/prepareMarkdown.js index 79f8cf1f42a798..4a23f47cd2ac1a 100644 --- a/packages/markdown/prepareMarkdown.js +++ b/packages/markdown/prepareMarkdown.js @@ -91,7 +91,7 @@ function prepareMarkdown(config) { throw new Error(`docs-infra: Missing description in the page: ${location}\n`); } - if (description.length > 170) { + if (description.length > 165) { throw new Error( [ `docs-infra: The description "${description}" is too long (${description.length} characters).`, From 64741295f7c233bd1782086e0187e52b668cb78c Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 1 Sep 2024 16:15:39 +0200 Subject: [PATCH 2/2] try a bit more --- packages/markdown/prepareMarkdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markdown/prepareMarkdown.js b/packages/markdown/prepareMarkdown.js index 4a23f47cd2ac1a..a57976e92f6ff6 100644 --- a/packages/markdown/prepareMarkdown.js +++ b/packages/markdown/prepareMarkdown.js @@ -91,7 +91,7 @@ function prepareMarkdown(config) { throw new Error(`docs-infra: Missing description in the page: ${location}\n`); } - if (description.length > 165) { + if (description.length > 160) { throw new Error( [ `docs-infra: The description "${description}" is too long (${description.length} characters).`,