From 406dad30fedae36ea290a8878fcc9058033a7da1 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sat, 19 Aug 2023 21:11:03 +0200 Subject: [PATCH] doc: retrieve hugo-theme-learn as hugo module (#1994) --- docs/Makefile | 8 +------- docs/go.mod | 5 +++++ docs/go.sum | 2 ++ docs/hugo.toml | 6 ++++-- 4 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 docs/go.mod create mode 100644 docs/go.sum diff --git a/docs/Makefile b/docs/Makefile index 09d3dad2..c17a261e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -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 diff --git a/docs/go.mod b/docs/go.mod new file mode 100644 index 00000000..31794da8 --- /dev/null +++ b/docs/go.mod @@ -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 diff --git a/docs/go.sum b/docs/go.sum new file mode 100644 index 00000000..95214cc9 --- /dev/null +++ b/docs/go.sum @@ -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= diff --git a/docs/hugo.toml b/docs/hugo.toml index f3323145..7caea1f1 100644 --- a/docs/hugo.toml +++ b/docs/hugo.toml @@ -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"