Skip to content

Update Hugo and Pagefind to their respective latest versions #2026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content/blog/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
section: "blog"
layout: "default"
sidebar: "blog"
url: /blog.html
aliases:
- /blog/index.html
---

<div id="main" class="blog">
Expand Down
2 changes: 2 additions & 0 deletions content/downloads/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
url: /downloads.html
aliases:
- /downloads/index.html
- /download/index.html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding these singular aliases?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually half a bug fix. We used to support only the URLs without the trailing slash for those aliases. And thanks to the change in Hugo, now we would only support the ones with the slashes. Now we support both.

- /download.html
---

<div id="main">
Expand Down
2 changes: 2 additions & 0 deletions content/downloads/guis/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- /downloads/guis/index.html
- /download/guis/index.html
- /download/guis.html
- /download/gui/index.html
- /download/gui.html
---

<div id="main">
Expand Down
2 changes: 2 additions & 0 deletions content/videos/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
url: /videos.html
aliases:
- /videos/index.html
- /video/index.html
- /video.html
---

<div id='main'>
Expand Down
2 changes: 2 additions & 0 deletions external/book/content/book/az/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/az/v2/index.html"
- "/book/az/v1/index.html"
- "/book/az/v1.html"
- "/book/az/index.html"
- "/book/az.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/be/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/be/v2/index.html"
- "/book/be/v1/index.html"
- "/book/be/v1.html"
- "/book/be/index.html"
- "/book/be.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/bg/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
aliases:
- "/book/bg/v2/index.html"
- "/book/bg/v1/index.html"
- "/book/bg/v1.html"
- "/book/bg/index.html"
- "/book/bg.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/cs/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/cs/v2/index.html"
- "/book/cs/v1/index.html"
- "/book/cs/v1.html"
- "/book/cs/index.html"
- "/book/cs.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/de/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/de/v2/index.html"
- "/book/de/v1/index.html"
- "/book/de/v1.html"
- "/book/de/index.html"
- "/book/de.html"
---
4 changes: 4 additions & 0 deletions external/book/content/book/en/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
aliases:
- "/book/en/v2/index.html"
- "/book/en/v1/index.html"
- "/book/en/v1.html"
- "/book/en/index.html"
- "/book/en.html"
- "/book/index.html"
- "/book.html"
- "/book/v1/index.html"
- "/book/v1.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/es/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/es/v2/index.html"
- "/book/es/v1/index.html"
- "/book/es/v1.html"
- "/book/es/index.html"
- "/book/es.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/fa/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/fa/v2/index.html"
- "/book/fa/v1/index.html"
- "/book/fa/v1.html"
- "/book/fa/index.html"
- "/book/fa.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/fr/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/fr/v2/index.html"
- "/book/fr/v1/index.html"
- "/book/fr/v1.html"
- "/book/fr/index.html"
- "/book/fr.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/gr/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
aliases:
- "/book/gr/v2/index.html"
- "/book/gr/v1/index.html"
- "/book/gr/v1.html"
- "/book/gr/index.html"
- "/book/gr.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/id/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/id/v2/index.html"
- "/book/id/v1/index.html"
- "/book/id/v1.html"
- "/book/id/index.html"
- "/book/id.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/it/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/it/v2/index.html"
- "/book/it/v1/index.html"
- "/book/it/v1.html"
- "/book/it/index.html"
- "/book/it.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/ja/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/ja/v2/index.html"
- "/book/ja/v1/index.html"
- "/book/ja/v1.html"
- "/book/ja/index.html"
- "/book/ja.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/ko/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/ko/v2/index.html"
- "/book/ko/v1/index.html"
- "/book/ko/v1.html"
- "/book/ko/index.html"
- "/book/ko.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/mk/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/mk/v2/index.html"
- "/book/mk/v1/index.html"
- "/book/mk/v1.html"
- "/book/mk/index.html"
- "/book/mk.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/ms/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/ms/v2/index.html"
- "/book/ms/v1/index.html"
- "/book/ms/v1.html"
- "/book/ms/index.html"
- "/book/ms.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/nl/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/nl/v2/index.html"
- "/book/nl/v1/index.html"
- "/book/nl/v1.html"
- "/book/nl/index.html"
- "/book/nl.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/pl/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/pl/v2/index.html"
- "/book/pl/v1/index.html"
- "/book/pl/v1.html"
- "/book/pl/index.html"
- "/book/pl.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/pt-br/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/pt-br/v2/index.html"
- "/book/pt-br/v1/index.html"
- "/book/pt-br/v1.html"
- "/book/pt-br/index.html"
- "/book/pt-br.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/pt-pt/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/pt-pt/v2/index.html"
- "/book/pt-pt/v1/index.html"
- "/book/pt-pt/v1.html"
- "/book/pt-pt/index.html"
- "/book/pt-pt.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/ru/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/ru/v2/index.html"
- "/book/ru/v1/index.html"
- "/book/ru/v1.html"
- "/book/ru/index.html"
- "/book/ru.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/sl/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/sl/v2/index.html"
- "/book/sl/v1/index.html"
- "/book/sl/v1.html"
- "/book/sl/index.html"
- "/book/sl.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/sr/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/sr/v2/index.html"
- "/book/sr/v1/index.html"
- "/book/sr/v1.html"
- "/book/sr/index.html"
- "/book/sr.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/sv/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/sv/v2/index.html"
- "/book/sv/v1/index.html"
- "/book/sv/v1.html"
- "/book/sv/index.html"
- "/book/sv.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/tl/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/tl/v2/index.html"
- "/book/tl/v1/index.html"
- "/book/tl/v1.html"
- "/book/tl/index.html"
- "/book/tl.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/tr/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/tr/v2/index.html"
- "/book/tr/v1/index.html"
- "/book/tr/v1.html"
- "/book/tr/index.html"
- "/book/tr.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/uk/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
aliases:
- "/book/uk/v2/index.html"
- "/book/uk/v1/index.html"
- "/book/uk/v1.html"
- "/book/uk/index.html"
- "/book/uk.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/uz/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
aliases:
- "/book/uz/v2/index.html"
- "/book/uz/v1/index.html"
- "/book/uz/v1.html"
- "/book/uz/index.html"
- "/book/uz.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/zh-tw/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
aliases:
- "/book/zh-tw/v2/index.html"
- "/book/zh-tw/v1/index.html"
- "/book/zh-tw/v1.html"
- "/book/zh-tw/index.html"
- "/book/zh-tw.html"
---
2 changes: 2 additions & 0 deletions external/book/content/book/zh/v2/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
aliases:
- "/book/zh/v2/index.html"
- "/book/zh/v1/index.html"
- "/book/zh/v1.html"
- "/book/zh/index.html"
- "/book/zh.html"
---
4 changes: 2 additions & 2 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ module:
- source: external/docs/content
target: content
params:
hugo_version: 0.139.4
pagefind_version: 1.1.1
hugo_version: 0.148.2
pagefind_version: 1.3.0
latest_version: 2.50.1
latest_relnote_url: https://raw.github.com/git/git/master/Documentation/RelNotes/2.50.1.adoc
latest_release_date: '2025-06-16'
Expand Down
6 changes: 5 additions & 1 deletion script/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,15 @@ def save
front_matter["aliases"] = [
"/book/#{@language_code}/v#{@edition}/index.html",
"/book/#{@language_code}/v1/index.html",
"/book/#{@language_code}/index.html"
"/book/#{@language_code}/v1.html",
"/book/#{@language_code}/index.html",
"/book/#{@language_code}.html"
]
if @language_code == "en"
front_matter["aliases"].push("/book/index.html")
front_matter["aliases"].push("/book.html")
front_matter["aliases"].push("/book/v1/index.html")
front_matter["aliases"].push("/book/v1.html")
end
front_matter["book"]["front_page"] = true
front_matter["book"]["repository_url"] = "https://github.com/#{@@all_books[@language_code]}"
Expand Down
17 changes: 17 additions & 0 deletions script/upgrade-hugo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

die() {
echo "$*" >&2
exit 1
}

HUGO_VERSION=$(sed -n 's/^ *hugo_version: *//p' <hugo.yml) &&
test -n "$HUGO_VERSION" ||
die "hugo_version not found in hugo.yml"

echo "Upgrading to Hugo v${HUGO_VERSION}" >&2

download_url=https://github.com/gohugoio/hugo/releases/download &&
curl -Lo /tmp/hugo.deb $download_url/v$HUGO_VERSION/hugo_extended_${HUGO_VERSION}_linux-amd64.deb &&
sudo dpkg -i /tmp/hugo.deb ||
die "Failed to install Hugo version $HUGO_VERSION"
Loading