assets

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 1 Imported by: 0

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 GeistMedium added in v0.14.0

func GeistMedium() []byte

GeistMedium returns the embedded Geist 500 (chrome/buttons) woff2.

func GeistRegular added in v0.14.0

func GeistRegular() []byte

GeistRegular returns the embedded Geist 400 (body/prose) woff2.

func GeistSemiBold added in v0.14.0

func GeistSemiBold() []byte

GeistSemiBold returns the embedded Geist 600 (headings/strong) woff2.

func MermaidInitJS added in v0.10.0

func MermaidInitJS() []byte

MermaidInitJS returns prereview's mermaid loader/renderer script.

func MermaidJS added in v0.10.0

func MermaidJS() []byte

MermaidJS returns the embedded mermaid UMD bundle.

func PicoCSS added in v0.11.0

func PicoCSS() []byte

PicoCSS returns the embedded Pico CSS v2.1.1 stylesheet.

func PrereviewCSS added in v0.11.4

func PrereviewCSS() []byte

PrereviewCSS returns prereview's own stylesheet (extracted from the template).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL