Style Guide ​
This page gives writing style guidelines for the Gardener documentation. For formatting guidelines, see the Formatting Guide.
These are guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a Pull Request.
Structure ​
Documentation Types Overview ​
The following table summarizes the types of documentation and their mapping to the UA taxonomy. Every topic you create will fall into one of these categories.
| Gardener Content Type | Definition | Example | Content | Comparable UA Content Type |
|---|---|---|---|---|
| Concept | Introduce a functionality or concept; covers background information. | Services | Overview, Relevant headings | Concept |
| Reference | Provide a reference, for example, list all command line options of gardenctl and what they are used for. | Overview of kubectl | Relevant headings | Reference |
| Task | A step-by-step description that allows users to complete a specific task. | Upgrading kubeadm clusters | Overview, Prerequisites, Steps, Result | Complex Task |
| Trail | Collection of all other content types to cover a big topic. | Custom Networking | None | Maps |
| Tutorial | A combination of many tasks that allows users to complete an example task with the goal to learn the details of a given feature. | Deploying Cassandra with a StatefulSet | Overview, Prerequisites, Tasks, Result | Tutorial |
See the Contributors Guide for more details on how to produce and contribute documentation.
Structure and File Names ​
When creating a new documentation topic or folder, it is important to adhere to a consistent and clear naming convention. This ensures that topics are easily identifiable and helps maintain a well-structured documentation repository. The title of your newly created content should be in dash-case (also known as kebab-case). This means each word in the file or folder name should be separated by a hyphen (-), and all letters should be in lowercase.
By default, this will also be the title of your topic in the website.
For example, a new-topic-title.md filename will generate the topic's title as "New Topic Title". You can customize the title by adding front matter to the top of your Markdown file.
If you would like to have a newly added folder appear in the website navigation, you need to add an index.md file to it. As folders are hidden by default, the index file sets the title, description, weight, and other possible properties of the section. For more information, see the Front Matter section.
Topic Structure ​
When creating a topic, you will need to follow a certain structure. A topic generally comprises of, in order:
- Metadata (Specific for
.mdfiles in Gardener) - Additional information about the topic - Title - A short, descriptive name for the topic
- Content - The main part of the topic. It contains all the information relevant to the user
- Concept content: Overview, Relevant headings
- Task content: Overview, Prerequisites, Steps, Result
- Reference content: Relevant headings
- Related Links (Optional) - A part after the main content that contains links that are not a part of the topic, but are still connected to it
You can use the provided content description files as a template for your own topics.
Front Matter ​
Front matter is metadata placed at the top of a Markdown file. It is written as YAML and enclosed in leading and trailing triple-dashes (---). VitePress reads it to configure the page.
Sample codeblock:
---
title: Getting Started
description: Guides to get you accustomed with Gardener
weight: 10
aliases: ["/docs/old-getting-started-url"]
---
<topic-content>The most essential properties to consider are:
titleoverrides the title shown in the browser tab and the page's label in the sidebar. By default both are derived from the page's first H1 heading, so you only needtitlewhen you want them to differ from that heading. It does not render a heading on the page — write a# Headingin the body for that.descriptiondescribes the content. It is used as the page's meta description and may be rendered in the UI.weighta positive integer that controls the ordering of the content in navigation structures. The lower it is, the higher the topic appears. Topics with no weight are sorted alphabetically, below any weighted topics. (weightis specific to this project's sidebar generation, not a built-in VitePress field.)aliasesan array of old paths for the topic. These are turned into redirects, so existing bookmarks keep working after you rename or move a topic. (aliasesis specific to this project, not a built-in VitePress field.)
For the full list of fields supported by VitePress, refer to VitePress front matter reference.
Blogs ​
If you are writing a blog, please add this additional metadata so that it can be shown as intended:
title: Blog Title
newsSubtitle: October 01, 2025
authors:
- avatar: <author-profile-picture-link>
login: <author-GitHub-name>
name: <author-name>
tags:
- <tag-1>
- <tag-2>
- ...For more information on the currently used tags, see Blog Tags Reference.
Images ​
If you want to add an image to your topic, it is recommended to follow the guidelines outlined in the Images documentation.
General Tips ​
- Try to create a succinct title and an informative description for your topics
- If a topic feels too long, it might be better to split it into a few different ones
- Avoid having have more than ten steps in one a task topic
- When writing a tutorial, link the tasks used in it instead of copying their content
Language and Grammar ​
Language ​
- Gardener documentation uses US English
- Keep it simple and use words that non-native English speakers are also familiar with
- Use the Merriam-Webster Dictionary when checking the spelling of words
Writing Style ​
- Write in a conversational manner and use simple present tense
- Be friendly and refer to the person reading your content as "you", instead of standard terms such as "user"
- Use an active voice - make it clear who is performing the action
Creating Titles and Headings ​
- Use title case when creating titles or headings
- Avoid adding additional formatting to the title or headings
- Concept and reference topic titles should be simple and succinct
- Task and tutorial topic titles begin with a verb