mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 21:25:49 +00:00
Algolia search
This commit is contained in:
@@ -70,7 +70,7 @@ targets:
|
|||||||
github_branch: master
|
github_branch: master
|
||||||
strings:
|
strings:
|
||||||
blog: "Blog"
|
blog: "Blog"
|
||||||
search: "Search site with Google..."
|
search: "Search site..."
|
||||||
bc_home: "Home"
|
bc_home: "Home"
|
||||||
tl_banner:
|
tl_banner:
|
||||||
head: "Sorry, this page is not available in your language."
|
head: "Sorry, this page is not available in your language."
|
||||||
@@ -143,7 +143,7 @@ targets:
|
|||||||
github_branch: master
|
github_branch: master
|
||||||
strings:
|
strings:
|
||||||
blog: "ブログ"
|
blog: "ブログ"
|
||||||
search: "サイトをGoogleで検索"
|
search: "サイトを検索"
|
||||||
bc_home: "ホーム"
|
bc_home: "ホーム"
|
||||||
tl_banner:
|
tl_banner:
|
||||||
head: "も仕分けありませんがこのページは日本語では入手不可" #TODO: check translation
|
head: "も仕分けありませんがこのページは日本語では入手不可" #TODO: check translation
|
||||||
@@ -298,7 +298,7 @@ targets:
|
|||||||
no_cover: true
|
no_cover: true
|
||||||
strings:
|
strings:
|
||||||
blog: "Blog"
|
blog: "Blog"
|
||||||
search: "Search site with Google..."
|
search: "Search site..."
|
||||||
bc_home: "Home"
|
bc_home: "Home"
|
||||||
tl_banner:
|
tl_banner:
|
||||||
head: "Sorry, this page is not available in your language."
|
head: "Sorry, this page is not available in your language."
|
||||||
@@ -327,7 +327,7 @@ targets:
|
|||||||
"([\\w-]+\\.html)": https://xrpl.org/\1
|
"([\\w-]+\\.html)": https://xrpl.org/\1
|
||||||
strings:
|
strings:
|
||||||
blog: "Blog"
|
blog: "Blog"
|
||||||
search: "Search site with Google..."
|
search: "Search site..."
|
||||||
bc_home: "Home"
|
bc_home: "Home"
|
||||||
tl_banner:
|
tl_banner:
|
||||||
head: "Sorry, this page is not available in your language."
|
head: "Sorry, this page is not available in your language."
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -70,10 +72,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul><!-- /.navbar-nav -->
|
</ul><!-- /.navbar-nav -->
|
||||||
{% include 'template-github-edit.html' %}
|
{% include 'template-github-edit.html' %}
|
||||||
<form class="navbar-form navbar-right" id="navbar-search" role="search" method="get" action="https://www.google.com/search">
|
<form class="navbar-form navbar-right" id="navbar-search" role="search">
|
||||||
<div class="form-inline">
|
<div class="form-inline">
|
||||||
<label class="sr-only" for="topsearchbar">{{target.strings.search}}</label>
|
<label class="sr-only" for="topsearchbar">{{target.strings.search}}</label>
|
||||||
<input name="q" value="site:xrpl.org" type="hidden">
|
|
||||||
<input id="topsearchbar" name="q" type="text" class="form-control" class="top-search" placeholder="{{target.strings.search}}">
|
<input id="topsearchbar" name="q" type="text" class="form-control" class="top-search" placeholder="{{target.strings.search}}">
|
||||||
<button type="submit" class="btn btn-default fa fa-search"> </button>
|
<button type="submit" class="btn btn-default fa fa-search"> </button>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,6 +131,17 @@
|
|||||||
<!-- fontawesome icons -->
|
<!-- fontawesome icons -->
|
||||||
<link rel="stylesheet" href="assets/vendor/fontawesome/css/font-awesome.min.css" />
|
<link rel="stylesheet" href="assets/vendor/fontawesome/css/font-awesome.min.css" />
|
||||||
|
|
||||||
|
<!-- Algolia DocSearch -->
|
||||||
|
<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: '70de5b9b8ef95460f3c6e04054b325b2',
|
||||||
|
indexName: 'xrpl',
|
||||||
|
inputSelector: '#topsearchbar',
|
||||||
|
algoliaOptions: { 'facetFilters': ["lang:{{target.lang}}"] },
|
||||||
|
debug: false
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{% block endbody %}{% endblock %}
|
{% block endbody %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user