From 17eb360dfaeaf3186b736971f45f3c418d583845 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 28 Jun 2024 20:21:30 -0400 Subject: docs(fix): Update docs configs to work with the latest hugo theme version (#2155) Signed-off-by: Dave Henderson --- docs/config.toml | 17 +++++++---------- docs/go.mod | 5 +++++ docs/go.sum | 6 ++++++ docs/layouts/partials/custom-footer.html | 6 +++--- 4 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 docs/go.mod create mode 100644 docs/go.sum (limited to 'docs') diff --git a/docs/config.toml b/docs/config.toml index 71e691bf..3b28b4b4 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -1,14 +1,11 @@ baseURL = "/" languageCode = "en-us" title = "gomplate documentation" -theme = "hugo-theme-relearn" -googleAnalytics = "UA-82637990-3" +# theme = "hugo-theme-relearn" [params] alwaysopen = false editURL = "https://github.com/hairyhenderson/gomplate/edit/main/docs/content/" - author = "hairyhenderson" - description = "gomplate documentation" showVisitedLinks = false disableSearch = false disableSearchHiddenPages = false @@ -35,6 +32,9 @@ googleAnalytics = "UA-82637990-3" disableExplicitIndexURLs = true externalLinkTarget = "_blank" +[params.author] + name = "hairyhenderson" + [markup] [markup.highlight] guessSyntax = false @@ -43,9 +43,6 @@ googleAnalytics = "UA-82637990-3" [outputs] home = [ "HTML", "RSS", "SEARCH", "SEARCHPAGE"] -[privacy] - [privacy.googleAnalytics] - disable = false - anonymizeIP = true - respectDoNotTrack = true - useSessionStorage = false +[module] + [[module.imports]] + path = 'github.com/McShelby/hugo-theme-relearn' diff --git a/docs/go.mod b/docs/go.mod new file mode 100644 index 00000000..11478eb8 --- /dev/null +++ b/docs/go.mod @@ -0,0 +1,5 @@ +module github.com/hairyhenderson/gomplate/docs + +go 1.22.4 + +require github.com/McShelby/hugo-theme-relearn v0.0.0-20231029175538-7ae1435626d7 // 0.53.0 diff --git a/docs/go.sum b/docs/go.sum new file mode 100644 index 00000000..c0fb4205 --- /dev/null +++ b/docs/go.sum @@ -0,0 +1,6 @@ +github.com/McShelby/hugo-theme-relearn v0.0.0-20231029175538-7ae1435626d7 h1:dQ2UVtAGY3OFJnDN02uac5bjpczbgJcmhXnHv0QifG0= +github.com/McShelby/hugo-theme-relearn v0.0.0-20231029175538-7ae1435626d7/go.mod h1:mKQQdxZNIlLvAj8X3tMq+RzntIJSr9z7XdzuMomt0IM= +github.com/McShelby/hugo-theme-relearn v0.0.0-20240217004058-fe7f9a8764e3 h1:fpEagigEo9/AvC+90KuNMaF8Z8+Lg2rnEK6K7Ee/2WU= +github.com/McShelby/hugo-theme-relearn v0.0.0-20240217004058-fe7f9a8764e3/go.mod h1:mKQQdxZNIlLvAj8X3tMq+RzntIJSr9z7XdzuMomt0IM= +github.com/McShelby/hugo-theme-relearn v0.0.0-20240407214931-4391760c8bc1 h1:/SWuiqok8gDIkmBizkUBp6c3Y87JocRaukkzSUEDu+8= +github.com/McShelby/hugo-theme-relearn v0.0.0-20240407214931-4391760c8bc1/go.mod h1:mKQQdxZNIlLvAj8X3tMq+RzntIJSr9z7XdzuMomt0IM= diff --git a/docs/layouts/partials/custom-footer.html b/docs/layouts/partials/custom-footer.html index 27f17922..f3e715b3 100644 --- a/docs/layouts/partials/custom-footer.html +++ b/docs/layouts/partials/custom-footer.html @@ -1,8 +1,8 @@ -{{ template "_internal/google_analytics.html" . }}