Skip to content

Commit

Permalink
Add link to APIExtensions in generated docs
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Feb 4, 2021
1 parent 3ea53bf commit 2ff7807
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/api/kustomize.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ bool
<td>
<code>patchesStrategicMerge</code><br>
<em>
[]k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON
<a href="https://pkg.go.dev/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1?tab=doc#JSON">
[]Kubernetes pkg/apis/apiextensions/v1.JSON
</a>
</em>
</td>
<td>
Expand Down Expand Up @@ -611,7 +613,9 @@ bool
<td>
<code>patchesStrategicMerge</code><br>
<em>
[]k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON
<a href="https://pkg.go.dev/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1?tab=doc#JSON">
[]Kubernetes pkg/apis/apiextensions/v1.JSON
</a>
</em>
</td>
<td>
Expand Down
5 changes: 5 additions & 0 deletions hack/api-docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$",
"docsURLTemplate": "https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"
},
{
"typeMatchPrefix": "^k8s\\.io/apiextensions-apiserver/pkg/apis/apiextensions/v1\\.JSON$",
"docsURLTemplate": "https://pkg.go.dev/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1?tab=doc#JSON"
},
{
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
Expand All @@ -31,6 +35,7 @@
"typeDisplayNamePrefixOverrides": {
"k8s.io/api/": "Kubernetes ",
"k8s.io/apimachinery/pkg/apis/": "Kubernetes ",
"k8s.io/apiextensions-apiserver/": "Kubernetes ",
"github.com/fluxcd/pkg/runtime/": "Runtime ",
"github.com/fluxcd/pkg/apis/kustomize/": "Kustomize ",
"github.com/fluxcd/pkg/apis/meta/": "Meta "
Expand Down

0 comments on commit 2ff7807

Please sign in to comment.