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 authored and chalin committed Nov 9, 2023
1 parent eab080c commit 0fe79d0
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 52 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 0 additions & 43 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 @@ -42,3 +42,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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"docs-install": "npm run _cd:docs -- npm install",
"fix:format": "npm run _check:format -- --write",
"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",
"test": "npm run cd:docs test",
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest",
Expand Down

0 comments on commit 0fe79d0

Please sign in to comment.