diff --git a/Makefile b/Makefile index b1a9381ea..96cad9e98 100644 --- a/Makefile +++ b/Makefile @@ -211,10 +211,11 @@ gen-changelog: docker run -it -v $(shell pwd):/app --workdir /app -e CHANGELOG_GITHUB_TOKEN hairyhenderson/github_changelog_generator \ github_changelog_generator --no-filter-by-milestone --exclude-labels duplicate,question,invalid,wontfix,admin -docs/themes/hugo-theme-relearn: - git clone --depth=1 https://github.com/McShelby/hugo-theme-relearn.git $@ +# uses hugo modules now +# docs/themes/hugo-theme-relearn: +# git clone https://github.com/McShelby/hugo-theme-relearn.git $@ -gen-docs: docs/themes/hugo-theme-relearn +gen-docs: cd docs/; hugo docs/content/functions/%.md: docs-src/content/functions/%.yml docs-src/content/functions/func_doc.md.tmpl diff --git a/docs/config.toml b/docs/config.toml index 71e691bf0..3b28b4b43 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 000000000..11478eb84 --- /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 000000000..c0fb42055 --- /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 27f179224..f3e715b36 100644 --- a/docs/layouts/partials/custom-footer.html +++ b/docs/layouts/partials/custom-footer.html @@ -1,8 +1,8 @@ -{{ template "_internal/google_analytics.html" . }}