Skip to content

Commit 7e1d1ab

Browse files
authored
Update to Docsy 0.14.1, and update NPM scripts (#13)
1 parent 6fedbdb commit 7e1d1ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)",
77
"_check:links:internal": "npm run _check:links -- HTMLTEST_ARGS='--skip-external'",
88
"_check:links": "make --keep-going check-links",
9-
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"",
9+
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"",
1010
"_diff:check": "git diff --name-only --exit-code",
1111
"_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1",
1212
"_filenames-to-kebab-case": "find assets content -name '*_*' ! -name '[_.]*' -exec sh -c 'mv \"$1\" \"${1//_/-}\"' _ {} \\;",
@@ -15,7 +15,7 @@
1515
"_hugo": "hugo --cleanDestinationDir",
1616
"_ls-bad-filenames": "find assets content -name '*_*' ! -name '[_.]*'",
1717
"_serve": "npm run _hugo-dev -- serve --minify --disableFastRender --renderToMemory",
18-
"_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy'; rm -f package-lock.json",
18+
"_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy, removing package-lock.json'; rm -f package-lock.json",
1919
"build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
2020
"build:production": "npm run _hugo -- --minify",
2121
"build": "npm run _build --",
@@ -34,21 +34,21 @@
3434
"postinstall": "npm run _hugo-npm-setup",
3535
"precheck:links:all": "npm run build",
3636
"precheck:links": "npm run build",
37-
"preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set DOCSY_VERSION to desired Docsy version'",
37+
"preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set VERSION to desired Docsy version'",
3838
"random:text": "node scripts/random-text.js",
3939
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
4040
"serve": "npm run _serve",
4141
"test": "npm list docsy && npm run check:format && npm run check:links",
4242
"update:docsy:local": "npm run preupdate:docsy && npm install -D file:../docsy/docsy && npm list docsy",
43-
"update:docsy:main": "npm run preupdate:docsy && npm install -D google/docsy#main && npm list docsy",
44-
"update:docsy": "DOCSY_VERSION=${DOCSY_VERSION:-0.14.0} npm install -D google/docsy#semver:$DOCSY_VERSION && npm list docsy",
43+
"update:docsy:main": "VERSION=main npm run update:docsy",
44+
"update:docsy": "npm install -D google/docsy#${VERSION:-semver:0.14.1} && npm list docsy",
4545
"update:hugo": "npm install --save-exact -D hugo-extended@latest",
4646
"update:packages": "npx npm-check-updates --dep 'prod,dev,optional,peer' -u"
4747
},
4848
"devDependencies": {
4949
"autoprefixer": "^10.4.21",
5050
"cspell": "^9.0.2",
51-
"docsy": "github:google/docsy#semver:",
51+
"docsy": "github:google/docsy#semver:0.14.1",
5252
"hugo-extended": "0.155.3",
5353
"postcss-cli": "^11.0.1",
5454
"prettier": "^3.5.3"

0 commit comments

Comments
 (0)