Skip to content

Commit bece389

Browse files
committed
docs: move Hugo and theme up to latest
Dive into the changes required to make use of the most recent Hugo and Docsy. Co-authored by AI. Signed-off-by: Gustavo Padovan <[email protected]>
1 parent 127d2a4 commit bece389

File tree

11 files changed

+1136
-12
lines changed

11 files changed

+1136
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ jobs:
6363
- name: Setup Hugo
6464
uses: peaceiris/actions-hugo@v3
6565
with:
66-
hugo-version: '0.97.3'
66+
hugo-version: '0.148.0'
6767
extended: true
6868

6969
- name: Setup Node.js
7070
uses: actions/setup-node@v4
7171
with:
7272
node-version: '20'
7373

74-
- name: Install dependencies (postcss), bootstrap-sass
75-
run: npm install --save-dev autoprefixer && npm install postcss-cli && npm install -D postcss && npm install -D postcss-preset-env && npm install -D bootstrap-sass
74+
- name: Install NPM dependencies
75+
run: cd kernelci.org && npm install
76+
77+
- name: Initialize Hugo modules
78+
run: cd kernelci.org && hugo mod tidy
7679

7780
- name: Build staging
7881
if: github.event.inputs.environment == 'staging' || github.event_name == 'issue_comment'

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "kernelci.org/themes/docsy"]
2-
path = kernelci.org/themes/docsy
3-
url = https://github.com/google/docsy.git
41
[submodule "kernelci.org/external/kernelci-core"]
52
path = kernelci.org/external/kernelci-core
63
url = https://github.com/kernelci/kernelci-core.git

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ $ cd kernelci.org
3838

3939
Then to start the server:
4040
```sh
41-
$ docker run -v $PWD:/src -p 1313:1313 klakegg/hugo:0.97.3-ext-debian server -D
41+
$ docker run -v $PWD:/src -p 1313:1313 hugomods/hugo:exts-0.148.0 server -D
4242
```
4343

44+
Note: The site now uses Hugo modules with Docsy v0.12.0. Hugo will automatically download the required modules on first run.
45+
4446
Alternatively, this can be started with `docker-compose`:
4547

4648
```sh

kernelci.org/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
resources/_gen
22
public
3+
node_modules/
4+
.hugo_build.lock

kernelci.org/config.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
baseURL = "https://kernelci.org/"
2-
theme = "docsy"
32

43
# -- languages --
54

@@ -51,7 +50,7 @@ sidebar_menu_compact = false
5150
breadcrumb_disable = false
5251
sidebar_search_disable = false
5352
navbar_logo = true
54-
footer_about_disable = false
53+
footer_about_enable = true
5554

5655
[params.links]
5756

@@ -105,3 +104,14 @@ footer_about_disable = false
105104
name = "Documentation"
106105
url = "/"
107106
weight = 5
107+
108+
# -- Hugo modules configuration --
109+
110+
[module]
111+
proxy = "direct"
112+
[module.hugoVersion]
113+
extended = true
114+
min = "0.146.0"
115+
[[module.imports]]
116+
path = "github.com/google/docsy"
117+
disable = false

kernelci.org/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# 2)retrieve all lfs files with `git lfs pull`
1313
# you might need to install git-lfs with `sudo apt install git-lfs`
1414
# 3)run `docker-compose up` to start the server
15+
# Note: The site uses Hugo modules - Hugo will automatically download required modules
1516

16-
version: '3'
1717
services:
1818
localhugo:
1919
container_name: 'localhugo'
20-
image: 'hubci/hugo:0.97.3'
20+
image: 'hugomods/hugo:exts-0.148.0'
2121
volumes:
2222
- '.:/src'
2323
ports:

kernelci.org/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module kernelci.org
2+
3+
go 1.24.5
4+
5+
require github.com/google/docsy v0.12.0 // indirect

kernelci.org/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
3+
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
4+
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

0 commit comments

Comments
 (0)