Commit 0797c5d
committed
Add auto-generated API documentation using crd-ref-docs
This commit addresses issue #2090 by adding auto-generated API reference
documentation for the NFD CRDs using elastic/crd-ref-docs.
Changes:
- Add Makefile target 'generate-api-docs' to generate API documentation
- Add crd-ref-docs configuration at hack/crd-ref-docs/config.yaml
- Generate initial API reference for api/nfd/v1alpha1 at
docs/reference/nfd-api-reference.md
The generated documentation includes all NFD Custom Resource types:
- NodeFeature / NodeFeatureSpec
- NodeFeatureRule / NodeFeatureRuleSpec / Rule
- NodeFeatureGroup / NodeFeatureGroupSpec / GroupRule
- Supporting types: FeatureMatcher, MatchExpression, etc.
Note: api/image-compatibility types are not CRDs and thus not documented
by this tool (they lack kubebuilder markers).1 parent 89093ff commit 0797c5d
File tree
4 files changed
+506
-0
lines changed- docs
- reference
- hack/crd-ref-docs
4 files changed
+506
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
159 | 175 | | |
160 | 176 | | |
161 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments