-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use custom JTD theme with custom search indexing
- Loading branch information
1 parent
1628f9c
commit 9c0d836
Showing
5 changed files
with
39 additions
and
4 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
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
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,30 @@ | ||
{%- if include.page.usage -%} | ||
|
||
{%- capture newline %} | ||
{% endcapture -%} | ||
|
||
{%- if include.page.usage.values -%} | ||
|
||
{%- if include.page.usage.values.first -%} | ||
{%- capture flat_content -%} | ||
{%- for value in include.page.usage.values -%} | ||
{{ value[0] }} | ||
{{ value[1] }} | ||
{% endfor -%} | ||
{%- endcapture -%} | ||
{%- else -%} | ||
{% assign flat_content = include.page.usage.values %} | ||
{%- endif -%} | ||
"uvalues": "{{ flat_content | markdownify | replace:newline,' ' | strip_html | normalize_whitespace | strip }}", | ||
{%- endif -%} | ||
|
||
{%- if include.page.usage.examples -%} | ||
{%- capture flat_content -%} | ||
{%- for example in include.page.usage.examples -%} | ||
{{ example }} | ||
{% endfor -%} | ||
{%- endcapture %} | ||
"uexamples": "{{ flat_content | markdownify | replace:newline,' ' | strip_html | normalize_whitespace | strip }}", | ||
{%- endif -%} | ||
|
||
{%- endif -%} |
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,3 @@ | ||
// docs[i] is current entry within assets/js/search-data.json | ||
const content_to_merge = [docs[i].content, docs[i].uvalues, docs[i].uexamples]; | ||
docs[i].content = content_to_merge.join(' '); |
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