Skip to content

Commit

Permalink
Merge pull request #50 from ahornos/main
Browse files Browse the repository at this point in the history
Fix #42 bug "Search 404 error"
  • Loading branch information
M-casado authored May 15, 2023
2 parents de2d87f + cc5038a commit 661e026
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 33 deletions.
60 changes: 30 additions & 30 deletions CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,42 @@
---
# Please add yourself below in alphabetical order

ahornos:
name: Albert Hornos Vidal
email: [email protected]
orcid: 0000-0002-7330-668X
elixir_node: es

alex-dem:
name: Alexandros Dimopoulos
email: [email protected]
orcid: 0000-0002-4602-2040
elixir_node: gr

blankdots:
name: Stefan Negru
email: [email protected]
orcid: 0000-0002-6544-5022
elixir_node: fi

d-salgado:
name: David Salgado
email: [email protected]
orcid: 0000-0002-5905-3591
elixir_node: fr

jmenglund:
name: Markus Englund
email: [email protected]
orcid: 0000-0003-1688-7112
elixir_node: se

lilachic:
name: Liisa Lado-Villar
email: [email protected]
orcid:
elixir_node: fi

mfreeberg:
name: Mallory Freeberg
email: [email protected]
Expand All @@ -42,33 +72,3 @@ silviabah:
email: [email protected]
orcid: 0000-0002-2734-0449
elixir_node: embl

ahornos:
name: Albert Hornos Vidal
email: [email protected]
orcid: 0000-0002-7330-668X
elixir_node: es

blankdots:
name: Stefan Negru
email:
orcid:
elixir_node: fi

alex-dem:
name: Alexandros Dimopoulos
email: [email protected]
orcid: 0000-0002-4602-2040
elixir_node: gr

d-salgado:
name: David Salgado
email: [email protected]
orcid: 0000-0002-5905-3591
elixir_node: fr

lilachic:
name: Liisa Lado-Villar
email: [email protected]
orcid:
elixir_node: fi
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ webrick:
Access-Control-Allow-Origin: "*"

# Specific to this theme
baseurl: /FEGA-onboarding
site_author: Federated EGA Knowledge base team
repo_url: ''
edit_on_github: false
Expand Down
5 changes: 5 additions & 0 deletions docs/_includes/searchbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get">
<input type="text" name="q" id="search-query" placeholder="Search docs" title="Type search term here" />
</form>
</div>
2 changes: 1 addition & 1 deletion docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1 id="search">Search Results</h1>
this.field('author');
this.field('content');
});
$.getJSON('/search_data.json').then(function(search_data) {
$.getJSON('search_data.json').then(function(search_data) {
var idx = lunr(function() {
this.field('id');
this.field('title', { boost: 10 });
Expand Down
4 changes: 2 additions & 2 deletions docs/search_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ search_exclude: true
"{{ site_page.url | slugify }}": {
"title": "{{ site_page.title | xml_escape }}",
"content": {{site_page.content | markdownify | newline_to_br | replace: '<br />', ' ' | strip_html | normalize_whitespace | jsonify }},
"url": " {{ site_page.url | xml_escape }}",
"url": " {{ site_page.url | absolute_url }}",
"author": "{{ site_page.author | xml_escape }}"
},
{%- endunless %}
Expand All @@ -19,7 +19,7 @@ search_exclude: true
"{{ site_post.url | slugify }}": {
"title": "{{ site_post.title | xml_escape }}",
"content": {{site_post.content | markdownify | newline_to_br | replace: '<br />', ' ' | strip_html | normalize_whitespace | jsonify }},
"url": " {{ site_post.url | xml_escape }}",
"url": " {{ site_post.url | absolute_url }}",
"author": "{{ site_post.author | xml_escape }}"
}{%- unless forloop.last %},{%- endunless %}
{%- endunless %}
Expand Down

0 comments on commit 661e026

Please sign in to comment.