mirror of https://github.com/google/docsy.git
Upgrade to Hugo 0.125.4 (#1950)
This commit is contained in:
parent
bedcb9cdcb
commit
e9eca0fcb3
|
@ -43,7 +43,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
"hugo-extended": "0.125.2",
|
"hugo-extended": "github:chalin/hugo-extended#v0.125.4",
|
||||||
"markdown-link-check": "^3.11.2",
|
"markdown-link-check": "^3.11.2",
|
||||||
"mkdirp": "^3.0.1",
|
"mkdirp": "^3.0.1",
|
||||||
"prettier": "^3.2.5"
|
"prettier": "^3.2.5"
|
||||||
|
|
|
@ -6,7 +6,11 @@ set -e
|
||||||
|
|
||||||
PKG_JSON=${1:-package.json}
|
PKG_JSON=${1:-package.json}
|
||||||
|
|
||||||
if ! npm ls hugo-extended; then
|
if ! npm ls hugo-extended2; then
|
||||||
_HUGO_EXTENDED_PKG=`perl -ne 'print "$1\@$2" if /"(hugo-extended)":\s*"\D*(.+?)"/' $PKG_JSON`
|
_HUGO_EXTENDED_VERS=`perl -ne 'print "$1" if /"hugo-extended":\s*"\D*(.+?)"/' $PKG_JSON`
|
||||||
(set -x && npm install --save-exact -D $_HUGO_EXTENDED_PKG --omit=optional)
|
set -x
|
||||||
|
if ! npm install --save-exact -D hugo-extended@$_HUGO_EXTENDED_VERS --omit=optional; then
|
||||||
|
echo "Trying fork instead:"
|
||||||
|
npm install --save-exact -D chalin/hugo-extended#v$_HUGO_EXTENDED_VERS --omit=optional
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue