Repository for the gRPC website and documentation
Go to file
Patrice Chalin fe1bb38072
Upgrade packages, including hugo-extended (#893)
* Upgrade packages, including hugo-extended
* Add extra margin due to markdown processor changes
2021-11-09 16:52:06 -05:00
.github/ISSUE_TEMPLATE Issue template: drop title from blank template 2020-03-26 11:09:25 -04:00
archetypes More blog post cleanup 2020-03-10 11:36:12 -07:00
assets Upgrade packages, including hugo-extended (#893) 2021-11-09 16:52:06 -05:00
content/en Docs: move menu data into front matter (#897) 2021-11-09 16:26:00 -05:00
data Dart 2.12+ is required (#756) 2021-04-22 08:55:42 -04:00
includes Rework Google-specific language (#167) 2020-07-07 15:35:56 -04:00
layouts Render-link hook: support a no-icon class (#857) 2021-09-17 16:56:49 -04:00
static Wireshark blog post (#625) 2021-02-03 13:55:35 -05:00
themes Make top-nav opaque (#868) 2021-09-22 19:26:08 -04:00
.browerslistrc Adjust column width for main documentation text (#186) 2020-04-13 17:54:57 -04:00
.cspell.json Fix the relative import order of variables and variables_project (#702) 2021-03-05 17:21:27 -05:00
.editorconfig Convert contributing guide to Markdown 2020-03-09 16:01:17 -07:00
.gitignore Upgrade packages, including hugo-extended (#893) 2021-11-09 16:52:06 -05:00
.gitmodules Switch to grpc/grpc.io-docsy (#710) 2021-03-09 11:06:10 -05:00
.htmltest.yml Upgrade packages, including hugo-extended (#893) 2021-11-09 16:52:06 -05:00
.nvmrc Build config: upgrade Hugo and Node, and other cleanup (#629) 2021-02-05 11:17:01 -05:00
CODE-OF-CONDUCT.md Add GOVERNANCE.md, CODE-OF-CONDUCT.md and CONTRIBUTING.md 2019-09-26 15:56:15 -07:00
CONTRIBUTING.md Address grpc-community master to main branch rename (#723) 2021-03-11 19:58:24 -05:00
GOVERNANCE.md Address grpc-community master to main branch rename (#723) 2021-03-11 19:58:24 -05:00
LICENSE Use a single LICENSE file (#717) 2021-03-11 16:23:47 -05:00
MAINTAINERS.md Update MAINTAINERS.md (#736) 2021-03-24 12:05:46 -04:00
Makefile Enable link checking, but don't fail the build (#832) 2021-08-19 15:48:03 -04:00
README.md Enable link checking, but don't fail the build (#832) 2021-08-19 15:48:03 -04:00
config.yaml Docs: move menu data into front matter (#897) 2021-11-09 16:26:00 -05:00
netlify.toml Build config simplification & script tweak (#890) 2021-11-02 12:53:21 -04:00
package.json Upgrade packages, including hugo-extended (#893) 2021-11-09 16:52:06 -05:00

README.md

gRPC website

The grpc.io site, built using Hugo and hosted on Netlify.

Build prerequisites

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

Setup

  1. Clone or download a copy of this repo.
  2. From a terminal window, change to the cloned or unzipped repo directory.
  3. Get NPM packages and git submodules, including the the Docsy theme:
    $ npm install 
    

Build the site

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.

Serve the site locally

To locally serve the site at localhost:8888, run the following command:

$ npm run serve

Site deploys and PR previews

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

Contribute

We welcome issues and PRs! For details, see Contribute.