diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogPostPage/index.tsx index 39f6652bc739..3fc557a82515 100644 --- a/packages/docusaurus-theme-classic/src/theme/BlogPostPage/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/BlogPostPage/index.tsx @@ -31,7 +31,7 @@ function BlogPostPage(props: Props): JSX.Element {
-
+
)} - + {!hideTableOfContents && BlogPostContents.rightToc && (
diff --git a/packages/docusaurus-theme-classic/src/theme/NotFound.tsx b/packages/docusaurus-theme-classic/src/theme/NotFound.tsx index c06fd3e53d60..caa509ab849b 100644 --- a/packages/docusaurus-theme-classic/src/theme/NotFound.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NotFound.tsx @@ -11,7 +11,7 @@ import Layout from '@theme/Layout'; function NotFound(): JSX.Element { return ( -
+

Page Not Found

@@ -22,7 +22,7 @@ function NotFound(): JSX.Element {

-
+
); } diff --git a/packages/docusaurus/src/client/baseUrlSuggestionWarning/BaseUrlSuggestionWarning.tsx b/packages/docusaurus/src/client/baseUrlSuggestionWarning/BaseUrlSuggestionWarning.tsx index dbc7e0c0ef78..7f2406d2b1cf 100644 --- a/packages/docusaurus/src/client/baseUrlSuggestionWarning/BaseUrlSuggestionWarning.tsx +++ b/packages/docusaurus/src/client/baseUrlSuggestionWarning/BaseUrlSuggestionWarning.tsx @@ -55,36 +55,34 @@ document.addEventListener('DOMContentLoaded', function () { padding: 20, fontSize: 20, }}> - -

- Your Docusaurus site did not load properly. -

-

- A very common reason is a wrong site{' '} - - baseUrl configuration - - . -

-

- Current configured baseUrl ={' '} - {baseUrl}{' '} - {baseUrl === '/' ? ' (default value)' : ''} -

-

- We suggest trying baseUrl ={' '} - {' '} -

-
+

+ Your Docusaurus site did not load properly. +

+

+ A very common reason is a wrong site{' '} + + baseUrl configuration + + . +

+

+ Current configured baseUrl ={' '} + {baseUrl}{' '} + {baseUrl === '/' ? ' (default value)' : ''} +

+

+ We suggest trying baseUrl ={' '} + {' '} +

); diff --git a/website/docs/markdown-features.mdx b/website/docs/markdown-features.mdx index 96fb3eeff959..162869b297a0 100644 --- a/website/docs/markdown-features.mdx +++ b/website/docs/markdown-features.mdx @@ -1000,11 +1000,14 @@ You can use images in Markdown, or by requiring them and using a JSX image tag: ```mdx # My Markdown page - +Example banner or -![](./assets/docusaurus-asset-example-banner.png) +![Example banner](./assets/docusaurus-asset-example-banner.png) ``` The ES imports syntax also works: @@ -1014,12 +1017,12 @@ The ES imports syntax also works: import myImageUrl from './assets/docusaurus-asset-example-banner.png'; - +My image alternative text ``` This results in displaying the image: -![](./assets/docusaurus-asset-example-banner.png) +![My image alternative text](./assets/docusaurus-asset-example-banner.png) :::note diff --git a/website/src/components/TeamProfileCard/index.js b/website/src/components/TeamProfileCard/index.js index d9f80a8468ed..172d2a81b1a9 100644 --- a/website/src/components/TeamProfileCard/index.js +++ b/website/src/components/TeamProfileCard/index.js @@ -22,6 +22,7 @@ export default function TeamProfileCard({ {`${name}'s

{name}

diff --git a/website/src/theme/NotFound.tsx b/website/src/theme/NotFound.tsx index 03222be3e5d9..b39ac7b93e83 100644 --- a/website/src/theme/NotFound.tsx +++ b/website/src/theme/NotFound.tsx @@ -11,11 +11,11 @@ import Feedback from '../pages/feedback'; function NotFound({location}: {location: {pathname: string}}): JSX.Element { if (/^\/\bfeedback\b/.test(location.pathname)) { - return + return ; } else { return ( -
+

Page Not Found

@@ -26,7 +26,7 @@ function NotFound({location}: {location: {pathname: string}}): JSX.Element {

-
+
); }