We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.
Spacer Title
Hidden smoketest page
Use this page to test your changes and ensure that there are not any issues, unwanted behaviors, or regression that are caused by your changes.
Below are a set of site elements that have causes issues in the past.
Lists
- Top level:
- A nested list item.
- another level lower
- Nested code sample:
Shortcode:{
{< readfile file=”./hack/reference-docs-gen-config.json” code="true” lang="json” >}
}
Example:{ "hideMemberFields": [ "TypeMeta" ], "hideTypePatterns": [ "ParseError$", "List$" ], "externalPackages": [ { "typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$", "docsURLTemplate": "https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration" }, { "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}}" }, { "typeMatchPrefix": "^github\\.com/knative/pkg/apis/duck/", "docsURLTemplate": "https://godoc.org/github.com/knative/pkg/apis/duck/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}" } ], "typeDisplayNamePrefixOverrides": { "k8s.io/api/": "Kubernetes ", "k8s.io/apimachinery/pkg/apis/": "Kubernetes " }, "markdownDisabled": false }
- This should be the third bullet (3.).
- More nested code:
Shortcode:{
{< readfile file="Gopkg.toml” code="true” lang="toml” >}
}
Example:Something's not right. The
Gopkg.toml
file was not found. - Another nested ordered list item (2.)
- More nested code:
- A nested list item.
Code samples
The following use the
readfile
shortcode
{
"hideMemberFields": [
"TypeMeta"
],
"hideTypePatterns": [
"ParseError$",
"List$"
],
"externalPackages": [
{
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$",
"docsURLTemplate": "https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"
},
{
"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}}"
},
{
"typeMatchPrefix": "^github\\.com/knative/pkg/apis/duck/",
"docsURLTemplate": "https://godoc.org/github.com/knative/pkg/apis/duck/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}"
}
],
"typeDisplayNamePrefixOverrides": {
"k8s.io/api/": "Kubernetes ",
"k8s.io/apimachinery/pkg/apis/": "Kubernetes "
},
"markdownDisabled": false
}
Something's not right. The Gopkg.toml
file was not found.
Install version numbers and Clone branch commands
Examples of how the manual and dynamic version number or branch name can be
added in-line with the
version
shortcode
(uses the define values from
config/_default/params.toml)
-
Shortcode:
{
{% version %}
}Example:
kubectl apply version/Archives.0/is-the-latest/docs-version.yaml
-
Shortcode:
{
{% version override="v0.2.2” %}
}Example:
kubectl apply the-version-override/v0.2.2/is-manually-specified.yaml
-
Shortcode:
{
{% version patch=”.20” %}
}Example:
kubectl apply this-is-a-point-release/Archives.20/filename.yaml
-
Shortcode:
{
{% branch %}
}Example:
git clone -b "" https://github.com/knative/docs knative-docs
-
Shortcode:
{
{% branch override="release-0.NEXT” %}
}Example:
git clone -b "release-0.NEXT" https://github.com/knative/docs knative-docs
Tabs
How to include tabbed content in your page. Note that you can set a default tab.
(View the raw version of this page for example syntax; it doesn’t render well here.)
This is a regular example tab.
To install Knative components on your Kubernetes cluster, follow the installation guide or installation guide with Knative Operators.
Note if you are upgrading an existing installation, follow the instructions here.
To install the Knative CLI, follow the installation guide.