Browse Source

fix(docs): Limit docs search to docs section

Michael Bromley 6 years ago
parent
commit
844a19875a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/layouts/searchindex/searchindex.html

+ 1 - 1
docs/layouts/searchindex/searchindex.html

@@ -1,6 +1,6 @@
 {
 result :[
-    {{- range .Site.RegularPages -}}
+    {{- range where .Site.Pages "Section" "docs" -}}
         {{ $titles := findRE "<h(2|3).*?>(.|\n)*?</h(2|3)>" .Content -}}
         {{ $plain := apply $titles "plainify" "." -}}
         {{ $cleaned := $plain | complement (slice "constructor" "Signature" "Members") -}}