mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Formatting + moved search index fetching to top level
This commit is contained in:
@@ -30,9 +30,8 @@ import { mapTo } from "rxjs/operators"
|
||||
/**
|
||||
* Watch document
|
||||
*
|
||||
* Documents must be implemented as subjects, so all downstream observables are
|
||||
* automatically updated when a new document is emitted. This enabled features
|
||||
* like instant loading.
|
||||
* Documents are implemented as subjects, so all downstream observables are
|
||||
* automatically updated when a new document is emitted.
|
||||
*
|
||||
* @returns Document subject
|
||||
*/
|
||||
|
||||
@@ -21,9 +21,16 @@
|
||||
*/
|
||||
|
||||
import { Observable, fromEvent, merge } from "rxjs"
|
||||
import { distinctUntilChanged, map, startWith } from "rxjs/operators"
|
||||
import {
|
||||
distinctUntilChanged,
|
||||
map,
|
||||
startWith
|
||||
} from "rxjs/operators"
|
||||
|
||||
import { getElementContentSize, getElementSize } from "../size"
|
||||
import {
|
||||
getElementContentSize,
|
||||
getElementSize
|
||||
} from "../size"
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Types
|
||||
|
||||
@@ -29,10 +29,10 @@ import { Subject } from "rxjs"
|
||||
/**
|
||||
* Retrieve location
|
||||
*
|
||||
* This function will return a `URL` object (and not `Location`) in order to
|
||||
* normalize typings across the application. Furthermore, locations need to be
|
||||
* tracked without setting them and `Location` is a singleton which represents
|
||||
* the current location.
|
||||
* This function returns a `URL` object (and not `Location`) to normalize the
|
||||
* typings across the application. Furthermore, locations need to be tracked
|
||||
* without setting them and `Location` is a singleton which represents the
|
||||
* current location.
|
||||
*
|
||||
* @returns URL
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user