Skip to content

Commit 7304933

Browse files
authored
Theme updates (#7142)
* Theme updates: - Refactor content shortcode * Update Hugo to 0.138.0 * Fix broken shortguide references
1 parent de521b2 commit 7304933

File tree

18 files changed

+34
-42
lines changed

18 files changed

+34
-42
lines changed

.github/workflows/update-algolia-on-schedule.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up Hugo
4949
uses: peaceiris/actions-hugo@v2
5050
with:
51-
hugo-version: '0.125.7'
51+
hugo-version: ${{ vars.HUGO_VERSION }}
5252

5353
- name: Checkout docs repo
5454
uses: actions/checkout@v3

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ To Install the latest Node.js LTS release on Windows, navigate to the [downloads
7070

7171
### Install Hugo
7272

73-
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.125.7**. To remain consistent in the testing and development process, it's recommended to install this version instead of using a newer version.
73+
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.
7474

7575
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.
7676

7777
#### macOS and Linux
7878

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

81-
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.125.7 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.125.7) under **Assets**.
81+
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**.
8282

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

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

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

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

118-
1. Download the [hugo_extended_0.125.7_windows-amd64.zip](https://github.com/gohugoio/hugo/releases/download/v0.125.7/hugo_extended_0.125.7_windows-amd64.zip) file. Additional files for other operating systems can be found on the [Hugo v0.125.7 GitHub release page](https://github.com/gohugoio/hugo/releases/tag/v0.125.7) under **Assets**.
118+
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**.
119119

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

@@ -184,10 +184,10 @@ For more information about using Git, refer to the [official Git documentation](
184184
185185
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.
186186
187-
1. Upgrade Hugo to v0.125.7. On macOS, run the following commands in a temporary folder (not in your docs repo):
187+
1. Upgrade Hugo to v0.138.0. On macOS, run the following commands in a temporary folder (not in your docs repo):
188188
189-
curl -OL https://github.com/gohugoio/hugo/releases/download/v0.125.7/hugo_extended_0.125.7_darwin-universal.tar.gz
190-
tar -xvzf hugo_extended_0.125.7_darwin-universal.tar.gz
189+
curl -OL https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_darwin-universal.tar.gz
190+
tar -xvzf hugo_extended_0.138.0_darwin-universal.tar.gz
191191
mv hugo /usr/local/bin
192192
193193
If you are using a different operating system, refer to the [Install Hugo](#install-hugo) section above.

_vendor/github.com/linode/linode-docs-theme/config.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/head-src.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/linode/linode-docs-theme/layouts/shortcodes/content.html

Lines changed: 6 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# github.com/linode/linode-docs-theme v0.0.0-20241107185827-f54f3d0cc486
1+
# github.com/linode/linode-docs-theme v0.0.0-20241112191537-cb59b44a8bd6
22
# github.com/linode/linode-website-partials v0.0.0-20241107184419-08ebb197096e
33
# github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21300.20800
44
# github.com/gohugoio/hugo-mod-jslibs/turbo/v8 v8.20000.20400

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ anchor = "smart"
163163
[security]
164164
enableInlineShortcodes = false
165165
[security.exec]
166-
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
166+
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^git$']
167167
osEnv = ['(?i)^(.*)$']
168168

169169
[security.funcs]

docs/guides/security/ssl/_shortguides/installing-snapd-certbot-dnf-rhel-shortguide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
slug: installing-snapd-certbot-dnf-shortguide
2+
slug: installing-snapd-certbot-dnf-rhel-shortguide
33
title: "Shortguide"
44
description: "Shortguide"
55
authors: ["Linode"]

docs/guides/security/ssl/enabling-https-using-certbot-with-apache-on-fedora/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This guide is written for a non-root user. Commands that require elevated privil
3737

3838
{{% content "configuring-firewalld-for-web-traffic-shortguide" %}}
3939

40-
{{% content "installing-snapd-certbot-dnf-shortguide" %}}
40+
{{% content "installing-snapd-certbot-dnf-rhel-shortguide" %}}
4141

4242
{{% content "requesting-certificate-apache-certbot-shortguide" %}}
4343

docs/guides/security/ssl/enabling-https-using-certbot-with-nginx-on-fedora/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This guide is written for a non-root user. Commands that require elevated privil
3535

3636
{{% content "configuring-firewalld-for-web-traffic-shortguide" %}}
3737

38-
{{% content "installing-snapd-certbot-dnf-shortguide" %}}
38+
{{% content "installing-snapd-certbot-dnf-rhel-shortguide" %}}
3939

4040
{{% content "requesting-certificate-nginx-certbot-shortguide" %}}
4141

0 commit comments

Comments
 (0)