Skip to content

Commit

Permalink
Revert "Remove versions.html completely"
Browse files Browse the repository at this point in the history
This reverts commit e635fc4.
  • Loading branch information
raulcd committed Nov 28, 2023
1 parent 46f48ef commit b3c4b3f
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dev/release/01-prepare-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ def test_version_pre_tag
]
],
},
{
path: "r/pkgdown/assets/versions.html",
hunks: [
[
"-<body><p><a href=\"../dev/r/\">#{@previous_version}.9000 (dev)</a></p>",
"-<p><a href=\"../r/\">#{@previous_version} (release)</a></p>",
"+<body><p><a href=\"../dev/r/\">#{@release_version}.9000 (dev)</a></p>",
"+<p><a href=\"../r/\">#{@release_version} (release)</a></p>",
"+<p><a href=\"../#{@previous_compatible_version}/r/\">#{@previous_version}</a></p>"
]
],
},
]
else
expected_changes += [
Expand All @@ -260,6 +272,17 @@ def test_version_pre_tag
]
],
},
{
path: "r/pkgdown/assets/versions.html",
hunks: [
[
"-<body><p><a href=\"../dev/r/\">#{@previous_version}.9000 (dev)</a></p>",
"-<p><a href=\"../r/\">#{@previous_version} (release)</a></p>",
"+<body><p><a href=\"../dev/r/\">#{@release_version}.9000 (dev)</a></p>",
"+<p><a href=\"../r/\">#{@release_version} (release)</a></p>"
]
],
},
]
end

Expand Down
23 changes: 23 additions & 0 deletions dev/release/post-11-bump-versions-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ def test_version_post_tag
],
],
},
{
path: "r/pkgdown/assets/versions.html",
hunks: [
[
"-<body><p><a href=\"../dev/r/\">#{@previous_version}.9000 (dev)</a></p>",
"-<p><a href=\"../r/\">#{@previous_version} (release)</a></p>",
"+<body><p><a href=\"../dev/r/\">#{@release_version}.9000 (dev)</a></p>",
"+<p><a href=\"../r/\">#{@release_version} (release)</a></p>",
"+<p><a href=\"../#{@previous_compatible_version}/r/\">#{@previous_version}</a></p>"
]
],
},
]
else
expected_changes += [
Expand All @@ -226,6 +238,17 @@ def test_version_post_tag
],
],
},
{
path: "r/pkgdown/assets/versions.html",
hunks: [
[
"-<body><p><a href=\"../dev/r/\">#{@previous_version}.9000 (dev)</a></p>",
"-<p><a href=\"../r/\">#{@previous_version} (release)</a></p>",
"+<body><p><a href=\"../dev/r/\">#{@release_version}.9000 (dev)</a></p>",
"+<p><a href=\"../r/\">#{@release_version} (release)</a></p>"
]
],
},
]
end

Expand Down
1 change: 1 addition & 0 deletions dev/release/utils-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,6 @@ update_versions() {
"${next_version}"
git add docs/source/_static/versions.json
git add r/pkgdown/assets/versions.json
git add r/pkgdown/assets/versions.html
popd
}
20 changes: 20 additions & 0 deletions r/pkgdown/assets/versions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body><p><a href="../dev/r/">14.0.0.9000 (dev)</a></p>
<p><a href="../r/">14.0.0 (release)</a></p>
<p><a href="../13.0/r/">13.0.0.1</a></p>
<p><a href="../12.0/r/">12.0.1.1</a></p>
<p><a href="../12.0/r/">12.0.0</a></p>
<p><a href="../11.0/r/">11.0.0</a></p>
<p><a href="../10.0/r/">10.0.1</a></p>
<p><a href="../9.0/r/">9.0.0</a></p>
<p><a href="../8.0/r/">8.0.0</a></p>
<p><a href="../7.0/r/">7.0.0</a></p>
<p><a href="../6.0/r/">6.0.1</a></p>
<p><a href="../5.0/r/">5.0.0</a></p>
<p><a href="../4.0/r/">4.0.1</a></p>
<p><a href="../3.0/r/">3.0.0</a></p>
<p><a href="../2.0/r/">2.0.0</a></p>
<p><a href="../1.0/r/">1.0.1</a></p>
</body>
</html>

0 comments on commit b3c4b3f

Please sign in to comment.