Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify: use docs-install before building the User Guide #902

Merged
merged 1 commit into from
Feb 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

[build]
publish = "userguide/public"
command = "npm install && npm run build:preview"
command = "npm run docs-install && npm run build:preview"

[build.environment]
GO_VERSION = "1.17.7"
HUGO_THEME = "repo"

[context.production]
command = "npm install && npm run build:production"
command = "npm run docs-install && npm run build:production"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"repository": "github:google/docsy",
"scripts": {
"_docs": "cd userguide && npm run",
"docs-install": "cd userguide && npm install",
"build:preview": "npm run _docs build:preview",
"build:production": "npm run _docs build:production",
"build": "npm run _docs build",
"docs-install": "cd userguide && npm install",
"predocs-install": "npm install",
"serve": "npm run _docs serve",
"submodule:get": "git submodule update --init --recursive --depth 1",
"submodule:update": "git submodule update --remote --recursive --depth 1"
Expand Down