Skip to content
vitepress-pele
Guide
Examples
Pele
GitHub
Menu
Return to top
On this page
Structure
Class
Plugin surface
defaults applied
configures
configures
PeleMarkdownOptions
+number maxWidth
+string[] languages
+onError throw|render
ResolvedOptions
peleMarkdown
+(md) : install fence rule
DefinePeleDiagramOptions
+string tag
+object zoom
definePeleDiagram
+register CE
+enableZoom
Public exports
maxWidth, languages, onError
Entity relationship
ships
resolves
contains
documents
PACKAGE
string
name
PK
string
version
string
license
EXPORT
string
path
PK
string
types
string
import
ENTRY
SITE
string
title
PK
string
base
PAGE
string
route
PK, FK
string
title
boolean
hasDiagram
State
Docs
vp pack
deploy
Source
Packed
Published
DevServer
Built
Nested parallel states
Workspace
pack --watch
rebuild done
docs#dev
stop
LibIdle
LibWatch
DocsIdle
DocsDev
C4 component
Component diagram for a VitePress docs site with Pele
Docs app
[CONTAINER]
«container»
Reader browser
[HTML/CSS/JS]
Loads the static docs site and
optional Pele zoom.
«container»
CI runner
[GitHub Actions]
Builds and deploys the docs on
each push.
«container db»
Static host
[Object storage / CDN]
Serves the built HTML, assets,
and inline SVG.
«external system»
npm registry
Hosts the published
vitepress-pele package.
«component»
VitePress
[Static site generator]
Parses markdown and builds
pages.
«component»
vitepress-pele
[markdown-it plugin]
Turns mermaid fences into Pele
SVG at build time.
«component»
Theme enhanceApp
[Vue theme hook]
Registers pele-diagram and
enables zoom.
«component»
Pele
[Diagram renderer]
Layouts Mermaid into SVG.
md.use
render
imports client +
CSS
Loads
[HTTPS]
Fetches pages
[HTTPS]
vp run docs#build
Uploads dist
workspace / published
package