AetheriaLore/quartz-site/quartz/cli/constants.js
Meta Vens 6127440e57 Static Wiki Site via Quartz
Included the static site generator Quartz and customized it to generate a wiki using the contents of the Obsidian Vault
2026-04-19 09:47:46 +01:00

15 lines
583 B
JavaScript

import path from "path"
import { readFileSync } from "fs"
/**
* All constants relating to helpers or handlers
*/
export const ORIGIN_NAME = "origin"
export const UPSTREAM_NAME = "upstream"
export const QUARTZ_SOURCE_BRANCH = "v4"
export const cwd = process.cwd()
export const cacheDir = path.join(cwd, ".quartz-cache")
export const cacheFile = "./quartz/.quartz-cache/transpiled-build.mjs"
export const fp = "./quartz/build.ts"
export const { version } = JSON.parse(readFileSync("./package.json").toString())
export const contentCacheFolder = path.join(cacheDir, "content-cache")