Skip to content

Commit

Permalink
[infra] Hugo config clean up and NPM script adjustments (open-telemet…
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored May 16, 2024
1 parent 7244f2d commit 06d5ed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ services:
# The following is a placeholder (fake) ID useful for local test builds. The
# real ID is set in the Netlify config. For details, see
# https://github.com/open-telemetry/opentelemetry.io/issues/1626.
id: UA-00000000-0 # TODO: switch to G-0000000000 once we get confirmation that it's ok to do so
id: G-0000000000

security:
funcs: # cspell:disable-line
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"scripts": {
"__check:links": "make --keep-going check-links",
"_build": "hugo --cleanDestinationDir -e dev -DFE --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
"_build": "npm run _hugo -- -e dev -DFE --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
"_check:format:any": "npx prettier --check --ignore-path ''",
"_check:format": "npx prettier --check .",
"_check:links--md": "npx markdown-link-check --config .markdown-link-check.json *.md",
Expand All @@ -20,6 +20,7 @@
"_get:no": "echo SKIPPING get operation",
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
"_hugo": "hugo --cleanDestinationDir",
"_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'",
"_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'",
"_ls-bad-filenames": "find assets content static -name '*_*' ! -name '_*'",
Expand All @@ -32,7 +33,7 @@
"_sync": "./scripts/sync-submodules.pl",
"all": "bash -c 'x=0; for c in \"$@\"; do npm run $c || x=$((x+1)); done; ((!x)) || (echo \"ERROR: some scripts failed!\" && exit 1)' -",
"build:preview": "set -x && npm run _build -- --minify",
"build:production": "hugo --cleanDestinationDir --minify",
"build:production": "npm run _hugo --minify",
"build": "npm run _build",
"cd:public": "cd public &&",
"check:filenames": "test -z \"$(npm run -s _ls-bad-filenames)\" || npm run -s _filename-error",
Expand Down

0 comments on commit 06d5ed3

Please sign in to comment.