16 lines
695 B
PowerShell
16 lines
695 B
PowerShell
$root = Split-Path -Parent $PSScriptRoot
|
|
$site = Join-Path $root "site"
|
|
$config = Join-Path $PSScriptRoot "quartz.config.yaml"
|
|
|
|
if (-not (Test-Path -LiteralPath (Join-Path $site ".git"))) {
|
|
git clone --branch v5 --single-branch https://github.com/jackyzha0/quartz.git $site
|
|
}
|
|
|
|
Copy-Item -LiteralPath $config -Destination (Join-Path $site "quartz.config.yaml") -Force
|
|
Copy-Item -LiteralPath (Join-Path $PSScriptRoot "quartz.custom.scss") -Destination (Join-Path $site "quartz\styles\custom.scss") -Force
|
|
Set-Location -LiteralPath $site
|
|
npm ci
|
|
npx quartz plugin install --from-config
|
|
npm install @quartz-themes/everforest-spruce
|
|
python (Join-Path $PSScriptRoot "quartz-patches\apply.py") search
|