From 13ec1eaa3ebfe349ba1e6f2c590ff4cc828fb002 Mon Sep 17 00:00:00 2001 From: Ethan <43922849+ethanppl@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:44:15 +0800 Subject: [PATCH 1/2] docs(website): fix typo for onBrokenMarkdownImages (#11444) --- website/blog/releases/3.9/index.mdx | 2 +- website/docs/api/docusaurus.config.js.mdx | 2 +- .../versioned_docs/version-3.9.1/api/docusaurus.config.js.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/blog/releases/3.9/index.mdx b/website/blog/releases/3.9/index.mdx index f5ef52863537..35c413576275 100644 --- a/website/blog/releases/3.9/index.mdx +++ b/website/blog/releases/3.9/index.mdx @@ -145,7 +145,7 @@ erDiagram Other notable changes include: -- In [#11283](https://github.com/facebook/docusaurus/pull/11283), we added `siteConfig.markdown.hooks.{onBrokenMarkdownLinks,onBrokenMarkdownLinks}` and deprecated `siteConfig.onBrokenMarkdownLinks`. The new callback hooks also let you recover from broken links/images by returning a fallback URL. +- In [#11283](https://github.com/facebook/docusaurus/pull/11283), we added `siteConfig.markdown.hooks.{onBrokenMarkdownLinks,onBrokenMarkdownImages}` and deprecated `siteConfig.onBrokenMarkdownLinks`. The new callback hooks also let you recover from broken links/images by returning a fallback URL. - In [#11282](https://github.com/facebook/docusaurus/pull/11282), we added the `siteConfig.markdown.emoji` config option to disable the previously hard-coded `remark-emoji` behavior. - In [#11397](https://github.com/facebook/docusaurus/pull/11397), we can now resolve site-aliased Markdown links starting with `@site/*`, that we already supported for ES imports. - In [#11294](https://github.com/facebook/docusaurus/pull/11294) and [#11415](https://github.com/facebook/docusaurus/pull/11415), we upgraded to Rspack 1.5 and leveraging new Rspack config options to make Docusaurus build faster. diff --git a/website/docs/api/docusaurus.config.js.mdx b/website/docs/api/docusaurus.config.js.mdx index a1e5f1c09a20..dc366a39c2a5 100644 --- a/website/docs/api/docusaurus.config.js.mdx +++ b/website/docs/api/docusaurus.config.js.mdx @@ -634,7 +634,7 @@ export default { | `remarkRehypeOptions` | `object` | `undefined` | Makes it possible to pass custom [`remark-rehype` options](https://github.com/remarkjs/remark-rehype#options). | | `hooks` | `MarkdownHooks` | `object` | Make it possible to customize the MDX loader behavior with callbacks or built-in options. | | `hooks.onBrokenMarkdownLinks` | `ReportingSeverity \| OnBrokenMarkdownLinksFunction` | `'warn'` | Hook to customize the behavior when encountering a broken Markdown link URL. With the callback function, you can return a new link URL, or alter the link [mdast node](https://github.com/syntax-tree/mdast). | -| `hooks.onBrokenMarkdownLinks` | `ReportingSeverity \| OnBrokenMarkdownImagesFunction` | `'throw'` | Hook to customize the behavior when encountering a broken Markdown image URL. With the callback function, you can return a new image URL, or alter the image [mdast node](https://github.com/syntax-tree/mdast). | +| `hooks.onBrokenMarkdownImages` | `ReportingSeverity \| OnBrokenMarkdownImagesFunction` | `'throw'` | Hook to customize the behavior when encountering a broken Markdown image URL. With the callback function, you can return a new image URL, or alter the image [mdast node](https://github.com/syntax-tree/mdast). | ```mdx-code-block diff --git a/website/versioned_docs/version-3.9.1/api/docusaurus.config.js.mdx b/website/versioned_docs/version-3.9.1/api/docusaurus.config.js.mdx index a1e5f1c09a20..dc366a39c2a5 100644 --- a/website/versioned_docs/version-3.9.1/api/docusaurus.config.js.mdx +++ b/website/versioned_docs/version-3.9.1/api/docusaurus.config.js.mdx @@ -634,7 +634,7 @@ export default { | `remarkRehypeOptions` | `object` | `undefined` | Makes it possible to pass custom [`remark-rehype` options](https://github.com/remarkjs/remark-rehype#options). | | `hooks` | `MarkdownHooks` | `object` | Make it possible to customize the MDX loader behavior with callbacks or built-in options. | | `hooks.onBrokenMarkdownLinks` | `ReportingSeverity \| OnBrokenMarkdownLinksFunction` | `'warn'` | Hook to customize the behavior when encountering a broken Markdown link URL. With the callback function, you can return a new link URL, or alter the link [mdast node](https://github.com/syntax-tree/mdast). | -| `hooks.onBrokenMarkdownLinks` | `ReportingSeverity \| OnBrokenMarkdownImagesFunction` | `'throw'` | Hook to customize the behavior when encountering a broken Markdown image URL. With the callback function, you can return a new image URL, or alter the image [mdast node](https://github.com/syntax-tree/mdast). | +| `hooks.onBrokenMarkdownImages` | `ReportingSeverity \| OnBrokenMarkdownImagesFunction` | `'throw'` | Hook to customize the behavior when encountering a broken Markdown image URL. With the callback function, you can return a new image URL, or alter the image [mdast node](https://github.com/syntax-tree/mdast). | ```mdx-code-block From 505ff8d228c10afdff018be60654ece57f72e23b Mon Sep 17 00:00:00 2001 From: Mariusz Krzaczkowski Date: Thu, 9 Oct 2025 17:45:42 +0200 Subject: [PATCH 2/2] fix(theme-translation): add missing Polish (pl) theme translations (#11431) --- .../locales/pl/theme-common.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/docusaurus-theme-translations/locales/pl/theme-common.json b/packages/docusaurus-theme-translations/locales/pl/theme-common.json index 5a74b63573f2..bd1789d61864 100644 --- a/packages/docusaurus-theme-translations/locales/pl/theme-common.json +++ b/packages/docusaurus-theme-translations/locales/pl/theme-common.json @@ -5,12 +5,12 @@ "theme.CodeBlock.copy": "Kopiuj", "theme.CodeBlock.copyButtonAriaLabel": "Kopiuj do schowka", "theme.CodeBlock.wordWrapToggle": "Przełącz zawijanie słów", - "theme.DocSidebarItem.collapseCategoryAriaLabel": "Collapse sidebar category '{label}'", - "theme.DocSidebarItem.expandCategoryAriaLabel": "Expand sidebar category '{label}'", + "theme.DocSidebarItem.collapseCategoryAriaLabel": "Zwiń kategorię paska bocznego '{label}'", + "theme.DocSidebarItem.expandCategoryAriaLabel": "Rozwiń kategorię paska bocznego '{label}'", "theme.ErrorPageContent.title": "Ta strona uległa awarii.", "theme.ErrorPageContent.tryAgain": "Spróbuj ponownie", - "theme.IconExternalLink.ariaLabel": "(opens in new tab)", - "theme.NavBar.navAriaLabel": "Main", + "theme.IconExternalLink.ariaLabel": "(otwiera się w nowej karcie)", + "theme.NavBar.navAriaLabel": "Główny", "theme.NotFound.p1": "Nie mogliśmy znaleźć strony której szukasz.", "theme.NotFound.p2": "Proszę skontaktuj się z właścielem strony, z której link doprowadził Cię tutaj i poinformuj go, że link jest nieprawidłowy.", "theme.NotFound.title": "Strona nie została znaleziona", @@ -20,7 +20,7 @@ "theme.admonition.info": "informacja", "theme.admonition.note": "notatka", "theme.admonition.tip": "wskazówka", - "theme.admonition.warning": "warning", + "theme.admonition.warning": "ostrzeżenie", "theme.blog.archive.description": "Archiwum", "theme.blog.archive.title": "Archiwum", "theme.blog.author.noPosts": "Ten autor nie napisał jeszcze żadnych postów.", @@ -46,8 +46,8 @@ "theme.common.editThisPage": "Edytuj tę stronę", "theme.common.headingLinkTitle": "Bezpośredni link do {heading}", "theme.common.skipToMainContent": "Przejdź do głównej zawartości", - "theme.contentVisibility.draftBanner.message": "This page is a draft. It will only be visible in dev and be excluded from the production build.", - "theme.contentVisibility.draftBanner.title": "Draft page", + "theme.contentVisibility.draftBanner.message": "Ta strona jest w wersji roboczej. Będzie widoczna tylko w wersji deweloperskiej i zostanie wyłączona z wersji produkcyjnej.", + "theme.contentVisibility.draftBanner.title": "Wersja robocza strony", "theme.contentVisibility.unlistedBanner.message": "Ta strona jest niepubliczna. Wyszukiwarki nie będą jej indeksować, a dostęp do niej będą mieli tylko użytkownicy posiadający bezpośredni link.", "theme.contentVisibility.unlistedBanner.title": "Niepubliczna strona", "theme.docs.DocCard.categoryDescription.plurals": "1 element|{count} elementy|{count} elementów",