Merge pull request #7261 from adrianeboyd/docs/v2-model-details

Limit to v2 models on v2.spacy.io
This commit is contained in:
Ines Montani 2021-03-03 23:12:59 +11:00 committed by GitHub
commit 6ce9f0469f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ function isStableVersion(v) {
function getLatestVersion(modelId, compatibility) {
for (let [version, models] of Object.entries(compatibility)) {
if (isStableVersion(version) && models[modelId]) {
if (version.startsWith('2.') && isStableVersion(version) && models[modelId]) {
const modelVersions = models[modelId]
for (let modelVersion of modelVersions) {
if (isStableVersion(modelVersion)) {