Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Hugo theme #4375

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ nodrafts: bundle
production: bundle
hugo --gc --minify --enableGitInfo

static: bundle
hugo --gc --enableGitInfo --cleanDestinationDir

deploy_preview: bundle
hugo --gc --minify --enableGitInfo --buildFuture

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

test_theme_production: bundle
HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths "github.com/chef/chef-docs-theme" --environment production

# https://gohugo.io/troubleshooting/audit/
audit: bundle
HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS=true HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true hugo && grep -inorE "<\!-- raw HTML omitted -->|ZgotmplZ|\[i18n\]|\(<nil>\)|(&lt;nil&gt;)|hahahugo" public/
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241211025148-fb9cb1f3e2bc
# github.com/chef/compliance-remediation-2022/docs-chef-io v0.0.0-20240313054833-ebbc45209efa
# github.com/chef/license-service/docs-chef-io v0.0.0-20250120051510-ae1de80f4621
# github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1
# github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1
# github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536
# github.com/cowboy/jquery-hashchange v0.0.0-20100902193700-0310f3847f90
# github.com/twitter/hogan.js v3.0.2+incompatible
Expand Down
16 changes: 11 additions & 5 deletions config/_default/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,26 @@ workspace = ''
## Mount generated/genereted_content to content
###

[[mounts]]
source = "content"
target = "content"

[[mounts]]
source = "generated/generated_content"
target = "content"

###
## Mount generated/genereted_content to content
###

## Mount static directory so the images work
[[mounts]]
source = "content"
target = "content"

[[mounts]]
source = "static"
target = "static"

[[mounts]]
source = "assets"
target = "assets"

###
# Mount Hugo theme
###
Expand Down Expand Up @@ -413,3 +418,4 @@ workspace = ''
[[mounts]]
source = "node_modules/foundation-sites"
target = "assets/sass/foundation-sites"

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65 // indirect
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1 // indirect
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1 // indirect
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb // indirect
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20250113133946-a9e5b83f6b41 // indirect
github.com/chef/compliance-profiles/docs-chef-io v0.0.0-20241211025148-fb9cb1f3e2bc // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65 h1:9B9FOW9UjPo2jG0KkqWzzW9fDv0fVMJ/mTdiHuUfGEA=
github.com/chef/automate/components/docs-chef-io v0.0.0-20250109084654-0c4aab636f65/go.mod h1:juvLC7Rt33YOCgJ5nnfl4rWZRAbSwqjTbWmcAoA0LtU=
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1 h1:1ASUjeDFUBsmMX6mMlqxYN4mGtsS4lJ7AkyYiw3FOd4=
github.com/chef/chef-docs-theme v0.0.0-20241206202643-d5ef90c514a1/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1 h1:ucWIwBjzeFtn6QQodVdJYsayO9xApCDs+3Mwjx80NjI=
github.com/chef/chef-docs-theme v0.0.0-20250131195626-789c6c10b6b1/go.mod h1:+Jpnv+LXE6dXu2xDcMzMc0RxRGuCPAoFxq5tJ/X6QpQ=
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb h1:iDhOxNTUp7/SqANlBY9mP+/m8uQ5l74i+JqNqWKnji8=
github.com/chef/chef-server/docs-chef-io v0.0.0-20250122051915-0ae871a00deb/go.mod h1:gMSa25GUHmLimA0gjvRd3hs1buOBqkKPrdHzHvaJauY=
github.com/chef/chef-workstation/docs-chef-io v0.0.0-20250113133946-a9e5b83f6b41 h1:MYst8yOE8q6p8vgfzSEq/X1SRDfRQuRzD1OdCPA1ZRo=
Expand Down