Skip to content

Commit d3ad0fd

Browse files
authored
Netlify: use docs-install before building the User Guide (#902)
1 parent 5fe2123 commit d3ad0fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

netlify.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
[build]
55
publish = "userguide/public"
6-
command = "npm install && npm run build:preview"
6+
command = "npm run docs-install && npm run build:preview"
77

88
[build.environment]
99
GO_VERSION = "1.17.7"
1010
HUGO_THEME = "repo"
1111

1212
[context.production]
13-
command = "npm install && npm run build:production"
13+
command = "npm run docs-install && npm run build:production"

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"repository": "github:google/docsy",
55
"scripts": {
66
"_docs": "cd userguide && npm run",
7-
"docs-install": "cd userguide && npm install",
87
"build:preview": "npm run _docs build:preview",
98
"build:production": "npm run _docs build:production",
109
"build": "npm run _docs build",
10+
"docs-install": "cd userguide && npm install",
11+
"predocs-install": "npm install",
1112
"serve": "npm run _docs serve",
1213
"submodule:get": "git submodule update --init --recursive --depth 1",
1314
"submodule:update": "git submodule update --remote --recursive --depth 1"

0 commit comments

Comments
 (0)