MCPcopy Create free account
hub / github.com/Milkdown/website / Document

Function Document

src/pages/_document.tsx:3–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { Head, Html, Main, NextScript } from 'next/document'
2
3export default function Document() {
4 return (
5 <Html lang="en">
6 <Head>
7 {/* prism theme */}
8 <link
9 rel="stylesheet"
10 href="https://unpkg.com/prism-themes/themes/prism-nord.css"
11 />
12
13 {/* Crepe Nord Theme Fonts */}
14 <link
15 href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
16 rel="stylesheet"
17 />
18 <link
19 href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"
20 rel="stylesheet"
21 />
22 <link
23 href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
24 rel="stylesheet"
25 />
26
27 {/* Material Symbols, we cannot optional load icon set */}
28 {/* eslint-disable-next-line @next/next/google-font-display */}
29 <link
30 rel="stylesheet"
31 href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
32 />
33
34 {/* Nunito font */}
35 <link
36 href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap"
37 rel="stylesheet"
38 />
39
40 {/* favicons for pwa */}
41 <link rel="icon" href="/favicon.ico" sizes="any" />
42 <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
43 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
44 <link rel="manifest" href="/site.webmanifest" />
45 <meta name="theme-color" content="#5E81AC" />
46 <meta
47 name="description"
48 content="The plugin based WYSIWYG markdown editor framework."
49 />
50
51 <meta name="twitter:card" content="summary_large_image" />
52 <meta name="twitter:creator" content="@mirone_saul" />
53 <meta property="twitter:title" content="Milkdown" />
54 <meta
55 property="twitter:image"
56 content="http://milkdown.dev/banner.svg"
57 />
58 <meta property="og:type" content="website" />
59 <meta property="og:url" content="https://milkdown.dev" />
60 <meta property="og:title" content="Milkdown" />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected