I am part of the team from algolia/Docsearch which features search for Docusaurus. We rely on meta tags to pick up the right version from the pages generated by Docusaurus. The v2 does not include these meta tags anymore. The Algolia search experience will be broken due to duplicates for every websites we crawl
yes
(Write your steps here:)
<meta name="docsearch:language" content="en" />
<meta name="docsearch:version" content="2.0.0" />
Docusaurus should include these meta tags
Same as https://github.com/facebook/docusaurus/commit/0eb6612b58a6ee93d5de715f87201eb9fabc82c2
My guess is that this issue is due to the latest release of Docusaurus.
Happy to provide more details if needed.
cc @endiliey @JoelMarcey
HI @yangshun - did we decide to remove these meta tags purposely or just not implemented yet?
I think it's more of the latter. We will need them back eventually.
@yangshun would it help if I put together a pull request? I'd really like to have these merged so I can add search on my site :smile:
@nebrelbug Sure but I don't exactly know what the correct fix should be (because I'm not familiar with Algolia). I initially thought this wasn't necessary because v2 doesn't have versioning yet, so there cannot be multiple versions of Algolia for a site.
cc @endiliey
Ah, right. @s-pace what needs to be done to fix this?
Also @yangshun, do you have a rough estimate of when versioning will be added?
We need a page of version x and language lang to include the following meta tags:
<meta name="docsearch:language" content="lang" />
<meta name="docsearch:version" content="x" />
This should be implemented at the same time as versioning then :)
Will leave this open for now to serve as reminder
@endiliey how does v2.docusaurus.io currently implement this?
there's no versioning yet so ofc there's no meta tag for that yet
its done like this however https://v2.docusaurus.io/docs/docusaurus-core#head-
Most helpful comment
Will leave this open for now to serve as reminder