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

Code samples

The following use the readfile shortcode

Shortcode: {{< readfile file="../hack/reference-docs-gen-config.json" code=“true” lang=“json” >}} renders as:

{
    "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": "^knative\\.dev/pkg/apis/duck",
            "docsURLTemplate": "https://pkg.go.dev/knative.dev/pkg/apis/duck/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}"
        },
        {
            "typeMatchPrefix": "^knative\\.dev/pkg/apis\\.URL$",
            "docsURLTemplate": "https://pkg.go.dev/knative.dev/pkg/apis#URL"
        },
        {
            "typeMatchPrefix": "^knative\\.dev/networking/pkg/apis/networking",
            "docsURLTemplate": "https://pkg.go.dev/knative.dev/networking/pkg/apis/networking#{{.TypeIdentifier}}"
        },
        {
            "typeMatchPrefix": "^time\\.Duration$",
            "docsURLTemplate": "https://golang.org/pkg/time/#Duration"
        }
    ],
    "typeDisplayNamePrefixOverrides": {
        "k8s.io/api/": "Kubernetes ",
        "k8s.io/apimachinery/pkg/apis/": "Kubernetes "
    },
    "markdownDisabled": false
}

Shortcode: {{< readfile file="./serving/samples/cloudevents/cloudevents-nodejs/service.yaml" code=“true” lang=“yaml” >}} renders as:

# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: cloudevents-nodejs
  namespace: default
spec:
  template:
    spec:
      containers:
      - image: <registry/repository/image:tag>
        # Uncomment this to send events somewhere.
        # env:
        # - name: K_SINK
        #   value: http://default-broker.default.svc.cluster.local

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)

  1. Shortcode: {{< version >}} renders as: v0.22.0

    Example: kubectl apply version/v0.22.0/is-the-latest/docs-version.yaml

  2. Shortcode: {{< version override=“v0.2.2” >}} renders as: v0.2.2

    Example: kubectl apply the-version-override/v0.2.2/is-manually-specified.yaml

  3. Shortcode: {{< version patch=".20" >}} renders as: v0.22.20

    Example: kubectl apply this-is-a-point-release/v0.22.20/filename.yaml

  4. Shortcode: {{< branch >}} renders as: main

    Example: git clone -b "main" https://github.com/knative/docs knative-docs

  5. Shortcode: {{< branch override=“release-0.NEXT” >}} renders as: 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.

This is a regular example tab.
# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: multi-container
  namespace: default
spec:
  template:
    spec:
      containers:
      - image: docker.io/savita3020/servingcontainer
        ports:
          - containerPort: 8881
      - image: docker.io/savita3020/sidecarcontainer