mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Added search.button configuration
Improved documentation for search configurations
This commit is contained in:
@@ -51,7 +51,7 @@ function initNav() {
|
||||
}
|
||||
});
|
||||
|
||||
{% if site.search_enabled != false -%}
|
||||
{% if site.search_enabled != false and site.search.button -%}
|
||||
const searchInput = document.getElementById('search-input');
|
||||
const searchButton = document.getElementById('search-button');
|
||||
|
||||
|
@@ -6,7 +6,7 @@ permalink: /assets/js/search-data.json
|
||||
{% for page in site.html_pages %}
|
||||
{%- if page.title and page.search_exclude != true -%}
|
||||
{%- assign page_content = page.content -%}
|
||||
{%- assign heading_level = site.search.heading_level | default: 1 -%}
|
||||
{%- assign heading_level = site.search.heading_level | default: 2 -%}
|
||||
{%- for j in (2..heading_level) -%}
|
||||
{%- assign tag = '<h' | append: j -%}
|
||||
{%- assign closing_tag = '</h' | append: j -%}
|
||||
|
Reference in New Issue
Block a user