Exluding v0.8.1 and v0.7 from the config dropdown
Older tags of the repo don't have the configuration.md file
that the docs/index.html file uses to display configuration options.
Removing them from the list since they don't apply to the use case of the
documentation page.
this.handleReqFailure(e);
return;
}
- const reMajorVersion = /v(\d+)/;
+
+ const excludedTagVersions = new Set(['v0.7', 'v0.8.1']);
+
const tagOptions = tags
.map(tag => tag.name)
- .filter(tag => tag.startsWith('v'));
+ .filter(tag => tag.startsWith('v') && !excludedTagVersions.has(tag));
this.versionOptions = this.versionOptions.concat(tagOptions);
},
updated() {
