From 0d3cf2922618774fc397dca8cb92fcf76fb0db02 Mon Sep 17 00:00:00 2001
From: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Mon, 18 Sep 2023 21:32:00 +0000
Subject: [PATCH] docs: fix explorer example (#483)
---
quartz/plugins/emitters/static.ts | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/quartz/plugins/emitters/static.ts b/quartz/plugins/emitters/static.ts
index 043a461..6f5d19d 100644
--- a/quartz/plugins/emitters/static.ts
+++ b/quartz/plugins/emitters/static.ts
@@ -1,8 +1,7 @@
-import { FilePath, QUARTZ, joinSegments } from "../../path"
+import { FilePath, QUARTZ, joinSegments } from "../../util/path"
import { QuartzEmitterPlugin } from "../types"
-import path from "path"
import fs from "fs"
-import { glob } from "../../glob"
+import { glob } from "../../util/glob"
export const Static: QuartzEmitterPlugin = () => ({
name: "Static",
@@ -10,9 +9,9 @@
return []
},
async emit({ argv, cfg }, _content, _resources, _emit): Promise<FilePath[]> {
- const staticPath = path.join(QUARTZ, "static")
+ const staticPath = joinSegments(QUARTZ, "static")
const fps = await glob("**", staticPath, cfg.configuration.ignorePatterns)
await fs.promises.cp(staticPath, joinSegments(argv.output, "static"), { recursive: true })
- return fps.map((fp) => joinSegments("static", fp)) as FilePath[]
+ return fps.map((fp) => joinSegments(argv.output, "static", fp)) as FilePath[]
},
})
--
Gitblit v1.10.0