Skip to content

Commit 7e3dfcd

Browse files
committed
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.
1 parent 3b424b9 commit 7e3dfcd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hugo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ params:
3838
hugo_version: 0.148.2
3939
pagefind_version: 1.4.0
4040
latest_version: 2.52.0
41-
latest_relnote_url: https://github.com/git/git/raw/HEAD/Documentation/RelNotes/2.52.0.adoc
41+
latest_relnote_url: https://gitlab.com/git-scm/git/-/blob/HEAD/Documentation/RelNotes/2.52.0.adoc
4242
latest_release_date: '2025-11-17'
4343
windows_installer:
4444
installer_x64:

layouts/shortcodes/install-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Install</h1>
55
<div class="version-badge">
66
Latest version: {{ site.Params.latest_version }}
7-
(<a href="https://github.com/git/git/blob/HEAD/Documentation/RelNotes/{{ site.Params.latest_version }}.adoc">Release Notes</a>)
7+
(<a href="{{ site.Params.latest_relnote_url }}">Release Notes</a>)
88
</div>
99
</div>
1010

script/update-git-version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
config = YAML.load_file("hugo.yml")
2121
config["params"] = {} if config["params"].nil?
2222
config["params"]["latest_version"] = version
23-
config["params"]["latest_relnote_url"] = "https://github.com/git/git/raw/HEAD/Documentation/RelNotes/#{version}.adoc"
23+
config["params"]["latest_relnote_url"] = "https://gitlab.com/git-scm/git/-/blob/HEAD/Documentation/RelNotes/#{version}.adoc"
2424
config["params"]["latest_release_date"] = date.strftime("%Y-%m-%d")
2525
yaml = YAML.dump(config).gsub(/ *$/, "")
2626
File.write("hugo.yml", yaml)

0 commit comments

Comments
 (0)