mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-19 06:12:30 +00:00
feat(experimental): partial rebuilds (#716)
This commit is contained in:
parent
a87704cd05
commit
fe353d946b
17 changed files with 604 additions and 11 deletions
quartz/plugins/emitters
|
@ -2,6 +2,7 @@ import { FilePath, joinSegments } from "../../util/path"
|
|||
import { QuartzEmitterPlugin } from "../types"
|
||||
import fs from "fs"
|
||||
import chalk from "chalk"
|
||||
import DepGraph from "../../depgraph"
|
||||
|
||||
export function extractDomainFromBaseUrl(baseUrl: string) {
|
||||
const url = new URL(`https://${baseUrl}`)
|
||||
|
@ -13,6 +14,9 @@ export const CNAME: QuartzEmitterPlugin = () => ({
|
|||
getQuartzComponents() {
|
||||
return []
|
||||
},
|
||||
async getDependencyGraph(_ctx, _content, _resources) {
|
||||
return new DepGraph<FilePath>()
|
||||
},
|
||||
async emit({ argv, cfg }, _content, _resources): Promise<FilePath[]> {
|
||||
if (!cfg.configuration.baseUrl) {
|
||||
console.warn(chalk.yellow("CNAME emitter requires `baseUrl` to be set in your configuration"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue