mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-29 19:07:30 +01:00
Fixed localsearch integration
This commit is contained in:
parent
108100277c
commit
eb35ab949c
File diff suppressed because one or more lines are too long
7
material/assets/javascripts/bundle.52a6371e.min.js.map
Normal file
7
material/assets/javascripts/bundle.52a6371e.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -217,7 +217,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.ca5457b8.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.52a6371e.min.js' | url }}"></script>
|
||||||
{% for path in config["extra_javascript"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -15,5 +15,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
//# sourceMappingURL=bundle.32b3ebe8.min.js.map
|
//# sourceMappingURL=bundle.cf78cd63.min.js.map
|
||||||
|
|
File diff suppressed because one or more lines are too long
@ -53,5 +53,5 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<script src="{{ 'overrides/assets/javascripts/bundle.32b3ebe8.min.js' | url }}"></script>
|
<script src="{{ 'overrides/assets/javascripts/bundle.cf78cd63.min.js' | url }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -130,13 +130,13 @@ export function createElement<T extends keyof HTMLElementTagNameMap>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replace an element with another element
|
* Replace an element with the given list of nodes
|
||||||
*
|
*
|
||||||
* @param source - Source element
|
* @param el - Element
|
||||||
* @param target - Target element
|
* @param nodes - Replacement nodes
|
||||||
*/
|
*/
|
||||||
export function replaceElement(
|
export function replaceElement(
|
||||||
source: HTMLElement, target: Node
|
el: HTMLElement, ...nodes: Node[]
|
||||||
): void {
|
): void {
|
||||||
source.replaceWith(target)
|
el.replaceWith(...nodes)
|
||||||
}
|
}
|
||||||
|
@ -84,10 +84,6 @@ interface MountOptions {
|
|||||||
export function mountSearch(
|
export function mountSearch(
|
||||||
el: HTMLElement, { index$, keyboard$ }: MountOptions
|
el: HTMLElement, { index$, keyboard$ }: MountOptions
|
||||||
): Observable<Component<Search>> {
|
): Observable<Component<Search>> {
|
||||||
if (location.protocol === "file:")
|
|
||||||
return NEVER
|
|
||||||
|
|
||||||
/* Set up search worker */
|
|
||||||
const config = configuration()
|
const config = configuration()
|
||||||
const worker = setupSearchWorker(config.search, index$)
|
const worker = setupSearchWorker(config.search, index$)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user