Skip to content

Commit a5441f2

Browse files
wip: another windows path transliteration and logs
1 parent 769cf55 commit a5441f2

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

src/core/brand/brand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export class Brand {
152152
for (const [key, value] of Object.entries(data.logo?.images ?? {})) {
153153
logo.images[key] = this.resolvePath(value);
154154
}
155+
console.log("brand logo processedData", logo);
155156

156157
return {
157158
color,

src/extension/extension.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,16 @@ export function projectExtensionPathResolver(
158158
return (href: string, projectOffset: string) => {
159159
const projectRelativeHref = relative(projectOffset, href);
160160

161-
if (projectRelativeHref.startsWith("_extensions/")) {
162-
const projectTargetHref = projectRelativeHref.replace(
163-
/^_extensions\//,
164-
`${libDir}/quarto-contrib/quarto-project/`,
165-
);
161+
if (
162+
projectRelativeHref.startsWith("_extensions/") ||
163+
projectRelativeHref.startsWith("_extensions\\")
164+
) {
165+
const projectTargetHref = projectRelativeHref
166+
.replaceAll("\\", "/")
167+
.replace(
168+
/^_extensions\//,
169+
`${libDir}/quarto-contrib/quarto-project/`,
170+
);
166171

167172
copyResourceFile(
168173
projectDir,
@@ -816,6 +821,7 @@ async function readExtension(
816821
} else {
817822
(object.project as Record<string, unknown>)[key] = resolved.include;
818823
}
824+
console.log("extension brand", object.project);
819825
}
820826
}
821827
}

src/format/reveal/format-reveal.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ function revealMarkdownAfterBody(format: Format) {
392392
"medium",
393393
"large",
394394
]);
395+
console.log("revealjs logo", logo);
395396
if (logo && logo[brandMode]) {
396397
const modeLogo = logo[brandMode]!;
397398
const altText = modeLogo.alt ? `alt="${modeLogo.alt}" ` : "";
@@ -402,6 +403,7 @@ function revealMarkdownAfterBody(format: Format) {
402403
);
403404
lines.push("\n");
404405
}
406+
console.log("revealjs lines", lines);
405407
lines.push("::: {.footer .footer-default}");
406408
if (format.metadata[kSlideFooter]) {
407409
lines.push(String(format.metadata[kSlideFooter]));

0 commit comments

Comments
 (0)