Skip to content

Commit 2d1a609

Browse files
authored
fix(docs): use production sandbox font paths (#171)
## Why Production research PDF generation failed after successful report synthesis because the renderer looked for Liberation fonts in `/usr/share/fonts/truetype/liberation2`, while the Daytona production image provides them under `/usr/share/fonts/truetype/liberation`. ## What changed - Point the Markdown-to-PDF renderer at the Liberation Sans and Liberation Mono paths present in the production sandbox. - Keep the report pipeline unchanged: the canonical Markdown shown in chat is still the exact input rendered to PDF. ## Verification - `pnpm lint` - `pnpm typecheck` - `pnpm turbo build --force` - `pnpm deadcode` - `pnpm architecture:check` - `pnpm turbo skills:build` - Reproduced the original `ENOENT` against the live Daytona sandbox. - Ran the corrected renderer in that sandbox with headings, links, a four-column table, a task list, a blockquote, and sources; it exited successfully and emitted a valid PDF artifact. No database migration, environment variable, vendor, or deployment-topology changes.
1 parent 00e7204 commit 2d1a609

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/agent-core/src/tools/docs/scripts.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ const MARKDOWN_PDF_SETUP = [
154154
"let nextKey = 0;",
155155
"const key = (prefix) => prefix + '-' + nextKey++;",
156156
"Font.register({ family: 'Liberation Sans', fonts: [",
157-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf' },",
158-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationSans-Bold.ttf', fontWeight: 700 },",
159-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationSans-Italic.ttf', fontStyle: 'italic' },",
160-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationSans-BoldItalic.ttf', fontStyle: 'italic', fontWeight: 700 },",
157+
" { src: '/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf' },",
158+
" { src: '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf', fontWeight: 700 },",
159+
" { src: '/usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf', fontStyle: 'italic' },",
160+
" { src: '/usr/share/fonts/truetype/liberation/LiberationSans-BoldItalic.ttf', fontStyle: 'italic', fontWeight: 700 },",
161161
"] });",
162162
"Font.register({ family: 'Liberation Mono', fonts: [",
163-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationMono-Regular.ttf' },",
164-
" { src: '/usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf', fontWeight: 700 },",
163+
" { src: '/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf' },",
164+
" { src: '/usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf', fontWeight: 700 },",
165165
"] });",
166166
].join("\n");
167167

0 commit comments

Comments
 (0)