doc: retrieve hugo-theme-learn as hugo module (#1994)

This commit is contained in:
Andreas Deininger 2023-08-19 21:11:03 +02:00 committed by GitHub
parent 6792701dbc
commit 406dad30fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 9 deletions

View file

@ -6,15 +6,9 @@ clean:
rm -rf public/
hugo-build: clean hugo-themes
hugo-build: clean
hugo --enableGitInfo --source .
hugo:
hugo server --disableFastRender --enableGitInfo --watch --source .
# hugo server -D
hugo-themes:
rm -rf themes
mkdir themes
git clone --depth=1 https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn
rm -rf themes/hugo-theme-learn/.git

5
docs/go.mod Normal file
View file

@ -0,0 +1,5 @@
module github.com/go-acme/lego/docs
go 1.20
require github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d // indirect

2
docs/go.sum Normal file
View file

@ -0,0 +1,2 @@
github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d h1:p7ktiW/GnHccjB9oO5YGY7us5v/oHmkyF0C7EDZFM3s=
github.com/matcornic/hugo-theme-learn v0.0.0-20211028190410-e817f53d690d/go.mod h1:YoToDcvQxmAFhpEuapKUysBDEBckqDEssqTrmeZ2+uY=

View file

@ -2,8 +2,6 @@ baseURL = "https://go-acme.github.io/lego/"
languageCode = "en-us"
title = "Lego"
theme = "hugo-theme-learn"
# Code highlighting settings
pygmentsCodefences = true
pygmentsCodeFencesGuesSsyntax = false
@ -72,3 +70,7 @@ pygmentsUseClasses = true
[outputs]
home = [ "HTML", "RSS", "JSON"]
[module]
[[module.imports]]
path = "github.com/matcornic/hugo-theme-learn"