blob: 32462bb925b9cb64dcbfc9624f8304d99cd8c643 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* SPDX-FileCopyrightText: 2023 Kristóf Marussy
*
* SPDX-License-Identifier: MIT
*/
import Head from '@docusaurus/Head';
import type { Props } from '@theme/Root';
import Root from '@theme-original/Root';
import ActiveSectionProvider from '@site/src/components/ActiveSectionProvider';
import fontURL from '@site/src/fonts/recursive-latin.woff2?url';
export default function RootWrapper(props: Props) {
return (
<ActiveSectionProvider>
<Head>
<link
rel="preload"
href={fontURL}
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
</Head>
<Root {...props} />
</ActiveSectionProvider>
);
}
|