This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding DocSearch to the site (#6022)
- Loading branch information
1 parent
61353ea
commit 60b49fd
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ site.lang | default: "en-US" }}"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<!-- Cusom html from the cayman theme, used in order to include DocSearch cf https://help.github.com/articles/customizing-css-and-html-in-your-jekyll-theme/--> | ||
{% seo %} | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#157878"> | ||
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> | ||
<style> | ||
.algolia-autocomplete, .ds-dropdown-menu { | ||
min-width: 100% !important; | ||
} | ||
#q { | ||
margin: 1em auto; | ||
width: 100%; | ||
height: 1.5em; | ||
} | ||
.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu { | ||
left: 0 !important; | ||
min-width: 99% | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section class="page-header"> | ||
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1> | ||
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2> | ||
{% if site.github.is_project_page %} | ||
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a> | ||
{% endif %} | ||
{% if site.show_downloads %} | ||
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a> | ||
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a> | ||
{% endif %} | ||
</section> | ||
|
||
<section class="main-content"> | ||
<input type="search" id='q' placeholder="Search debugger.html ..."> | ||
</section> | ||
<section class="main-content"> | ||
{{ content }} | ||
|
||
<footer class="site-footer"> | ||
{% if site.github.is_project_page %} | ||
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span> | ||
{% endif %} | ||
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span> | ||
</footer> | ||
</section> | ||
|
||
{% if site.google_analytics %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> | ||
<script type="text/javascript"> docsearch({ | ||
apiKey: 'a6b8766ba29d14a94923259734c3b342', | ||
indexName: 'firefox_debugger_html', | ||
inputSelector: '#q', | ||
debug: false // Set debug to true if you want to inspect the dropdown | ||
}); | ||
</script> | ||
</body> | ||
</html> |