From b3c4b3f9bc7160524552aa10cdb318f359e79277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Mon, 27 Nov 2023 11:32:54 +0100 Subject: [PATCH] Revert "Remove versions.html completely" This reverts commit e635fc4034a76dcc58b7d6bb5b106b36a613b3bd. --- dev/release/01-prepare-test.rb | 23 +++++++++++++++++++++++ dev/release/post-11-bump-versions-test.rb | 23 +++++++++++++++++++++++ dev/release/utils-prepare.sh | 1 + r/pkgdown/assets/versions.html | 20 ++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 r/pkgdown/assets/versions.html diff --git a/dev/release/01-prepare-test.rb b/dev/release/01-prepare-test.rb index 8fb23f45f0f3a..8f98098de48d9 100644 --- a/dev/release/01-prepare-test.rb +++ b/dev/release/01-prepare-test.rb @@ -246,6 +246,18 @@ def test_version_pre_tag ] ], }, + { + path: "r/pkgdown/assets/versions.html", + hunks: [ + [ + "-

#{@previous_version}.9000 (dev)

", + "-

#{@previous_version} (release)

", + "+

#{@release_version}.9000 (dev)

", + "+

#{@release_version} (release)

", + "+

#{@previous_version}

" + ] + ], + }, ] else expected_changes += [ @@ -260,6 +272,17 @@ def test_version_pre_tag ] ], }, + { + path: "r/pkgdown/assets/versions.html", + hunks: [ + [ + "-

#{@previous_version}.9000 (dev)

", + "-

#{@previous_version} (release)

", + "+

#{@release_version}.9000 (dev)

", + "+

#{@release_version} (release)

" + ] + ], + }, ] end diff --git a/dev/release/post-11-bump-versions-test.rb b/dev/release/post-11-bump-versions-test.rb index 4b6933d6102a9..ffe2eff1e441d 100644 --- a/dev/release/post-11-bump-versions-test.rb +++ b/dev/release/post-11-bump-versions-test.rb @@ -212,6 +212,18 @@ def test_version_post_tag ], ], }, + { + path: "r/pkgdown/assets/versions.html", + hunks: [ + [ + "-

#{@previous_version}.9000 (dev)

", + "-

#{@previous_version} (release)

", + "+

#{@release_version}.9000 (dev)

", + "+

#{@release_version} (release)

", + "+

#{@previous_version}

" + ] + ], + }, ] else expected_changes += [ @@ -226,6 +238,17 @@ def test_version_post_tag ], ], }, + { + path: "r/pkgdown/assets/versions.html", + hunks: [ + [ + "-

#{@previous_version}.9000 (dev)

", + "-

#{@previous_version} (release)

", + "+

#{@release_version}.9000 (dev)

", + "+

#{@release_version} (release)

" + ] + ], + }, ] end diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh index 8e4c8a84ae8fd..2b6e129326e4b 100644 --- a/dev/release/utils-prepare.sh +++ b/dev/release/utils-prepare.sh @@ -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 } diff --git a/r/pkgdown/assets/versions.html b/r/pkgdown/assets/versions.html new file mode 100644 index 0000000000000..0ea636544af53 --- /dev/null +++ b/r/pkgdown/assets/versions.html @@ -0,0 +1,20 @@ + + +

14.0.0.9000 (dev)

+

14.0.0 (release)

+

13.0.0.1

+

12.0.1.1

+

12.0.0

+

11.0.0

+

10.0.1

+

9.0.0

+

8.0.0

+

7.0.0

+

6.0.1

+

5.0.0

+

4.0.1

+

3.0.0

+

2.0.0

+

1.0.1

+ +