HomePhabricator

[WEBSITE] Fix fetching the latest release notes

Description

[WEBSITE] Fix fetching the latest release notes

Summary:
The fetch_documentation.sh script will make sure to link the latest
release notes file if it was not archived yet. But there is a bug in the
linked version number, as it links with the oldest version number
instead of the most recent one. This causes the website deployment to
fail finding the latest release notes, and prevent from displaying the
last one until the release notes gets archived.
This diff fixes the issue by using the correct index for getting the
latest version number from the list of available versions.

Test Plan:

./scripts/fetch_documentation.sh
bundle exec jekyll serve

Check the latest version is 0.22.14.

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9267

Details

Provenance
FabienAuthored on Feb 23 2021, 20:54
FabienPushed on Feb 24 2021, 07:31
Reviewer
Restricted Project
Differential Revision
D9267: [WEBSITE] Fix fetching the latest release notes
Parents
rABCWEBa2d61ffcba1d: [website] Add MXC.com to list of exchanges on BCHA page
Branches
Unknown
Tags
Unknown