Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update api reference doc generation config #165

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update api reference doc generation config
  • Loading branch information
addozhang committed Jan 5, 2024
commit 9a52f95bdeaebfc9999b6fe4a68cb606d9212dda
11 changes: 10 additions & 1 deletion docs/api_reference/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$",
"docsURLTemplate": "https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"
},
{
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/runtime\\.RawExtension",
"docsURLTemplate": "https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime#RawExtension"
},
{
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
"docsURLTemplate": "https://v1-20.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
"docsURLTemplate": "https://v1-26.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
}
,
{
"typeMatchPrefix": "^sigs\\.k8s\\.io/gateway-api/apis/",
"docsURLTemplate": "https://pkg.go.dev/sigs.k8s.io/gateway-api@v0.7.1/apis/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}"
}
],
"typeDisplayNamePrefixOverrides": {
Expand Down