Skip to content

Commit ccb5e38

Browse files
committed
ssr stylesheets
1 parent 4f18eca commit ccb5e38

File tree

23 files changed

+42
-62
lines changed

23 files changed

+42
-62
lines changed

src/client/stdlib/inputs.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/client/stdlib/leaflet.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/client/stdlib/recommendedLibraries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const dot = () => import("observablehq:stdlib/dot").then((dot) => dot.def
66
export const htl = () => import("npm:htl");
77
export const html = () => import("npm:htl").then((htl) => htl.html);
88
export const svg = () => import("npm:htl").then((htl) => htl.svg);
9-
export const Inputs = () => import("observablehq:stdlib/inputs");
10-
export const L = () => import("observablehq:stdlib/leaflet");
9+
export const Inputs = () => import("npm:@observablehq/inputs");
10+
export const L = () => import("npm:leaflet");
1111
export const mermaid = () => import("observablehq:stdlib/mermaid").then((mermaid) => mermaid.default);
1212
export const Plot = () => import("npm:@observablehq/plot");
1313
export const SQLite = () => import("observablehq:stdlib/sqlite").then((sqlite) => sqlite.default);

src/client/stdlib/tex.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import katex from "npm:katex";
22

3-
const link = document.createElement("link");
4-
link.rel = "stylesheet";
5-
link.href = `https://cdn.jsdelivr.net/npm/katex@${katex.version}/dist/katex.min.css`;
6-
link.crossOrigin = "anonymous";
7-
document.head.appendChild(link);
8-
93
const tex = renderer();
104

115
function renderer(options) {

src/javascript/imports.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,10 @@ export function createImportResolver(root: string, base: "." | "_import" = "."):
187187
? resolveBuiltin(base, path, "stdlib.js")
188188
: specifier === "npm:@observablehq/dot"
189189
? resolveBuiltin(base, path, "stdlib/dot.js")
190-
: specifier === "npm:@observablehq/inputs"
191-
? resolveBuiltin(base, path, "stdlib/inputs.js")
192190
: specifier === "npm:@observablehq/mermaid"
193191
? resolveBuiltin(base, path, "stdlib/mermaid.js")
194192
: specifier === "npm:@observablehq/tex"
195193
? resolveBuiltin(base, path, "stdlib/tex.js")
196-
: specifier === "npm:leaflet"
197-
? resolveBuiltin(base, path, "stdlib/leaflet.js")
198194
: specifier === "npm:sql.js"
199195
? resolveBuiltin(base, path, "stdlib/sqlite.js")
200196
: specifier.startsWith("npm:")

src/render.ts

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ ${
6262
.filter((title): title is string => !!title)
6363
.join(" | ")}</title>\n`
6464
: ""
65-
}<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
66-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
67-
<link rel="stylesheet" type="text/css" href="${relativeUrl(path, "/_observablehq/style.css")}">${renderImportPreloads(
68-
parseResult,
69-
path,
70-
createImportResolver(root, "_import")
71-
)}
65+
}${renderLinks(parseResult, path, createImportResolver(root, "_import"))}
7266
<script type="module">${html.unsafe(`
7367
7468
import {${preview ? "open, " : ""}define} from ${JSON.stringify(relativeUrl(path, "/_observablehq/client.js"))};
@@ -156,31 +150,43 @@ function prettyPath(path: string): string {
156150
return path.replace(/\/index$/, "/") || "/";
157151
}
158152

159-
function renderImportPreloads(parseResult: ParseResult, path: string, resolver: ImportResolver): Html {
153+
function renderLinks(parseResult: ParseResult, path: string, resolver: ImportResolver): Html {
154+
const stylesheets = new Set<string>([relativeUrl(path, "/_observablehq/style.css"), "https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap"]); // prettier-ignore
160155
const specifiers = new Set<string>(["npm:@observablehq/runtime", "npm:@observablehq/stdlib"]);
161156
for (const {name} of parseResult.imports) specifiers.add(name);
162157
const inputs = new Set(parseResult.cells.flatMap((cell) => cell.inputs ?? []));
163158
if (inputs.has("d3") || inputs.has("Plot")) specifiers.add("npm:d3");
164159
if (inputs.has("Plot")) specifiers.add("npm:@observablehq/plot");
165160
if (inputs.has("htl") || inputs.has("html") || inputs.has("svg") || inputs.has("Inputs")) specifiers.add("npm:htl");
166-
if (inputs.has("Inputs")) specifiers.add("npm:@observablehq/inputs").add("https://cdn.jsdelivr.net/npm/@observablehq/inputs/+esm"); // prettier-ignore
161+
if (inputs.has("Inputs")) specifiers.add("npm:@observablehq/inputs");
167162
if (inputs.has("dot")) specifiers.add("npm:@observablehq/dot").add("npm:@viz-js/viz");
168163
if (inputs.has("_")) specifiers.add("npm:lodash");
169164
if (inputs.has("aq")) specifiers.add("npm:arquero");
170165
if (inputs.has("Arrow")) specifiers.add("npm:apache-arrow");
171-
if (inputs.has("L")) specifiers.add("npm:leaflet").add("https://cdn.jsdelivr.net/npm/leaflet/+esm");
166+
if (inputs.has("L")) specifiers.add("npm:leaflet");
172167
if (inputs.has("mermaid")) specifiers.add("npm:@observablehq/mermaid").add("npm:mermaid").add("npm:d3");
173168
if (inputs.has("SQLite")) specifiers.add("npm:sql.js");
174169
if (inputs.has("tex")) specifiers.add("npm:@observablehq/tex").add("npm:katex");
175170
if (inputs.has("topojson")) specifiers.add("npm:topojson-client");
171+
if (specifiers.has("npm:katex")) stylesheets.add("https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css");
172+
if (specifiers.has("npm:@observablehq/inputs")) stylesheets.add("https://cdn.jsdelivr.net/gh/observablehq/inputs/src/style.css"); // prettier-ignore
173+
if (specifiers.has("npm:leaflet")) stylesheets.add("https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.css");
176174
const preloads = new Set<string>();
177-
for (const specifier of specifiers) {
178-
preloads.add(resolver(path, specifier));
179-
}
180-
if (parseResult.cells.some((cell) => cell.databases?.length)) {
181-
preloads.add(relativeUrl(path, "/_observablehq/database.js"));
182-
}
183-
return html`${Array.from(preloads, (href) => html`\n<link rel="modulepreload" href="${href}">`).sort()}`;
175+
for (const specifier of specifiers) preloads.add(resolver(path, specifier));
176+
if (parseResult.cells.some((cell) => cell.databases?.length)) preloads.add(relativeUrl(path, "/_observablehq/database.js")); // prettier-ignore
177+
return html`<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>${
178+
Array.from(stylesheets).sort().map(renderStylesheet) // <link rel=stylesheet>
179+
}${
180+
Array.from(preloads).sort().map(renderModulePreload) // <link rel=modulepreload>
181+
}`;
182+
}
183+
184+
function renderStylesheet(href: string): Html {
185+
return html`\n<link rel="stylesheet" type="text/css" href="${href}"${/^\w+:/.test(href) ? " crossorigin" : ""}>`;
186+
}
187+
188+
function renderModulePreload(href: string): Html {
189+
return html`\n<link rel="modulepreload" href="${href}">`;
184190
}
185191

186192
function renderFooter(path: string, options: Pick<Config, "pages" | "pager" | "title">): Html {

test/output/build/archives/tar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Tar</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/archives/zip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Zip</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/config/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Index</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/config/one.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>One</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/config/sub/two.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Two</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="../_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="../_observablehq/runtime.js">
99
<link rel="modulepreload" href="../_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/config/toc-override.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>H1: Section</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/config/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>H1: Section</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/files/files.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
65
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
6+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
77
<link rel="modulepreload" href="./_observablehq/runtime.js">
88
<link rel="modulepreload" href="./_observablehq/stdlib.js">
99
<script type="module">

test/output/build/files/subsection/subfiles.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
65
<link rel="stylesheet" type="text/css" href="../_observablehq/style.css">
6+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
77
<link rel="modulepreload" href="../_observablehq/runtime.js">
88
<link rel="modulepreload" href="../_observablehq/stdlib.js">
99
<script type="module">

test/output/build/imports/foo/foo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Foo</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="../_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="../_import/bar/bar.js?sha=2e71da6918681d51fd9e7ed79b03aed514771c2e1583af42783665aff3f5ef5e">
99
<link rel="modulepreload" href="../_import/bar/baz.js?sha=e48bbd08d9d69efb7c743b54db47ff7efb1f6bf5f59648c861d5cb8fa0096ce6">
1010
<link rel="modulepreload" href="../_import/foo/foo.js?sha=056eae1b54d6d0e3046f38c8e7b3af2796b70e6505afb47427357e415005d997">

test/output/build/missing-file/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Build test case</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/missing-import/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Build test case</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_import/does-not-exist.js?sha=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855">
99
<link rel="modulepreload" href="./_observablehq/runtime.js">
1010
<link rel="modulepreload" href="./_observablehq/stdlib.js">

test/output/build/multi/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Multi test</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/multi/subsection/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Sub-Section</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="../_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="../_observablehq/runtime.js">
99
<link rel="modulepreload" href="../_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/simple-public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Build test case</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/simple/simple.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>Build test case</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

test/output/build/subtitle/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
44
<title>A title</title>
55
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
6-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap">
76
<link rel="stylesheet" type="text/css" href="./_observablehq/style.css">
7+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&amp;display=swap" crossorigin>
88
<link rel="modulepreload" href="./_observablehq/runtime.js">
99
<link rel="modulepreload" href="./_observablehq/stdlib.js">
1010
<script type="module">

0 commit comments

Comments
 (0)