Skip to content

Commit cfe12aa

Browse files
deiningdiemol
andauthored
Migration to hugo module (SeleniumHQ#1310)
* Drop submodule 'docsy', change project to hugo module * Fix project .scss files * Adapt netlify configuration * Rename config.yaml to hugo.yaml * Using Hugo 110 * Setting version in test workflow --------- Co-authored-by: Diego Molina <[email protected]>
1 parent 6ac694d commit cfe12aa

File tree

13 files changed

+55
-32
lines changed

13 files changed

+55
-32
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Hugo
1818
uses: peaceiris/actions-hugo@v2
1919
with:
20-
hugo-version: '0.101.0'
20+
hugo-version: '0.110.0'
2121
extended: true
2222
- name: Build
2323
run: chmod +x build-site.sh && ./build-site.sh

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Hugo
1818
uses: peaceiris/actions-hugo@v2
1919
with:
20-
hugo-version: '0.101.0'
20+
hugo-version: '0.110.0'
2121
extended: true
2222
- name: Build
2323
run: chmod +x build-site.sh && ./build-site.sh

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "website_and_docs/themes/docsy"]
2-
path = website_and_docs/themes/docsy
3-
url = https://github.com/google/docsy.git

.gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
tasks:
22
- name: Install Hugo, init submodules and start website
33
init: |
4-
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_extended_0.101.0_Linux-64bit.deb && \
5-
sudo dpkg -i hugo_extended_0.101.0_Linux-64bit.deb && \
4+
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_extended_0.110.0_Linux-64bit.deb && \
5+
sudo dpkg -i hugo_extended_0.110.0_Linux-64bit.deb && \
66
sudo rm hugo_extended_0.101.0_Linux-64bit.deb
77
git submodule update --init --recursive
88
command: |

netlify.toml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
[build]
2-
publish = "website_and_docs/public"
3-
command = "chmod +x build-site.sh && ./build-site.sh"
2+
base = "website_and_docs/"
3+
publish = "public"
4+
command = "hugo"
45

56
[context.production.environment]
6-
HUGO_VERSION = "0.101.0"
7+
NODE_VERSION = "18.14.1"
8+
HUGO_VERSION = "0.110.0"
9+
GO_VERSION = "1.20.1"
710
HUGO_ENV = "production"
811

912
[context.deploy-preview]
10-
command = "chmod +x build-site.sh && ./build-site.sh"
13+
command = "hugo"
1114

1215
[context.deploy-preview.environment]
13-
HUGO_VERSION = "0.101.0"
16+
NODE_VERSION = "18.14.1"
17+
HUGO_VERSION = "0.110.0"
18+
GO_VERSION = "1.20.1"
1419

1520
[context.branch-deploy]
16-
command = "chmod +x build-site.sh && ./build-site.sh"
21+
command = "hugo --minify"
1722

1823
[context.branch-deploy.environment]
19-
HUGO_VERSION = "0.101.0"
24+
NODE_VERSION = "18.14.1"
25+
HUGO_VERSION = "0.110.0"
26+
GO_VERSION = "1.20.1"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
Import of additional project style files.
3+
*/
4+
5+
@import "backgrounds";
6+
@import "badges";
7+
@import "colors_project";
8+
@import "images";
9+
@import "links";
10+
@import "logo";
11+
@import "screen";
12+
@import "tabs";

website_and_docs/assets/scss/main.scss

Lines changed: 0 additions & 12 deletions
This file was deleted.

website_and_docs/go.mod

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

website_and_docs/go.sum

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/google/docsy v0.6.0 h1:43bVF18t2JihAamelQjjGzx1vO2ljCilVrBgetCA8oI=
3+
github.com/google/docsy v0.6.0/go.mod h1:VKKLqD8PQ7AglJc98yBorATfW7GrNVsn0kGXVYF6G+M=
4+
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
5+
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

0 commit comments

Comments
 (0)