File tree Expand file tree Collapse file tree 11 files changed +1136
-12
lines changed Expand file tree Collapse file tree 11 files changed +1136
-12
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,19 @@ jobs:
63
63
- name : Setup Hugo
64
64
uses : peaceiris/actions-hugo@v3
65
65
with :
66
- hugo-version : ' 0.97.3 '
66
+ hugo-version : ' 0.148.0 '
67
67
extended : true
68
68
69
69
- name : Setup Node.js
70
70
uses : actions/setup-node@v4
71
71
with :
72
72
node-version : ' 20'
73
73
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
76
79
77
80
- name : Build staging
78
81
if : github.event.inputs.environment == 'staging' || github.event_name == 'issue_comment'
Original file line number Diff line number Diff line change 1
- [submodule "kernelci.org/themes/docsy "]
2
- path = kernelci.org/themes/docsy
3
- url = https://github.com/google/docsy.git
4
1
[submodule "kernelci.org/external/kernelci-core "]
5
2
path = kernelci.org/external/kernelci-core
6
3
url = https://github.com/kernelci/kernelci-core.git
Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ $ cd kernelci.org
38
38
39
39
Then to start the server:
40
40
``` 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
42
42
```
43
43
44
+ Note: The site now uses Hugo modules with Docsy v0.12.0. Hugo will automatically download the required modules on first run.
45
+
44
46
Alternatively, this can be started with ` docker-compose ` :
45
47
46
48
``` sh
Original file line number Diff line number Diff line change 1
1
resources /_gen
2
2
public
3
+ node_modules /
4
+ .hugo_build.lock
Original file line number Diff line number Diff line change 1
1
baseURL = " https://kernelci.org/"
2
- theme = " docsy"
3
2
4
3
# -- languages --
5
4
@@ -51,7 +50,7 @@ sidebar_menu_compact = false
51
50
breadcrumb_disable = false
52
51
sidebar_search_disable = false
53
52
navbar_logo = true
54
- footer_about_disable = false
53
+ footer_about_enable = true
55
54
56
55
[params .links ]
57
56
@@ -105,3 +104,14 @@ footer_about_disable = false
105
104
name = " Documentation"
106
105
url = " /"
107
106
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
Original file line number Diff line number Diff line change 12
12
# 2)retrieve all lfs files with `git lfs pull`
13
13
# you might need to install git-lfs with `sudo apt install git-lfs`
14
14
# 3)run `docker-compose up` to start the server
15
+ # Note: The site uses Hugo modules - Hugo will automatically download required modules
15
16
16
- version : ' 3'
17
17
services :
18
18
localhugo :
19
19
container_name : ' localhugo'
20
- image : ' hubci /hugo:0.97.3 '
20
+ image : ' hugomods /hugo:exts-0.148.0 '
21
21
volumes :
22
22
- ' .:/src'
23
23
ports :
Original file line number Diff line number Diff line change
1
+ module kernelci.org
2
+
3
+ go 1.24.5
4
+
5
+ require github.com/google/docsy v0.12.0 // indirect
Original file line number Diff line number Diff line change
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 =
You can’t perform that action at this time.
0 commit comments