Repository for the gRPC website and documentation
Go to file
Xuan Wang 79b65fd0b4
Add gRPC Keepalive Youtube video link (#1370)
2024-10-09 10:22:18 -07: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 Modify banner styling (#1328) 2024-07-29 09:48:47 -07:00
content/en Add gRPC Keepalive Youtube video link (#1370) 2024-10-09 10:22:18 -07:00
data Remove CoreOS from testimonials (#1284) 2024-04-16 10:07:09 -07:00
includes Rework Google-specific language (#167) 2020-07-07 15:35:56 -04:00
layouts Update gRPConf banner 2024 to mention it is next week (#1347) 2024-08-19 14:08:24 -07:00
static Resize the gRPConf2023 blog images (#1221) 2023-11-02 19:32:32 -07:00
themes Modify banner styling (#1328) 2024-07-29 09:48:47 -07: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 More external links to ignore (#1036) 2022-08-14 18:27:28 -04: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 Link checking: update ignore rules for use with htmltest 0.16.0 (#1034) 2022-08-14 16:01:07 -04:00
README.md Add setup instructions for GA and GTM to README (#1332) 2024-07-29 09:49:31 -07:00
config.yaml Update version referenced by tutorials to v1.67.0 for gRPC-Java (#1367) 2024-10-01 08:06:03 -07:00
netlify.toml Redirect www to apex domain using Netlify (#1052) 2022-09-27 08:47:26 -04:00
package.json Upgrade grpc.io-docsy to match docsy 0.4.0 (#1027) 2022-08-12 09:55:36 -04: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. Install it using nvm, for example:

$ nvm install --lts

Setup

  1. Clone this repo.
  2. From a terminal window, change to the cloned 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

Setup Google Analytics (GA) and Google Tag Manager (GTM)

  1. Google Analytics (GA):

    • Follow the GA setup guide to create your account, property, and data stream.
    • Update config.yaml with your GA Measurement ID:
    params:
      googleAnalytics: "G-XXXXXXXXXX" # Replace with your GA Measurement ID
    

    Verify GA setup using real-time reports to ensure data from your website is being tracked.

  2. Google Tag Manager (GTM):

    • Follow the GTM setup guide to create your account and container.
    • Update config.yaml with your GTM ID:
    params:
      gtmID: "GTM-XXXXXXXX" # Replace with your GTM ID
    

    Check GTM setup using Preview mode and verify that Tag Assistant displays "Connected" for your website URL.

Build the site by setting Hugo environment to production to make sure GA and GTM work.

$ HUGO_ENV=production npm run serve

Site deploys and PR previews

If you submit a PR, Netlify will create a deploy preview so that you can review your changes. Once your PR is merged, Netlify deploys the updated site to the production server.

Note: PR previews include draft pages, but production builds do not.

To see deploy logs and more, visit project's dashboard -- Netlify login required.

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.