服务端 katex-rs 只输出 HTML span,字体/排版靠配套 CSS。从 npm 包 katex 0.16.x 的 dist/ 拷贝 katex.min.css + woff2 字体(省去 woff/ttf)到 public/katex/, CSS 用相对 url(fonts/) 引用故两者须同级。 - libs/package.json: katex ^0.16.22 作 workspace 根 devDependency - Makefile: 新增 katex-css target,接入 build/build-linux/dev;clean 清 public/katex - Dioxus.toml: [web.resource]/[web.resource.dev] style 列表注册 /katex/katex.min.css - .gitignore: public/katex 作构建产物忽略(同 highlight.css 等) make katex-css 验证通过:23KB CSS + 20 个 woff2 字体就位。
39 lines
504 B
Plaintext
39 lines
504 B
Plaintext
/target
|
|
/dist
|
|
/.dioxus
|
|
/.omc
|
|
/node_modules
|
|
**/**/node_modules
|
|
/package-lock.json
|
|
others/
|
|
public/style.css
|
|
public/highlight.css
|
|
public/katex
|
|
public/tiptap
|
|
public/codemirror
|
|
public/lightbox
|
|
public/yggdrasil-core
|
|
public/xterm
|
|
public/doc
|
|
/static
|
|
.env
|
|
docs/superpowers/
|
|
|
|
# Uploaded images
|
|
uploads/*
|
|
!uploads/.gitkeep
|
|
uploads/.cache/
|
|
|
|
# Database backups
|
|
backups/
|
|
|
|
profile.json.gz
|
|
|
|
# Git worktrees
|
|
.worktrees/
|
|
|
|
# FreeBSD cross-compile sysroot (extracted from base.txz, machine-local)
|
|
.freebsd-sysroot/
|
|
|
|
.zcode/
|