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:
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'
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
41[submodule "kernelci.org/external/kernelci-core "]
52 path = kernelci.org/external/kernelci-core
63 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
3838
3939Then 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+
4446Alternatively, this can be started with ` docker-compose ` :
4547
4648``` sh
Original file line number Diff line number Diff line change 11resources /_gen
22public
3+ node_modules /
4+ .hugo_build.lock
Original file line number Diff line number Diff line change 11baseURL = " https://kernelci.org/"
2- theme = " docsy"
32
43# -- languages --
54
@@ -51,7 +50,7 @@ sidebar_menu_compact = false
5150breadcrumb_disable = false
5251sidebar_search_disable = false
5352navbar_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
Original file line number Diff line number Diff line change 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'
1717services :
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 :
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