Skip to content

Commit

Permalink
⚡ update exampleSite to use the 'replace' directive in go.mod instead…
Browse files Browse the repository at this point in the history
… of 'themesDir' in hugo.toml
  • Loading branch information
colinwilson committed Aug 7, 2023
1 parent a203852 commit 4787614
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
5 changes: 4 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[module]
[module.hugoVersion]
extended = true
min = "0.100.0"
min = "0.100.0"
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
disable = false
8 changes: 5 additions & 3 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -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 => ../
8 changes: 3 additions & 5 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -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=
9 changes: 3 additions & 6 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/colinwilson/lotusdocs

go 1.19

0 comments on commit 4787614

Please sign in to comment.