From fa10d1b1a4e18f2fcc088e736b303b8c2d5c4d93 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Thu, 12 May 2022 04:30:59 +0200 Subject: [PATCH] fix(website): use react-lite-youtube-embed for lazy YouTube video (#7390) * fix(website): use react-lite-youtube-embed for lazy YouTube video * fix(website): use react-lite-youtube-embed for lazy YouTube video * fix(website): use react-lite-youtube-embed for lazy YouTube video * Update multiple-sidebars.md * Update installation.md * refactor intro * rename file back Co-authored-by: Joshua Chen --- project-words.txt | 4 ++++ website/docs/introduction.md | 16 ++++++++++------ website/package.json | 1 + website/src/css/custom.css | 28 +++++++++++----------------- website/src/pages/index.tsx | 14 +++++++------- yarn.lock | 5 +++++ 6 files changed, 38 insertions(+), 30 deletions(-) diff --git a/project-words.txt b/project-words.txt index 341e85f935db..2e029e7f7c3f 100644 --- a/project-words.txt +++ b/project-words.txt @@ -16,6 +16,7 @@ atrule autoconverted autogen autogenerating +autohide backport backticks bartosz @@ -152,6 +153,7 @@ marcey marocchino massoud mathjax +maxresdefault mdast mdxa mdxast @@ -208,6 +210,7 @@ philpl photoshop picocolors picomatch +playbtn pluggable plushie pnpm @@ -267,6 +270,7 @@ sensical serializers setaf setext +showinfo sida simen slorber diff --git a/website/docs/introduction.md b/website/docs/introduction.md index de877f623891..cec5f22c2e08 100644 --- a/website/docs/introduction.md +++ b/website/docs/introduction.md @@ -50,16 +50,20 @@ Or read the **[5-minute tutorial](https://tutorial.docusaurus.io)** online. In this presentation at [Algolia Community Event](https://www.algolia.com/), [Meta Open Source team](https://opensource.facebook.com/) shared a brief walk-through of Docusaurus. They covered how to get started with the project, enable plugins, and set up functionalities like documentation and blogging. +```mdx-code-block +import LiteYouTubeEmbed from 'react-lite-youtube-embed'; +
-