diff --git a/config.yml b/config.yml
index 622f43df3..4311fde03 100644
--- a/config.yml
+++ b/config.yml
@@ -20,6 +20,18 @@ enableRobotsTXT: true
metaDataFormat: "yaml"
disableKinds: ["404", "taxonomy", "term", "RSS"]
+outputFormats:
+ OpenSearch:
+ baseName: opensearch
+ isPlainText: true
+ mediaType: application/xml
+ notAlternative: true
+
+outputs:
+ home:
+ - HTML
+ - OpenSearch
+
publishDir: "_site"
module:
diff --git a/site/layouts/_default/list.opensearch.xml b/site/layouts/_default/list.opensearch.xml
new file mode 100644
index 000000000..a64e0daee
--- /dev/null
+++ b/site/layouts/_default/list.opensearch.xml
@@ -0,0 +1,7 @@
+
+
+ {{ .Site.Title }}
+ Search {{ .Site.Title }} documentation
+ {{ (printf "/docs/%s/assets/img/favicons/favicon.ico" .Site.Params.docs_version) | absURL }}
+
+
diff --git a/site/layouts/partials/header.html b/site/layouts/partials/header.html
index 114112f80..4eddd4715 100644
--- a/site/layouts/partials/header.html
+++ b/site/layouts/partials/header.html
@@ -10,7 +10,10 @@
{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.description | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}{{ end }}
-
+
+{{ with .OutputFormats.Get "opensearch" -}}
+
+{{ end -}}
{{ with .Params.robots -}}
diff --git a/site/static/documentation-search.xml b/site/static/documentation-search.xml
deleted file mode 100644
index 9fdd82d49..000000000
--- a/site/static/documentation-search.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- Bootstrap Documentation
- Search in the latest Bootstrap documentation
- https://deploy-preview-29872--twbs-bootstrap.netlify.com/favicon.ico
-
-