Skip to content

Commit

Permalink
Offer Docsy as a single Hugo module (google#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 3, 2023
1 parent df71c19 commit 39f0ff5
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 52 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 0 additions & 42 deletions dependencies/config.toml

This file was deleted.

8 changes: 0 additions & 8 deletions dependencies/go.mod

This file was deleted.

19 changes: 19 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,22 @@ module:
target: assets/vendor/Font-Awesome
- source: ../../node_modules/@fortawesome/fontawesome-free/webfonts
target: static/webfonts
# Mounts for module installations,
# needed to work around a known bug in Go’s module management.
- source: assets/bootstrap/scss/_vendor
target: assets/vendor/bootstrap/scss/vendor
imports:
- path: github.com/twbs/bootstrap
disable: false
mounts:
- source: scss
target: assets/vendor/bootstrap/scss
- source: dist/js
target: assets/vendor/bootstrap/dist/js
- path: github.com/FortAwesome/Font-Awesome
disable: false
mounts:
- source: scss
target: assets/vendor/Font-Awesome/scss
- source: webfonts
target: static/webfonts
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = "userguide/public"
command = "npm run docs-install && npm run build:preview"

[build.environment]
GO_VERSION = "1.19.5"
GO_VERSION = "1.20.1"
HUGO_THEME = "repo"

[context.production]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"check:links": "npm run cd:docs check:links",
"docs-install": "npm run _cd:docs -- npm install",
"get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
"postinstall": "cd .. && npx mkdirp github.com/FortAwesome/Font-Awesome && npx mkdirp github.com/twbs/bootstrap",
"serve": "npm run cd:docs serve",
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest",
"update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest"
Expand All @@ -27,7 +28,7 @@
"bootstrap": "5.2.3"
},
"devDependencies": {
"hugo-extended": "0.110.0"
"hugo-extended": "0.111.1"
},
"engines": {
"node": ">=18"
Expand Down

0 comments on commit 39f0ff5

Please sign in to comment.