Skip to content

Commit b726958

Browse files
petebacondarwinellimist
authored andcommitted
chore(doc-gen): improve version dropdown info
1 parent 2ba498e commit b726958

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/app/src/versions.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ angular.module('versions', [])
88

99
for (var i = 0, minor = NaN; i < NG_VERSIONS.length; i++) {
1010
var version = NG_VERSIONS[i];
11+
if (version.isSnapshot) {
12+
version.isLatest = true;
13+
continue;
14+
}
1115
// NaN will give false here
1216
if (minor <= version.minor) {
1317
continue;

docs/config/templates/indexPage.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h4 class="search-results-group-heading">{{ key }}</h4>
166166
<div class="container main-grid main-header-grid">
167167
<div class="grid-left">
168168
<div ng-controller="DocsVersionsCtrl" class="picker version-picker">
169-
<select ng-options="v as ('v' + v.version + (v.isSnapshot ? ' (snapshot)' : '')) group by getGroupName(v) for v in docs_versions"
169+
<select ng-options="v as (v.isSnapshot ? v.branch : ('v' + v.version)) group by getGroupName(v) for v in docs_versions"
170170
ng-model="docs_version"
171171
ng-change="jumpToDocsVersion(docs_version)"
172172
class="docs-version-jump">

0 commit comments

Comments
 (0)