Skip to content

Commit 1fa356e

Browse files
committed
[infra] Hugo config clean up and NPM script adjustments
1 parent c1126f1 commit 1fa356e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hugo.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ services:
201201
# The following is a placeholder (fake) ID useful for local test builds. The
202202
# real ID is set in the Netlify config. For details, see
203203
# https://github.com/open-telemetry/opentelemetry.io/issues/1626.
204-
id: UA-00000000-0 # TODO: switch to G-0000000000 once we get confirmation that it's ok to do so
204+
id: G-0000000000
205205

206206
security:
207207
funcs: # cspell:disable-line

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"scripts": {
77
"__check:links": "make --keep-going check-links",
8-
"_build": "hugo --cleanDestinationDir -e dev -DFE --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
8+
"_build": "npm run _hugo -- -e dev -DFE --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
99
"_check:format:any": "npx prettier --check --ignore-path ''",
1010
"_check:format": "npx prettier --check .",
1111
"_check:links--md": "npx markdown-link-check --config .markdown-link-check.json *.md",
@@ -20,6 +20,7 @@
2020
"_get:no": "echo SKIPPING get operation",
2121
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
2222
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
23+
"_hugo": "hugo --cleanDestinationDir",
2324
"_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'",
2425
"_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'",
2526
"_ls-bad-filenames": "find assets content static -name '*_*' ! -name '_*'",
@@ -32,7 +33,7 @@
3233
"_sync": "./scripts/sync-submodules.pl",
3334
"all": "bash -c 'x=0; for c in \"$@\"; do npm run $c || x=$((x+1)); done; ((!x)) || (echo \"ERROR: some scripts failed!\" && exit 1)' -",
3435
"build:preview": "set -x && npm run _build -- --minify",
35-
"build:production": "hugo --cleanDestinationDir --minify",
36+
"build:production": "npm run _hugo --minify",
3637
"build": "npm run _build",
3738
"cd:public": "cd public &&",
3839
"check:filenames": "test -z \"$(npm run -s _ls-bad-filenames)\" || npm run -s _filename-error",

0 commit comments

Comments
 (0)