Skip to content

Commit c7fb314

Browse files
committed
Use Hugo modules
1 parent 5233fec commit c7fb314

File tree

4 files changed

+47
-23
lines changed

4 files changed

+47
-23
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ public/
22
resources/
33
node_modules/
44

5+
# Hugo OS lock
6+
.hugo_build.lock

config.toml

+35-23
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ title = "Genji"
44
enableRobotsTXT = true
55

66
# Hugo allows theme composition (and inheritance). The precedence is from left to right.
7-
theme = ["docsy"]
7+
# theme = ["docsy"]
8+
theme = ["github.com/google/docsy", "github.com/google/docsy/dependencies"]
89

910
# Will give values to .Lastmod etc.
1011
enableGitInfo = true
@@ -76,20 +77,20 @@ id = "UA-162164331-1"
7677
[languages.en]
7778
title = "Genji"
7879
description = "A Document-oriented, embedded, SQL database"
79-
languageName ="English"
80+
languageName = "English"
8081
# Weight used for sorting.
8182
weight = 1
8283

8384
[markup]
84-
[markup.goldmark]
85-
[markup.goldmark.renderer]
86-
unsafe = true
87-
[markup.highlight]
88-
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
89-
style = "tango"
90-
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
91-
# guessSyntax = "true"
92-
guessSyntax = "false"
85+
[markup.goldmark]
86+
[markup.goldmark.renderer]
87+
unsafe = true
88+
[markup.highlight]
89+
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
90+
style = "tango"
91+
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
92+
# guessSyntax = "true"
93+
guessSyntax = "false"
9394

9495
# Everything below this are Site Params
9596

@@ -178,17 +179,28 @@ enable = false
178179
[params.links]
179180
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
180181
[[params.links.developer]]
181-
name ="Twitter"
182-
url = "https://twitter.com/asdine_"
183-
icon = "fab fa-twitter"
184-
desc = "Follow me on Twitter to get the latest news!"
182+
name = "Twitter"
183+
url = "https://twitter.com/asdine_"
184+
icon = "fab fa-twitter"
185+
desc = "Follow me on Twitter to get the latest news!"
185186
[[params.links.developer]]
186-
name = "GitHub"
187-
url = "https://github.com/genjidb/genji"
188-
icon = "fab fa-github"
189-
desc = "Development takes place here!"
187+
name = "GitHub"
188+
url = "https://github.com/genjidb/genji"
189+
icon = "fab fa-github"
190+
desc = "Development takes place here!"
190191
[[params.links.developer]]
191-
name = "Slack"
192-
url = "https://gophers.slack.com/messages/CKPCYQFE0"
193-
icon = "fab fa-slack"
194-
desc = "Chat with other project developers"
192+
name = "Slack"
193+
url = "https://gophers.slack.com/messages/CKPCYQFE0"
194+
icon = "fab fa-slack"
195+
desc = "Chat with other project developers"
196+
197+
[module]
198+
[module.hugoVersion]
199+
extended = true
200+
min = "0.73.0"
201+
[[module.imports]]
202+
path = "github.com/google/docsy"
203+
disable = false
204+
[[module.imports]]
205+
path = "github.com/google/docsy/dependencies"
206+
disable = false

go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/genjidb/docs
2+
3+
go 1.18
4+
5+
require github.com/google/docsy v0.3.0 // indirect

go.sum

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/google/docsy v0.3.0 h1:wR0e0xJ6qIj/RPq2AP1Ufm44BCak9Sl72H2BWNAc/JA=
3+
github.com/google/docsy v0.3.0/go.mod h1:opkofZo7WlNw+/pjrHSC2nAHJHQ6Xnms9vtL/htBvds=
4+
github.com/google/docsy/dependencies v0.3.0/go.mod h1:2zZxHF+2qvkyXhLZtsbnqMotxMukJXLaf8fAZER48oo=
5+
github.com/twbs/bootstrap v4.6.1+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

0 commit comments

Comments
 (0)