Skip to content

Commit 9b78491

Browse files
jdollarcalebcartwright
authored andcommitted
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 c240f10 commit 9b78491

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: docs/index.html

+4-2
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)