mirror of https://github.com/grpc/grpc.io.git
Build config: upgrade Hugo and Node, and other cleanup (#629)
This commit is contained in:
parent
38573cedbf
commit
66da54d10a
2
Makefile
2
Makefile
|
@ -1,5 +1,3 @@
|
||||||
HUGO_VERSION = 0.79.0
|
|
||||||
|
|
||||||
DRAFT_ARGS = --buildDrafts --buildFuture
|
DRAFT_ARGS = --buildDrafts --buildFuture
|
||||||
BUILD_ARGS = --minify
|
BUILD_ARGS = --minify
|
||||||
ifeq (draft, $(or $(findstring draft,$(HEAD)),$(findstring draft,$(BRANCH))))
|
ifeq (draft, $(or $(findstring draft,$(HEAD)),$(findstring draft,$(BRANCH))))
|
||||||
|
|
11
README.md
11
README.md
|
@ -6,8 +6,14 @@ The [grpc.io][] site, built using [Hugo][] and hosted on [Netlify][].
|
||||||
|
|
||||||
### 1. Install the following tools
|
### 1. Install the following tools
|
||||||
|
|
||||||
- **[Hugo, extended version][hugo-install]**
|
- **[Hugo, extended edition][hugo-install]**; match the version specified in
|
||||||
- **[nvm][]**, the Node Version Manager
|
[netlify.toml](netlify.toml)
|
||||||
|
- **Node**, the latest [LTS release][]. Like Netlify, we use **[nvm][]**, the
|
||||||
|
Node Version, to install and manage Node versions:
|
||||||
|
```console
|
||||||
|
$ nvm install --lts
|
||||||
|
$ nvm use --lts
|
||||||
|
```
|
||||||
|
|
||||||
### 2. Clone this repo _and_ its submodules
|
### 2. Clone this repo _and_ its submodules
|
||||||
|
|
||||||
|
@ -138,6 +144,7 @@ returned from `/grpc` links are false negatives that you can ignore.
|
||||||
[grpc.io]: https://grpc.io
|
[grpc.io]: https://grpc.io
|
||||||
[Hugo]: https://gohugo.io
|
[Hugo]: https://gohugo.io
|
||||||
[hugo-install]: https://gohugo.io/getting-started/installing
|
[hugo-install]: https://gohugo.io/getting-started/installing
|
||||||
|
[LTS release]: https://nodejs.org/en/about/releases/
|
||||||
[Netlify]: https://netlify.com
|
[Netlify]: https://netlify.com
|
||||||
[Netlify dev]: https://www.netlify.com/products/dev
|
[Netlify dev]: https://www.netlify.com/products/dev
|
||||||
[Netlify gRPC Team dashboard]: https://app.netlify.com/teams/grpc/overview
|
[Netlify gRPC Team dashboard]: https://app.netlify.com/teams/grpc/overview
|
||||||
|
|
|
@ -3,8 +3,7 @@ publish = "public"
|
||||||
command = "git submodule update --init --recursive --depth 1 && make production-build"
|
command = "git submodule update --init --recursive --depth 1 && make production-build"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.79.0"
|
HUGO_VERSION = "0.80.0"
|
||||||
NODE_VERSION = "12"
|
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "git submodule update --init --recursive --depth 1 && make preview-build"
|
command = "git submodule update --init --recursive --depth 1 && make preview-build"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^9.8.6",
|
"autoprefixer": "^9.8.6",
|
||||||
"netlify-cli": "^3.4.8",
|
"netlify-cli": "^3.5.0",
|
||||||
"postcss-cli": "^7.1.2"
|
"postcss-cli": "^7.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue