Skip to content

Commit b3faa0c

Browse files
authored
docs: remove moot v from docs-versions.yml (#38301)
1 parent 842fd50 commit b3faa0c

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

site/content/docs/versions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ description: An appendix of hosted documentation for nearly every release of Boo
99
<div class="col-md-6 col-lg-4 col-xl mb-4">
1010
<h2>{{ $release.group }}</h2>
1111
<p>{{ $release.description }}</p>
12-
{{- $versions := sort $release.versions "v" "desc" -}}
12+
{{- $versions := sort $release.versions "" "desc" -}}
1313
{{- range $i, $version := $versions }}
1414
{{- $len := len $versions -}}
1515
{{ if (eq $i 0) }}<div class="list-group">{{ end }}
16-
<a class="list-group-item list-group-item-action py-2 text-primary{{ if (eq $version.v $.Site.Params.docs_version) }} d-flex justify-content-between align-items-center{{ end }}" href="{{ $release.baseurl }}/{{ $version.v }}/">
17-
{{ $version.v }}
18-
{{ if (eq $version.v $.Site.Params.docs_version) -}}
16+
<a class="list-group-item list-group-item-action py-2 text-primary{{ if (eq $version $.Site.Params.docs_version) }} d-flex justify-content-between align-items-center{{ end }}" href="{{ $release.baseurl }}/{{ $version }}/">
17+
{{ $version }}
18+
{{ if (eq $version $.Site.Params.docs_version) -}}
1919
<span class="badge bg-primary">Latest</span>
2020
{{- end }}
2121
</a>

site/data/docs-versions.yml

+32-32
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,55 @@
22
baseurl: "https://getbootstrap.com"
33
description: "Every minor and patch release from v1 is listed below."
44
versions:
5-
- v: "1.0.0"
6-
- v: "1.1.0"
7-
- v: "1.1.1"
8-
- v: "1.2.0"
9-
- v: "1.3.0"
10-
- v: "1.4.0"
5+
- "1.0.0"
6+
- "1.1.0"
7+
- "1.1.1"
8+
- "1.2.0"
9+
- "1.3.0"
10+
- "1.4.0"
1111

1212
- group: v2.x
1313
baseurl: "https://getbootstrap.com"
1414
description: "Every minor and patch release from v2 is listed below."
1515
versions:
16-
- v: "2.0.0"
17-
- v: "2.0.1"
18-
- v: "2.0.2"
19-
- v: "2.0.3"
20-
- v: "2.0.4"
21-
- v: "2.1.0"
22-
- v: "2.1.1"
23-
- v: "2.2.0"
24-
- v: "2.2.1"
25-
- v: "2.2.2"
26-
- v: "2.3.0"
27-
- v: "2.3.1"
28-
- v: "2.3.2"
16+
- "2.0.0"
17+
- "2.0.1"
18+
- "2.0.2"
19+
- "2.0.3"
20+
- "2.0.4"
21+
- "2.1.0"
22+
- "2.1.1"
23+
- "2.2.0"
24+
- "2.2.1"
25+
- "2.2.2"
26+
- "2.3.0"
27+
- "2.3.1"
28+
- "2.3.2"
2929

3030
- group: v3.x
3131
baseurl: "https://getbootstrap.com/docs"
3232
description: "Every minor and patch release from v3 is listed below. Last update was v3.4.1."
3333
versions:
34-
- v: "3.3"
35-
- v: "3.4"
34+
- "3.3"
35+
- "3.4"
3636

3737
- group: v4.x
3838
baseurl: "https://getbootstrap.com/docs"
3939
description: "Our previous major release with its minor releases. Last update was v4.6.0."
4040
versions:
41-
- v: "4.0"
42-
- v: "4.1"
43-
- v: "4.2"
44-
- v: "4.3"
45-
- v: "4.4"
46-
- v: "4.5"
47-
- v: "4.6"
41+
- "4.0"
42+
- "4.1"
43+
- "4.2"
44+
- "4.3"
45+
- "4.4"
46+
- "4.5"
47+
- "4.6"
4848

4949
- group: v5.x
5050
baseurl: "https://getbootstrap.com/docs"
5151
description: "Current major release. Last update was v5.3.0-alpha1."
5252
versions:
53-
- v: "5.0"
54-
- v: "5.1"
55-
- v: "5.2"
56-
- v: "5.3"
53+
- "5.0"
54+
- "5.1"
55+
- "5.2"
56+
- "5.3"

0 commit comments

Comments
 (0)