mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-25 07:12:44 -04:00
Merged features tied to Royal Gold funding goal
This commit is contained in:
@@ -56,7 +56,9 @@ import {
|
||||
import {
|
||||
getComponentElement,
|
||||
getComponentElements,
|
||||
mountAnnounce,
|
||||
mountBackToTop,
|
||||
mountConsent,
|
||||
mountContent,
|
||||
mountDialog,
|
||||
mountHeader,
|
||||
@@ -177,6 +179,10 @@ const main$ = document$
|
||||
/* Set up control component observables */
|
||||
const control$ = merge(
|
||||
|
||||
/* Consent */
|
||||
...getComponentElements("consent")
|
||||
.map(el => mountConsent(el, { target$ })),
|
||||
|
||||
/* Dialog */
|
||||
...getComponentElements("dialog")
|
||||
.map(el => mountDialog(el, { alert$ })),
|
||||
@@ -201,6 +207,10 @@ const control$ = merge(
|
||||
/* Set up content component observables */
|
||||
const content$ = defer(() => merge(
|
||||
|
||||
/* Announcement bar */
|
||||
...getComponentElements("announce")
|
||||
.map(el => mountAnnounce(el)),
|
||||
|
||||
/* Content */
|
||||
...getComponentElements("content")
|
||||
.map(el => mountContent(el, { target$, print$ })),
|
||||
|
||||
Reference in New Issue
Block a user