Skip to content

Commit b3d6fa5

Browse files
committed
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.
1 parent 22c4437 commit b3d6fa5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,12 @@
181181
this.handleReqFailure(e);
182182
return;
183183
}
184-
const reMajorVersion = /v(\d+)/;
184+
185+
const excludedTagVersions = new Set(['v0.7', 'v0.8.1']);
186+
185187
const tagOptions = tags
186188
.map(tag => tag.name)
187-
.filter(tag => tag.startsWith('v'));
189+
.filter(tag => tag.startsWith('v') && !excludedTagVersions.has(tag));
188190
this.versionOptions = this.versionOptions.concat(tagOptions);
189191
},
190192
updated() {

0 commit comments

Comments
 (0)