Skip to content

Commit c147c70

Browse files
authored
Make docsy example site use docsy theme as hugo module (#156)
1 parent 0b1a4d8 commit c147c70

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

config.toml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ enableMissingTranslationPlaceholders = true
1010

1111
enableRobotsTXT = true
1212

13-
# Hugo allows theme composition (and inheritance). The precedence is from left to right.
14-
theme = ["docsy"]
15-
1613
# Will give values to .Lastmod etc.
1714
enableGitInfo = true
1815

@@ -140,9 +137,9 @@ github_project_repo = "https://github.com/google/docsy"
140137
# Specify a value here if your content directory is not in your repo's root directory
141138
# github_subdir = ""
142139

143-
# Uncomment this if you have a newer GitHub repo with "main" as the default branch,
140+
# Uncomment this if your GitHub repo does not have "main" as the default branch,
144141
# or specify a new value if you want to reference another branch in your GitHub links
145-
# github_branch= "main"
142+
github_branch= "master"
146143

147144
# Google Custom Search Engine ID. Remove or comment out to disable search.
148145
gcs_engine_id = "d72aa9b2712488cc3"
@@ -220,3 +217,18 @@ enable = false
220217
url = "https://example.org/mail"
221218
icon = "fa fa-envelope"
222219
desc = "Discuss development issues around the project"
220+
221+
# hugo module configuration
222+
223+
[module]
224+
# uncomment line below for temporary local development of module
225+
# replacements = "github.com/google/docsy -> ../../docsy"
226+
[module.hugoVersion]
227+
extended = true
228+
min = "0.75.0"
229+
[[module.imports]]
230+
path = "github.com/google/docsy"
231+
disable = false
232+
[[module.imports]]
233+
path = "github.com/google/docsy/dependencies"
234+
disable = false

go.mod

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module github.com/google/docsy-example
2+
3+
go 1.13
4+
5+
require (
6+
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac // indirect
7+
github.com/google/docsy v0.1.1-0.20220321183617-02df04c0f2d4 // indirect
8+
github.com/google/docsy/dependencies v0.2.0-pre.0.20220321183617-02df04c0f2d4 // indirect
9+
github.com/twbs/bootstrap v4.6.1+incompatible // indirect
10+
)

go.sum

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac h1:AjwgwoaDsNEA1Wtc8pgw/BqG7SEk9bKxXPjEPQQ42vY=
2+
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3+
github.com/google/docsy v0.1.1-0.20220321183617-02df04c0f2d4 h1:+vc8wn8oOlLhjUOTvP6ljXuIi03HZWb9jWc4ZhVrO9g=
4+
github.com/google/docsy v0.1.1-0.20220321183617-02df04c0f2d4/go.mod h1:yuKLZHMX5CKiLUH55+ePFJaYnoSwUVVffNareaOGQYo=
5+
github.com/google/docsy/dependencies v0.2.0-pre/go.mod h1:oPdn05sNt61uT6K+LqNRhYq1jeqrsbbQMDXkPdPscmA=
6+
github.com/google/docsy/dependencies v0.2.0-pre.0.20220321183617-02df04c0f2d4 h1:EKYx2OlWxo2HBhZ+dWzZbufBfh+qMKmz2K1lf1GJmto=
7+
github.com/google/docsy/dependencies v0.2.0-pre.0.20220321183617-02df04c0f2d4/go.mod h1:oPdn05sNt61uT6K+LqNRhYq1jeqrsbbQMDXkPdPscmA=
8+
github.com/twbs/bootstrap v4.6.1+incompatible h1:75PsBfPU1SS65ag0Z3Cq6JNXVAfUNfB0oCLHh9k9Fu8=
9+
github.com/twbs/bootstrap v4.6.1+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

netlify.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[build]
22
[build.environment]
3-
HUGO_VERSION = "0.94.0"
3+
HUGO_VERSION = "0.96.0"
4+
GO_VERSION = "1.18"

0 commit comments

Comments
 (0)