Documentation
¶
Overview ¶
Package assets embeds the livetemplate client browser bundle (JS + CSS) and the JetBrains Mono webfont so prereview ships as a self-contained binary with no CDN dependency (it is reviewed over Tailscale/devbox, often offline).
The files in client/ are populated by `make sync-client`, which copies them from ../../../client/{dist/livetemplate-client.browser.js, livetemplate.css}. They are gitignored — fresh clones must run `make sync-client` before `go build`.
fonts/ holds the static Regular (400) and Bold (700) JetBrains Mono woff2 (SIL OFL 1.1, see fonts/OFL.txt) — prose needs only those two weights; other weights/italics synthesize. These ARE committed.
mermaid.min.js is the pinned mermaid UMD bundle, committed for the same offline reason — the only third-party JS we ship besides the livetemplate client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCSS ¶
func ClientCSS() []byte
ClientCSS returns the embedded livetemplate shared stylesheet.
func ClientJS ¶
func ClientJS() []byte
ClientJS returns the embedded livetemplate client browser bundle.
func FontBold ¶ added in v0.0.4
func FontBold() []byte
FontBold returns the embedded JetBrains Mono Bold (700) woff2.
func FontRegular ¶ added in v0.0.4
func FontRegular() []byte
FontRegular returns the embedded JetBrains Mono Regular (400) woff2.
func MermaidInitJS ¶ added in v0.10.0
func MermaidInitJS() []byte
MermaidInitJS returns prereview's mermaid loader/renderer script.
Types ¶
This section is empty.