Preview and build locally
The kgateway documentation is built by using the static site generator Hugo. As you write your content, you can locally preview your changes.
Before you begin
-
Download and install the
hugoCLI version 0.135.0. Make sure to download theextendedversion to ensure all features are available that are required to build the site. -
Make sure that
hugois installed.hugo versionExample output:
hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab+extended darwin/arm64 BuildDate=2024-09-27T13:17:08Z VendorInfo=gohugoio -
Install the Node.js dependencies. If you do not have Node.js and
npminstalled on your machine, follow the instructions here to install them.npm install
Build the site locally
-
Build the site locally.
hugo server -D -
Open the site. The local preview is available at localhost:1313.