fix(theme): add __ prefix to technical anchors, search crawlers (Algolia) should ignore them (#8909)

This commit is contained in:
Sébastien Lorber 2023-04-20 16:39:50 +02:00 committed by GitHub
parent f154b2f870
commit d220f481a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 22 additions and 16 deletions

View file

@ -5,7 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
export const blogPostContainerID = 'post-content';
// __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors
// https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368
export const blogPostContainerID = '__blog-post-container';
export {
default as applyTrailingSlash,
type ApplyTrailingSlashParams,