From 7e3dfcdca94136bd52ceaeaa4e93053741442349 Mon Sep 17 00:00:00 2001 From: Gaurav Cherwal Date: Fri, 5 Dec 2025 12:45:46 -0800 Subject: [PATCH] Use rendered docs URLs for release notes Replace raw.githubusercontent.com release notes links with rendered AsciiDoc links on the GitLab mirror. The links now reference HEAD to ensure they point to the rendered version of the release notes and show the latest contents of each document. --- hugo.yml | 2 +- layouts/shortcodes/install-header.html | 2 +- script/update-git-version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugo.yml b/hugo.yml index 54263e4344..572050fb92 100644 --- a/hugo.yml +++ b/hugo.yml @@ -38,7 +38,7 @@ params: hugo_version: 0.148.2 pagefind_version: 1.4.0 latest_version: 2.52.0 - latest_relnote_url: https://github.com/git/git/raw/HEAD/Documentation/RelNotes/2.52.0.adoc + latest_relnote_url: https://gitlab.com/git-scm/git/-/blob/HEAD/Documentation/RelNotes/2.52.0.adoc latest_release_date: '2025-11-17' windows_installer: installer_x64: diff --git a/layouts/shortcodes/install-header.html b/layouts/shortcodes/install-header.html index 1b9d3f62fb..99c294d169 100644 --- a/layouts/shortcodes/install-header.html +++ b/layouts/shortcodes/install-header.html @@ -4,7 +4,7 @@

Install

Latest version: {{ site.Params.latest_version }} - (Release Notes) + (Release Notes)
diff --git a/script/update-git-version.rb b/script/update-git-version.rb index 1721c54671..c70762818f 100644 --- a/script/update-git-version.rb +++ b/script/update-git-version.rb @@ -20,7 +20,7 @@ config = YAML.load_file("hugo.yml") config["params"] = {} if config["params"].nil? config["params"]["latest_version"] = version -config["params"]["latest_relnote_url"] = "https://github.com/git/git/raw/HEAD/Documentation/RelNotes/#{version}.adoc" +config["params"]["latest_relnote_url"] = "https://gitlab.com/git-scm/git/-/blob/HEAD/Documentation/RelNotes/#{version}.adoc" config["params"]["latest_release_date"] = date.strftime("%Y-%m-%d") yaml = YAML.dump(config).gsub(/ *$/, "") File.write("hugo.yml", yaml) \ No newline at end of file