Skip to content

Commit 8e01d1f

Browse files
committed
documentation: Retrieve hugo-theme-learn as hugo module
1 parent c365d7e commit 8e01d1f

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

docs/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ clean:
66
rm -rf public/
77

88

9-
hugo-build: clean hugo-themes
9+
hugo-build: clean
1010
hugo --enableGitInfo --source .
1111

1212
hugo:
1313
hugo server --disableFastRender --enableGitInfo --watch --source .
1414
# hugo server -D
15-
16-
hugo-themes:
17-
rm -rf themes
18-
mkdir themes
19-
git clone --depth=1 https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn
20-
rm -rf themes/hugo-theme-learn/.git

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/go-acme/lego/docs
2+
3+
go 1.21.0
4+
5+
require github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d // indirect

docs/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d h1:p7ktiW/GnHccjB9oO5YGY7us5v/oHmkyF0C7EDZFM3s=
2+
github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d/go.mod h1:YoToDcvQxmAFhpEuapKUysBDEBckqDEssqTrmeZ2+uY=

docs/hugo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ baseURL = "https://go-acme.github.io/lego/"
22
languageCode = "en-us"
33
title = "Lego"
44

5-
theme = "hugo-theme-learn"
6-
75
# Code highlighting settings
86
pygmentsCodefences = true
97
pygmentsCodeFencesGuesSsyntax = false
@@ -72,3 +70,7 @@ pygmentsUseClasses = true
7270

7371
[outputs]
7472
home = [ "HTML", "RSS", "JSON"]
73+
74+
[module]
75+
[[module.imports]]
76+
path = "github.com/matcornic/hugo-theme-learn"

0 commit comments

Comments
 (0)