This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/causeway-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 03deb9ae3 CAUSEWAY-3429 : adds search box to home page
03deb9ae3 is described below
commit 03deb9ae36c1698b1b112ef553d7fc9d975826d1
Author: danhaywood <[email protected]>
AuthorDate: Sun Apr 16 13:55:06 2023 +0100
CAUSEWAY-3429 : adds search box to home page
---
content/index.html | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/content/index.html b/content/index.html
index 1532614cd..940f5e28d 100644
--- a/content/index.html
+++ b/content/index.html
@@ -50,6 +50,9 @@
<!-- Custom Stylesheet File -->
<link href="_/css/site-custom.css" rel="stylesheet">
+ <!-- Algolia -->
+ <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"/>
+
<!-- =======================================================
Theme Name: Reveal
Theme URL: https://bootstrapmade.com/reveal-bootstrap-corporate-template/
@@ -114,6 +117,7 @@
<li><a href="docs/2.0.0-RC1/about.html">Table of Contents</a></li>
<li><hr/></li>
<li><a
href="docs/2.0.0-RC1/landing-page/guides.html">Guides</a></li>
+ <li><a href="valuetypes/2.0.0-RC1/about.html">Value Types</a></li>
<li><a
href="docs/2.0.0-RC1/landing-page/components.html">Components</a></li>
<li><a href="extensions/2.0.0-RC1/about.html">Extensions</a></li>
</ul>
@@ -160,6 +164,11 @@
<a href="#call-to-action" class="btn-get-started scrollto">Quick
Start</a>
<a href="docs/2.0.0-RC1/about.html"
class="btn-docs"> Docs </a>
</p>
+ <p>
+ <div class="nav-panel-search hide-for-print">
+ <input id="algolia-search-input" placeholder="Search"></span>
+ </div>
+ </p>
</div>
</div>
@@ -808,5 +817,30 @@ mvn -pl webapp spring-boot:run</pre>
<!-- Template Main JavaScript File -->
<script src="_/js/home/main.js"></script>
+<script
src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
+<script>
+ function focusSearchInput () {
document.querySelector('#algolia-search-input').focus() }
+ var search = docsearch({
+ appId: '5ISP5TFAEN',
+ apiKey: '0fc51c28b4ad46e7318e96d4e97fab7c',
+ indexName: 'causeway-apache-org',
+ inputSelector: '#algolia-search-input',
+ autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] },
+ debug: false,
+ }).autocomplete
+ search.on('autocomplete:closed', function () { search.autocomplete.setVal()
})
+ focusSearchInput()
+ window.addEventListener('load', focusSearchInput);
+</script>
+
+<!--
+ docsearch options:
+ https://docsearch.algolia.com/docs/behavior/
+-->
+<!--
+ https://www.algolia.com/doc/api-reference/api-parameters/
+ algoliaOptions: { hitsPerPage: 6 },
+-->
+
</body>
</html>