One plugin section to rule them all (fixes search) (#3645)

This commit is contained in:
Julian Friedman 2021-05-20 23:34:17 +01:00 committed by GitHub
parent 57fb9e4a5a
commit a19b8604bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 42 deletions

View File

@ -13,10 +13,15 @@ To obtain the version of the Knative component that you have running on your clu
=== "Knative Serving" === "Knative Serving"
``` ```
{% raw %}
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}' kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'
{% endraw %}
``` ```
=== "Knative Eventing" === "Knative Eventing"
``` ```
{% raw %}
kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}' kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}'
{% endraw %}
``` ```

View File

@ -231,18 +231,6 @@ theme:
- navigation.indexes - navigation.indexes
- navigation.top - navigation.top
plugins:
- search
- macros:
module_name: hack/macros
- exclude:
glob:
# Exclude files that contain hugo specific shortcodes
# (either the include shortcode or not-converted-yet tabs).
- smoketest.md
- "*/serving-api.md" # shortcode to serving.md
- "*/_index.md" # pretty much all shortcodes
markdown_extensions: markdown_extensions:
# - mdx_include: # - mdx_include:
# base_path: docs # base_path: docs
@ -267,8 +255,18 @@ markdown_extensions:
permalink: true permalink: true
plugins: plugins:
- search
- macros:
module_name: hack/macros
- exclude:
glob:
# Exclude files that contain hugo specific shortcodes
# (either the include shortcode or not-converted-yet tabs).
- smoketest.md
- "*/serving-api.md" # shortcode to serving.md
- "*/_index.md" # pretty much all shortcodes
- awesome-pages: - awesome-pages:
filename: .index filename: ".index"
collapse_single_pages: true collapse_single_pages: true
strict: false strict: false
- redirects: - redirects: