Skip to content

Commit

Permalink
Added some lunr search tests
Browse files Browse the repository at this point in the history
Signed-off-by: Hofi <hofione@gmail.com>
  • Loading branch information
HofiOne committed Jun 3, 2024
1 parent 58653e7 commit b3fa9aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ include:
- assets/js/main.min.js
# Only lunr is not included now to main.min.js
- assets/js/lunr
# site.data.links input
# Input of site.data.links
- _data/links/
exclude:
- .reftime
Expand Down Expand Up @@ -178,9 +178,11 @@ search_from_masthead: true

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

# search_provider: algolia
# algolia:
Expand Down
4 changes: 4 additions & 0 deletions doc/_doc-guide/02_Tools/01_Self_made_tools/01_Tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ options {
};
```

## Tests of custom markdown in header [[source]] and [[with turumturum id|doc-jekyll-extensions#titleid-markdown-extension]]

## Tests of liquid expression {{ site.lunr.test_text_1 }} in header of {{ site.title }}

---------------------

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.
Expand Down

0 comments on commit b3fa9aa

Please sign in to comment.