Unverified Commit e864f657 authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

Fix docs search. (#29067)

parent b81a3e8b
2 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30064test
Showing with 2 additions and 4 deletions
+2 -4
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script> <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
{{- end }} {{- end }}
{{ if eq .Page.Layout "docs" -}} {{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
{{- end }} {{- end }}
......
...@@ -5,12 +5,10 @@ ...@@ -5,12 +5,10 @@
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.css" rel="stylesheet"> <link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.css" rel="stylesheet">
{{- end }} {{- end }}
{{ if (or (eq .Page.Layout "docs") (ne .Page.Layout "examples")) -}} {{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
{{- "<!-- Documentation extras -->" | safeHTML }} {{- "<!-- Documentation extras -->" | safeHTML }}
{{ if eq .Page.Layout "docs" -}}
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">
{{- end -}} {{- end -}}
{{- if (ne .Page.Layout "examples") }} {{- if (ne .Page.Layout "examples") }}
<link href="/docs/{{ .Site.Params.docs_version }}/assets/css/docs.min.css" rel="stylesheet"> <link href="/docs/{{ .Site.Params.docs_version }}/assets/css/docs.min.css" rel="stylesheet">
{{- end -}}
{{- end }} {{- end }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment