Skip to content

Commit

Permalink
Update Hugo to 0.139.0 (#7149)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmelehan authored Nov 21, 2024
1 parent 5560b51 commit 62bcb77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ To Install the latest Node.js LTS release on Windows, navigate to the [downloads

### Install Hugo

The Linode documentation library is built using [Hugo](http://gohugo.io), an open-source static site generator. In order to preview your guide before submission, you need to install Hugo on your local computer. This site currently uses **Hugo v0.138.0**. To remain consistent in the testing and development process, it's recommended to install this version instead of using a newer version.
The Linode documentation library is built using [Hugo](http://gohugo.io), an open-source static site generator. In order to preview your guide before submission, you need to install Hugo on your local computer. This site currently uses **Hugo v0.139.0**. To remain consistent in the testing and development process, it's recommended to install this version instead of using a newer version.

Note: If you observe any issues on a newer version, please [file an issue](https://github.com/linode/docs/issues) in the docs GitHub repository.

#### macOS and Linux

To install Hugo, download the appropriate binary for your system, extract it, and move it to a directory within your PATH.

1. Download the file below that corresponds with the OS and platform on your local system. If you don't see your system on this list, you can find additional files on the [Hugo v0.138.0 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.138.0) under **Assets**.
1. Download the file below that corresponds with the OS and platform on your local system. If you don't see your system on this list, you can find additional files on the [Hugo v0.139.0 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.139.0) under **Assets**.

- **macOS:** https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_darwin-universal.tar.gz
- **Linux:** https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_Linux-64bit.tar.gz
- **macOS:** https://github.com/gohugoio/hugo/releases/download/v0.139.0/hugo_extended_0.139.0_darwin-universal.tar.gz
- **Linux:** https://github.com/gohugoio/hugo/releases/download/v0.139.0/hugo_extended_0.139.0_Linux-64bit.tar.gz

You can download this file through a terminal using the curl command, replacing [url] with the URL for your platform:

Expand Down Expand Up @@ -115,7 +115,7 @@ To install Hugo, download the appropriate binary for your system, extract it, an

While macOS and Linux are preferred by most of the core Linode Docs team, it's also possible to use Hugo on Windows.

1. Download the [hugo_extended_0.138.0_windows-amd64.zip](https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_windows-amd64.zip) file. Additional files for other operating systems can be found on the [Hugo v0.138.0 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.138.0) under **Assets**.
1. Download the [hugo_extended_0.139.0_windows-amd64.zip](https://github.com/gohugoio/hugo/releases/download/v0.139.0/hugo_extended_0.139.0_windows-amd64.zip) file. Additional files for other operating systems can be found on the [Hugo v0.139.0 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.139.0) under **Assets**.

1. Extract the file to the directory you'd like to install Hugo under, such as `C:\Hugo\bin`.

Expand Down Expand Up @@ -184,10 +184,10 @@ For more information about using Git, refer to the [official Git documentation](
This section is only relevant to contributors who have previously worked on the docs repo prior to the Tailwind v3 upgrade (which occurred on July 6th, 2023 in docs release v1.252.0). After you merge in changes from this release (and onward), you will likely notice display issues when previewing the site locally. This is due to Tailwind v3 and the way it integrates with Hugo (and our theme). To complete the upgrade locally and fix any display issues, follow the steps below.
1. Upgrade Hugo to v0.138.0. On macOS, run the following commands in a temporary folder (not in your docs repo):
1. Upgrade Hugo to v0.139.0. On macOS, run the following commands in a temporary folder (not in your docs repo):
curl -OL https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_darwin-universal.tar.gz
tar -xvzf hugo_extended_0.138.0_darwin-universal.tar.gz
curl -OL https://github.com/gohugoio/hugo/releases/download/v0.139.0/hugo_extended_0.139.0_darwin-universal.tar.gz
tar -xvzf hugo_extended_0.139.0_darwin-universal.tar.gz
mv hugo /usr/local/bin
If you are using a different operating system, refer to the [Install Hugo](#install-hugo) section above.
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ publish = "public"
command = "hugo version && hugo config && hugo --gc --minify -d public/docs;"

[context.production.environment]
HUGO_VERSION = "0.138.0"
HUGO_VERSION = "0.139.0"
HUGO_PARAMS_TESTENV="Netlify"

[context.deploy-preview.environment]
HUGO_VERSION = "0.138.0"
HUGO_VERSION = "0.139.0"
HUGO_PARAMS_TESTENV="Netlify"

[[plugins]]
Expand Down

0 comments on commit 62bcb77

Please sign in to comment.