Node.js v18.18.2 or greaterhugo extended v0.135.0
[email protected]:solo-io/docs-kgw-agw-split.gitcd kgateway.devnpm installhugo server- Visit http://localhost:1313/
When opening a pull request, each of your commits must contain a Signed-off-by trailer to adhere to DCO requirements. This can be done by one of the following methods:
- Running
make init-git-hookswhich will configure your repo to use the version-controlled Git hooks from this repo (preferred) - Manually copying the .githooks/prepare-commit-msg file to
.git/hooks/prepare-commit-msgin your copy of this repo - Making sure to use the
-s/--signoffflag on each commit
Refer to the Documentation Contributor Guide for details on adding documentation, previewing locally, and a style guide.
- Add an entry to
data/labs.yamlwith a title, description, and href - Verify that the new lab appears correctly at http://localhost:1313/resources/labs/
- Create a thumbnail and add it to the
static/thumbnailsfolder. The image should be 960px by 540px (or an equivalent aspect ratio). Use kebab-case for the file name. - Add an entry to
data/videos.yamlwith a description, href, and thumbnailHref. The thumbnailHref should be/thumbnails/<your-image-name> - Verify that the new video appears correctly at http://localhost:1313/resources/videos/
- Edit
data/learningpaths.yamlas appropriate, for example, to add a lab for a specific lesson that doesn't currently reference one. - Verify that the change is reflected, by navigating to http://localhost:1313/learn/ and selecting the corresponding learning path.
- Create a new file in
content/blog. Use the blog title in kebab-case as the file name. - Fill out the blog with content in Markdown. You can use other blogs as an example of specific styling/features but more details are below.
- Verify that the new blog appears correctly at http://localhost:1313/blog/
Each blog is required to begin with the following header:
---
title: Your Title Here
toc: false
publishDate: 2025-01-28T00:00:00-00:00
author: Author Name
---
Note that a publishDate in the future will allow for an article to be available only after that date. This allows for multiple articles to be pushed/merged and go live at specific dates.
Blogs have full support for Markdown including headers, code blocks, quotes, ordered and unordered lists, etc.
To add an image to a blog:
- Add the image to
assets/blog. Use kebab-case for the file name. I generally use a short version of the blog title followed by a number for where the image appears in the blog. - Add
{{< reuse-image src="blog/<your-image-name>" width="750px" >}}to your blog where the image should appear. If you want to change the size of the image, you can modify thewidthproperty.