mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-17 06:33:33 -06:00
Added search.button configuration
Improved documentation for search configurations
This commit is contained in:
23
_config.yml
23
_config.yml
@@ -27,11 +27,24 @@ exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "pac
|
||||
# Enable or disable the site search
|
||||
search_enabled: true
|
||||
search:
|
||||
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
|
||||
# Split documents into sections that can be individually searched
|
||||
# Supports 1 - 6, default: 2
|
||||
heading_level: 2
|
||||
# Maximum amount of words to display before a matched word in the preview
|
||||
# Default: 5
|
||||
preview_words_before: 5
|
||||
# Maximum amount of words to display after a matched word in the preview
|
||||
# Default: 10
|
||||
preview_words_after: 10
|
||||
# Include the relative url in the search
|
||||
# Supports true (default) or false
|
||||
rel_url: false
|
||||
# Enable support for hyphenated search words
|
||||
# Default: /[\s\-/]+/
|
||||
tokenizer_separator: /[\s/]+/
|
||||
# Enable or disable the search button
|
||||
# Supports true or false (default)
|
||||
button: true
|
||||
|
||||
# Enable or disable heading anchors
|
||||
heading_anchors: true
|
||||
|
Reference in New Issue
Block a user