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"
```
{% raw %}
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'
{% endraw %}
```
=== "Knative Eventing"
```
{% raw %}
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.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:
# - mdx_include:
# base_path: docs
@ -267,8 +255,18 @@ markdown_extensions:
permalink: true
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:
filename: .index
filename: ".index"
collapse_single_pages: true
strict: false
- redirects: