mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-18 17:12:23 -06:00
Add documentation for search configurations
This commit is contained in:
parent
ff30552748
commit
2ef0029068
10
_config.yml
10
_config.yml
@ -27,11 +27,11 @@ exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "pac
|
|||||||
# Enable or disable the site search
|
# Enable or disable the site search
|
||||||
search_enabled: true
|
search_enabled: true
|
||||||
search:
|
search:
|
||||||
heading_level: 2
|
heading_level: 2 # Split documents into sections that can be individually searched
|
||||||
preview_words_before: 5
|
preview_words_before: 5 # Maximum amount of words to display before a matched word in the preview
|
||||||
preview_words_after: 10
|
preview_words_after: 10 # Maximum amount of words to display after a matched word in the preview
|
||||||
rel_url: false
|
rel_url: false # Include the relative url in the search: true (default) or false
|
||||||
tokenizer_separator: /[\s/]+/ # Set the search token separator for hyphenated-word search
|
tokenizer_separator: /[\s/]+/ # Enable support for hyphenated search words
|
||||||
|
|
||||||
# Enable or disable heading anchors
|
# Enable or disable heading anchors
|
||||||
heading_anchors: true
|
heading_anchors: true
|
||||||
|
@ -36,9 +36,12 @@ logo: "/assets/images/just-the-docs.png"
|
|||||||
# Supports true (default) or false
|
# Supports true (default) or false
|
||||||
search_enabled: true
|
search_enabled: true
|
||||||
|
|
||||||
# Enable support for hyphenated search words:
|
search:
|
||||||
search_tokenizer_separator: /[\s/]+/
|
heading_level: 2 # Split documents into sections that can be individually searched
|
||||||
|
preview_words_before: 5 # Maximum amount of words to display before a matched word in the preview
|
||||||
|
preview_words_after: 10 # Maximum amount of words to display after a matched word in the preview
|
||||||
|
rel_url: false # Include the relative url in the search: true (default) or false
|
||||||
|
tokenizer_separator: /[\s/]+/ # Enable support for hyphenated search words
|
||||||
```
|
```
|
||||||
|
|
||||||
## Aux links
|
## Aux links
|
||||||
|
Loading…
x
Reference in New Issue
Block a user