mirror of https://github.com/knative/docs.git
One plugin section to rule them all (fixes search) (#3645)
This commit is contained in:
parent
57fb9e4a5a
commit
a19b8604bf
|
@ -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 %}
|
||||||
```
|
```
|
||||||
|
|
24
mkdocs.yml
24
mkdocs.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue