Skip to content

feat(meta): handle comma-separated version

Latest
Compare
Choose a tag to compare
@s-pace s-pace released this 03 Sep 11:10
· 36 commits to master since this release

This release enables to use coma-separated token for docsearch:version meta tag.

The behaviour of the docsearch:version meta tag will be similar to the meta tag keyword defined from the HTML 5 spec.

The docsearch:version tag can be a set of comma-separated tokens, each of which is a version relevant to the page. These tokens must be compliant with the SemVer specification or only contain alphanumeric characters (e.g.latest, next, etc.). As facet filters, these version tokens are case-insensitive.

For example, all records extracted from a page with the following meta tag:

<meta name="docsearch:version" content="2.0.0-alpha.62,latest">

Will be tagged with the version:

version:["2.0.0-alpha.62" , "latest"]