Skip to content

Commit fb41620

Browse files
authored
Update Docsy to v0.13.0, add extra NPM scripts (#397)
1 parent ccf64ad commit fb41620

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/google/docsy-example
22

33
go 1.12
44

5-
require github.com/google/docsy v0.12.1-0.20251124130714-52aa6778d549
5+
require github.com/google/docsy v0.13.0

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
22
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3-
github.com/google/docsy v0.12.1-0.20251124122047-ec833d267afd h1:zxvjwqhLPkJdwF4BSGq+WdiUwboPmAHFMKoLOD3gfIQ=
4-
github.com/google/docsy v0.12.1-0.20251124122047-ec833d267afd/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
5-
github.com/google/docsy v0.12.1-0.20251124130714-52aa6778d549 h1:Ri4vQuEu3tMl4fOA9F6PvRAkDMw7Y//BhCs/JbUaK4Y=
6-
github.com/google/docsy v0.12.1-0.20251124130714-52aa6778d549/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
3+
github.com/google/docsy v0.13.0 h1:Y1oy5SmQ0ikJJsvkuefEVZMj0MTXLmVfpXbt7Ytc7rc=
4+
github.com/google/docsy v0.13.0/go.mod h1:1Fj1W1O3esZh7IBQ8XAYtxtg10udBXuGI89+LUQc1AU=
75
github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsy-example-site",
3-
"version": "0.13.0-pre-release",
3+
"version": "0.13.0",
44
"version.next": "0.13.1-dev-unreleased",
55
"description": "Example site that uses Docsy theme for technical documentation.",
66
"repository": "github:google/docsy-example",
@@ -14,23 +14,29 @@
1414
"_check:format": "npx prettier --check .",
1515
"_check:links": "echo IMPLEMENTATION PENDING for check-links; echo",
1616
"_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"",
17-
"_hugo": "hugo --cleanDestinationDir",
17+
"_diff:check": "git diff --name-only --exit-code",
18+
"_fix:permissions": "chmod -R u+w public/* 2>/dev/null || true",
19+
"_get:docsy": "hugo mod get github.com/google/docsy@v$npm_package_version",
1820
"_hugo-dev": "npm run _hugo -- -e dev -DFE",
21+
"_hugo": "hugo --cleanDestinationDir",
1922
"_local": "npx cross-env HUGO_MODULE_WORKSPACE=docsy.work",
2023
"_serve": "npm run _hugo-dev -- --minify serve --renderToMemory",
2124
"build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
2225
"build:production": "npm run _hugo -- --minify",
2326
"build": "npm run _build -- ",
2427
"check:links:all": "HTMLTEST_ARGS= npm run _check:links",
2528
"check:links": "npm run _check:links",
29+
"ci:prepare": "npm run _get:docsy && hugo mod graph && hugo mod tidy",
30+
"ci:test": "npm run ci:prepare && npm run fix:format && npm run test && npm run _diff:check",
2631
"clean": "rm -Rf public/* resources",
2732
"fix:format": "npm run _check:format -- --write",
2833
"local": "npm run _local -- npm run",
2934
"make:public": "git init -b main public",
30-
"precheck:links:all": "npm run build",
31-
"precheck:links": "npm run build",
35+
"post_hugo": "npm run _fix:permissions",
3236
"postbuild:preview": "npm run _check:links",
3337
"postbuild:production": "npm run _check:links",
38+
"precheck:links:all": "npm run build",
39+
"precheck:links": "npm run build",
3440
"serve": "npm run _serve",
3541
"test": "npm run check:links",
3642
"update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest",

0 commit comments

Comments
 (0)