Adds favicon to Dash/Zeal docset, adds OpenSearch metadata. (#25178)

This sets the favicon for the offline Dash/Zeal docs.

Also, sets up the OpenSearch Description metadata file so that people can create custom search shortcuts for the API docs site.

Fixes #6412
This commit is contained in:
Greg Spencer
2018-12-11 09:53:33 -08:00
committed by GitHub
parent b080a476c8
commit 625a37b86a
4 changed files with 49 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Flutter API</ShortName>
<Description>
Welcome to the Flutter API reference documentation search.
Flutter is Googles mobile UI framework for crafting high-quality native interfaces on iOS and Android in record time.
Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
The API reference herein covers all libraries that are exported by the Flutter SDK.
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="32" height="32" type="image/x-icon">/flutter/static-assets/favicon.png</Image>
<Url type="text/html" method="get" template="{SITE_URL}?search={searchTerms}"/>
</OpenSearchDescription>

1
dev/docs/opensearch.html Normal file
View File

@@ -0,0 +1 @@
<link rel="search" type="application/opensearchdescription+xml" title="Flutter API" href="/opensearch.xml"/>