Skip to content

Commit

Permalink
Offer Docsy as a single Hugo module (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Nov 9, 2023
1 parent 5b83257 commit 0c0a035
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.21.4"
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 @@ -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",
"test": "npm run cd:docs test",
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest",
Expand Down

0 comments on commit 0c0a035

Please sign in to comment.