Skip to content

Commit f132463

Browse files
authored
Update Hugo theme (#4375)
Signed-off-by: Ian Maddaus <[email protected]>
1 parent af0d911 commit f132463

File tree

10 files changed

+111
-71
lines changed

10 files changed

+111
-71
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ nodrafts: bundle
2929
production: bundle
3030
hugo --gc --minify --enableGitInfo
3131

32+
static: bundle
33+
hugo --gc --enableGitInfo --cleanDestinationDir
34+
3235
deploy_preview: bundle
3336
hugo --gc --minify --enableGitInfo --buildFuture
3437

@@ -38,6 +41,9 @@ serve_ignore_vendor: bundle
3841
test_theme: bundle
3942
HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths "github.com/chef/chef-docs-theme"
4043

44+
test_theme_production: bundle
45+
HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths "github.com/chef/chef-docs-theme" --environment production
46+
4147
# https://gohugo.io/troubleshooting/audit/
4248
audit: bundle
4349
HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(<nil>\)|(&lt;nil&gt;)|hahahugo" public/

_vendor/github.com/chef/chef-docs-theme/assets/sass/_variables.scss

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/chef/chef-docs-theme/assets/sass/main.scss

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_tab-container.scss renamed to _vendor/github.com/chef/chef-docs-theme/assets/sass/partials/_foundation.scss

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/chef/chef-docs-theme/layouts/_default/sitemap.xml

Lines changed: 34 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/chef/chef-docs-theme/layouts/partials/version_numbers.html

Lines changed: 44 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241211025148-fb9cb1f3e2bc
1515
# github.com/chef/compliance-remediation-2022/docs-chef-io v0.0.0-20240313054833-ebbc45209efa
1616
# github.com/chef/license-service/docs-chef-io v0.0.0-20250120051510-ae1de80f4621
17-
# github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1
17+
# github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1
1818
# github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536
1919
# github.com/cowboy/jquery-hashchange v0.0.0-20100902193700-0310f3847f90
2020
# github.com/twitter/hogan.js v3.0.2+incompatible

config/_default/module.toml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,21 +344,26 @@ workspace = ''
344344
## Mount generated/genereted_content to content
345345
###
346346

347-
[[mounts]]
348-
source = "content"
349-
target = "content"
350-
351347
[[mounts]]
352348
source = "generated/generated_content"
353349
target = "content"
354350

351+
###
352+
## Mount generated/genereted_content to content
353+
###
355354

356-
## Mount static directory so the images work
355+
[[mounts]]
356+
source = "content"
357+
target = "content"
357358

358359
[[mounts]]
359360
source = "static"
360361
target = "static"
361362

363+
[[mounts]]
364+
source = "assets"
365+
target = "assets"
366+
362367
###
363368
# Mount Hugo theme
364369
###
@@ -413,3 +418,4 @@ workspace = ''
413418
[[mounts]]
414419
source = "node_modules/foundation-sites"
415420
target = "assets/sass/foundation-sites"
421+

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22
44

55
require (
66
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65 // indirect
7-
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1 // indirect
7+
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1 // indirect
88
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb // indirect
99
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20250113133946-a9e5b83f6b41 // indirect
1010
github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241211025148-fb9cb1f3e2bc // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65 h1:9B9FOW9UjPo2jG0KkqWzzW9fDv0fVMJ/mTdiHuUfGEA=
22
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65/go.mod h1:juvLC7Rt33YOCgJ5nnfl4rWZRAbSwqjTbWmcAoA0LtU=
3-
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1 h1:1ASUjeDFUBsmMX6mMlqxYN4mGtsS4lJ7AkyYiw3FOd4=
4-
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
3+
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1 h1:ucWIwBjzeFtn6QQodVdJYsayO9xApCDs+3Mwjx80NjI=
4+
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
55
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb h1:iDhOxNTUp7/SqANlBY9mP+/m8uQ5l74i+JqNqWKnji8=
66
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb/go.mod h1:gMSa25GUHmLimA0gjvRd3hs1buOBqkKPrdHzHvaJauY=
77
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20250113133946-a9e5b83f6b41 h1:MYst8yOE8q6p8vgfzSEq/X1SRDfRQuRzD1OdCPA1ZRo=

0 commit comments

Comments
 (0)