Skip to main content
Module

x/pagic/mod.ts>PagicConfig

A static site generator powered by Deno + React
Latest
interface PagicConfig
import { type PagicConfig } from "https://deno.land/x/pagic@v1.6.3/mod.ts";

Index Signatures

[key: string]: any

Properties

srcDir: string
outDir: string
optional
include: string[]
optional
exclude: string[]
root: string
theme: string
plugins: string[]
watch: boolean
serve: boolean
port: number
optional
title: string
optional
description: string
optional
head: React.ReactElement | null
optional
github: string
optional
tocAd: React.ReactElement
optional
tools: { editOnGitHub: boolean; backToTop: boolean; }
optional
branch: string
optional
nav: { text: string; link: string; icon?: string; target?: "_blank" | string; popover?: React.ReactElement; align?: "left" | "right"; }[]
optional
sidebar: PagicConfigSidebar
optional
md: { anchorLevel?: (
| 1
| 2
| 3
| 4
| 5
| 6
)[]; tocEnabled?: boolean; tocLevel?: (
| 1
| 2
| 3
| 4
| 5
| 6
)[]; katexMacros?: Record<string, string>; }
optional
ga: GaProps
optional
gitalk: GitalkProps
optional
blog: { root: string; social?: { github: string; email: string; twitter: string; v2ex: string; zhihu: string; }; }
optional
i18n: { languages: { code: string; name: string; root: string; }[]; overrides?: Record<string, any>; resources?: Record<string, { translation: Record<string, string>; }>; }