Skip to content

Commit b3fa9aa

Browse files
committed
Added some lunr search tests
Signed-off-by: Hofi <[email protected]>
1 parent 58653e7 commit b3fa9aa

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

_config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ include:
5656
- assets/js/main.min.js
5757
# Only lunr is not included now to main.min.js
5858
- assets/js/lunr
59-
# site.data.links input
59+
# Input of site.data.links
6060
- _data/links/
6161
exclude:
6262
- .reftime
@@ -178,9 +178,11 @@ search_from_masthead: true
178178

179179
search_provider: lunr
180180
lunr:
181-
# No we have all the valuable content in collections
181+
# No we have all the valuable content in collections (collection.docs)
182+
# that lunr indexes by default if search: true
182183
# Standalone pages like, sitemap.xml, 404, etc. should not be searched
183184
search_within_pages: false
185+
test_text_1: "abrakadabra"
184186

185187
# search_provider: algolia
186188
# algolia:

doc/_doc-guide/02_Tools/01_Self_made_tools/01_Tests/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ options {
6161
};
6262
```
6363

64+
## Tests of custom markdown in header [[source]] and [[with turumturum id|doc-jekyll-extensions#titleid-markdown-extension]]
65+
66+
## Tests of liquid expression {{ site.lunr.test_text_1 }} in header of {{ site.title }}
67+
6468
---------------------
6569

6670
Introduction to {{ site.product.short_name }} is a test for pages without description/subtitle, but text part between the title and the first heading which can have tooltips too this way.

0 commit comments

Comments
 (0)