-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: brief info about contributing ref pages (#2446)
Signed-off-by: Meg McRoberts <meg.mcroberts@dynatrace.com> Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> Co-authored-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com> Co-authored-by: odubajDT <93584209+odubajDT@users.noreply.github.com>
- Loading branch information
1 parent
fb82346
commit 910b43a
Showing
2 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
docs/content/en/contribute/docs/templates/yaml-crd-ref-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: CRD name | ||
description: template for new CRD reference pages | ||
weight: 20 | ||
--- | ||
|
||
Copy this template to create a new CRD reference page. | ||
|
||
1. Replace the variable text in metadata with information for this page | ||
1. Delete these instructions from your file | ||
1. Populate the page with appropriate content | ||
|
||
## Synopsis | ||
|
||
```yaml | ||
apiVersion: <library> | ||
kind: <kind> | ||
metadata: | ||
name: <name> | ||
spec: | ||
... | ||
``` | ||
|
||
## Fields | ||
|
||
<!-- Detailed description of each field/parameter --> | ||
|
||
<!-- * **apiVersion** -- API version being used --> | ||
<!-- * **kind** -- Resource type. --> | ||
<!-- Must be set to `<xxx>` --> | ||
<!-- * **metadata** --> | ||
<!-- * **name** -- Unique name of this <resource>. --> | ||
<!-- Names must comply with the --> | ||
<!-- markdownlint-disable-next-line line-length --> | ||
<!-- [Kubernetes Object Names and IDs](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names) --> | ||
<!-- specification. --> | ||
<!-- * **spec** --> | ||
<!-- ... --> | ||
|
||
Fields should be clearly marked as to whether they are | ||
required or optional. | ||
If they are optional, | ||
text should explain the behavior when that field is not populated. | ||
|
||
## Usage | ||
|
||
<!-- How this CRD is "activated". For example, which event uses this CRD --> | ||
<!-- Instructions and guidelines for when and how to customize a CRD --> | ||
|
||
## Examples | ||
|
||
Include code snippets that illustrate | ||
how this resource is populated. | ||
Code examples should use be embedded links to example source code | ||
so that they will be updated automatically when changes are made to the example. | ||
|
||
## Files | ||
|
||
* Link to subsection for this resource in the "API Reference" | ||
|
||
## Differences between versions | ||
|
||
## See also | ||
|
||
* Links to related reference pages | ||
* Links to related User Guides and other documentation |