From 47876146f9d6558b622e15d4dd71cfb745f452c6 Mon Sep 17 00:00:00 2001 From: Colin Wilson Date: Mon, 7 Aug 2023 05:22:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20update=20exampleSite=20to=20use=20t?= =?UTF-8?q?he=20'replace'=20directive=20in=20go.mod=20instead=20of=20'them?= =?UTF-8?q?esDir'=20in=20hugo.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.toml | 5 ++++- exampleSite/go.mod | 8 +++++--- exampleSite/go.sum | 8 +++----- exampleSite/hugo.toml | 9 +++------ go.mod | 3 +++ 5 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 go.mod diff --git a/config.toml b/config.toml index 653db74b..b749b762 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,7 @@ [module] [module.hugoVersion] extended = true - min = "0.100.0" \ No newline at end of file + min = "0.100.0" + [[module.imports]] + path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5" + disable = false \ No newline at end of file diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 03b349dc..37f0c3cd 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -1,8 +1,10 @@ -module github.com/colinwilson/lotusdocs +module github.com/colinwilson/lotusdocs/exampleSite go 1.19 require ( - github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 // indirect - github.com/twbs/bootstrap v5.3.0+incompatible // indirect + github.com/colinwilson/lotusdocs v0.0.0-20230806021035-a20385278356 // indirect + github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20002 // indirect ) + +replace github.com/colinwilson/lotusdocs => ../ \ No newline at end of file diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 82e29b84..bdce2f6f 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -1,9 +1,7 @@ +github.com/colinwilson/lotusdocs v0.0.0-20230806021035-a20385278356 h1:NVCyr6X8KYd0bdUtGU5cy/7PYL+2wk/UIvlMo1Exdhg= +github.com/colinwilson/lotusdocs v0.0.0-20230806021035-a20385278356/go.mod h1:mA3RrhkaiFn/9jfh+meAwSWnQyCYT9GaYCJeM+t1A4A= github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20002 h1:6F6sjCSkFIIgqLp4SEIL1Ao9ZfKyM6OmgqEdTlc58Yk= github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20002/go.mod h1:Q6TrjM78wB13zkOMBSV4IZIZ54tbshmE2fem9CYx2pU= -github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 h1:pt/JGVD5YYRsVVijOHPZI6YKTUvbR4e0hgV9B0S6rbI= -github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003/go.mod h1:mvM05r93HiefwoaxQTaYiJxtJAhTebwQtU1Xh/J+Okk= +github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000 h1:GZxx4Hc+yb0/t3/rau1j8XlAxLE4CyXns2fqQbyqWfs= github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000/go.mod h1:mFberT6ZtcchrsDtfvJM7aAH2bDKLdOnruUHl0hlapI= -github.com/twbs/bootstrap v5.3.0-alpha3+incompatible h1:+OQzm4u8/Brp5KMcca/ggbw58Uv8yaK26TijAD1tsRE= github.com/twbs/bootstrap v5.3.0-alpha3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= -github.com/twbs/bootstrap v5.3.0+incompatible h1:4+staADO0OrqUv77m+XL+vHYojLH9oxb4Vxi9mnIJWg= -github.com/twbs/bootstrap v5.3.0+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 561047e3..00667793 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -1,13 +1,9 @@ baseURL = "/" languageCode = "en-GB" -theme = "lotusdocs" contentDir = "content" enableEmoji = true enableGitInfo = true # N.B. .GitInfo does not currently function with git submodule content directories -# !!! exampleSite only, you may need to delete the line: `themesDir: ../../` -themesDir = "../../" - defaultContentLanguage = 'en' [languages] [languages.en] @@ -26,11 +22,12 @@ defaultContentLanguage = 'en' weight = 30 [module] - # uncomment line below for temporary local development of module - # replacements = "github.com/colinwilson/lotusdocs -> themes/lotusdocs" [module.hugoVersion] extended = true min = "0.100.0" + [[module.imports]] + path = "github.com/colinwilson/lotusdocs" + disable = false [[module.imports]] path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5" disable = false diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..06ced687 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/colinwilson/lotusdocs + +go 1.19 \ No newline at end of file