The grpc.io site, built using Hugo and hosted on Netlify.
To build and serve the site, you'll need the latest LTS release of Node. Like Netlify, we use nvm, the Node Version Manager, to install and manage Node versions:
$ nvm install --lts
- Clone this repo.
- From a terminal window, change to the cloned repo directory.
- Get NPM packages and git submodules, including the the Docsy theme:
$ npm install
Run the following command to have Hugo generate the site files:
$ npm run build
You'll find the generated site files in the public
folder.
To locally serve the site at localhost:8888, run the following command:
$ npm run serve
If you submit a PR, Netlify will automatically create a deploy preview so that you can review your changes. Once your PR is merged, Netlify automcatically deploys to the production site grpc.io.
Note: PR previews include draft pages, but production builds do not.
You can see deploy logs and more from the Netlify gRPC Team dashboard, provided you have the necessary permissions.
If you have htmltest in your path, then you can check the site's internal links by running this command:
$ npm run check-links
You can check all links (internal and external) as well:
$ npm run check-links:all
We welcome issues and PRs! For details, see Contribute.