diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-01 00:12:57 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-01 00:12:57 +0300 |
commit | f4ee06f9e21b3d593a3062c38c09cb49d76b0ab5 (patch) | |
tree | a4cc0e6714b3093be175f1adb828c3a19a7a9014 /layouts/head.html | |
parent | 2dcac15d8b1fe88ba264afcd1e4b04b7a860cfd1 (diff) |
Adds opensearch to the docs site
Diffstat (limited to 'layouts/head.html')
-rw-r--r-- | layouts/head.html | 96 |
1 files changed, 53 insertions, 43 deletions
diff --git a/layouts/head.html b/layouts/head.html index 7496a601..971c501f 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -19,48 +19,58 @@ <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,400italic' rel='stylesheet' type='text/css'> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> -<!-- you don't need to keep this, but it's cool for stats! --> -<meta name="generator" content="Nanoc <%= Nanoc::VERSION %>"> -<script type="application/ld+json"> -{ - "@context":"http://schema.org", - "@type":"Organization", - "name":"GitLab", - "legalName":"GitLab Inc.", - "url":"https://about.gitlab.com", - "logo":"https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo.png", - "foundingDate":"2011", - "founders":[ - { - "@type":"Person", - "name":"Sid Sijbrandij" - }, - { - "@type":"Person", - "name":"Dmitriy Zaporozhets" - }], - "address": + <!-- you don't need to keep this, but it's cool for stats! --> + <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>"> + + <!-- Algolia Searching from the URL bar https://www.algolia.com/doc/tutorials/search-ui/ux-patterns/search-from-the-url-bar/ --> + <link href='/opensearch.xml' rel='search' title='Search through GitLab Docs' type='application/opensearchdescription+xml'> + + <script type="application/ld+json"> + { + "@context":"http://schema.org", + "@type":"Organization", + "name":"GitLab", + "legalName":"GitLab Inc.", + "url":"https://about.gitlab.com", + "logo":"https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo.png", + "foundingDate":"2011", + "founders":[ { - "@type":"PostalAddress", - "streetAddress":"1233 Howard St 2F", - "addressLocality":"San Francisco", - "addressRegion":"CA", - "postalCode":"94103", - "addressCountry":"USA" + "@type":"Person", + "name":"Sid Sijbrandij" }, - "sameAs":[ - "https://www.facebook.com/gitlab", - "https://twitter.com/gitlab", - "https://www.linkedin.com/company/gitlab-com", - "https://plus.google.com/107491817347842790515/", - "https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg"] -} -</script> -<script type="application/ld+json"> -{ - "@context":"http://schema.org", - "@type": "WebSite", - "name": "GitLab Documentation", - "url": "https://docs.gitlab.com" -} -</script> + { + "@type":"Person", + "name":"Dmitriy Zaporozhets" + }], + "address": + { + "@type":"PostalAddress", + "streetAddress":"1233 Howard St 2F", + "addressLocality":"San Francisco", + "addressRegion":"CA", + "postalCode":"94103", + "addressCountry":"USA" + }, + "sameAs":[ + "https://www.facebook.com/gitlab", + "https://twitter.com/gitlab", + "https://www.linkedin.com/company/gitlab-com", + "https://plus.google.com/107491817347842790515/", + "https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg"] + } + </script> + <script type="application/ld+json"> + { + "@context":"http://schema.org", + "@type": "WebSite", + "name": "GitLab Documentation", + "url": "https://docs.gitlab.com", + "potentialAction": { + "@type": "SearchAction", + "target": "https://docs.gitlab.com/?s={search_term}", + "query-input": "required name=search_term" + } + } + </script> +</head> |