From a2f21faa1cb11d6a45a0271d7eec8be0ba96ea19 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Tue, 30 Nov 2021 13:24:46 -0800 Subject: [PATCH] Skip embedded plugins docs from indexing Summary: We generate two types of pages for plugin docs currently: 1) Full page used on Flipper docs website 2) Page without nav/header/footer which is used to embed docs into Flipper The problem is that both of them now indexed and can both appear in search result. See e.g. search results for keyword "android" which contains a lot of such embedded pages just because they have their first sections with name "Android" and because of that indexed to the top although shouldn't appear in search results at all. {F683602640} This diff disables indexing for embedded pages as it should be only possible to open them in Flipper. Reviewed By: passy Differential Revision: D32727589 fbshipit-source-id: 2068b8d39f19004a449098652c4c0cc2c7272d40 --- website/src/theme/EmbeddedLayout/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/src/theme/EmbeddedLayout/index.js b/website/src/theme/EmbeddedLayout/index.js index f9728ba94..56a7f672c 100644 --- a/website/src/theme/EmbeddedLayout/index.js +++ b/website/src/theme/EmbeddedLayout/index.js @@ -8,6 +8,7 @@ import React from 'react'; import clsx from 'clsx'; import LayoutProviders from '@theme/LayoutProviders'; +import Head from '@docusaurus/Head'; import useKeyboardNavigation from '@theme/hooks/useKeyboardNavigation'; import {ThemeClassNames} from '@docusaurus/theme-common'; import './styles.css'; @@ -17,6 +18,9 @@ function EmbeddedLayout(props) { useKeyboardNavigation(); return ( + + +